-/* $OpenBSD: cpufunc_asm_sa1.S,v 1.3 2011/09/20 22:11:40 miod Exp $ */
+/* $OpenBSD: cpufunc_asm_sa1.S,v 1.4 2015/01/18 12:03:11 jsg Exp $ */
/* $NetBSD: cpufunc_asm_sa1.S,v 1.8 2002/08/17 16:36:32 thorpej Exp $ */
/*
* addresses that are about to change.
*/
ENTRY(sa1_setttb)
- mrs r3, cpsr_all
+ mrs r3, cpsr
orr r1, r3, #(I32_bit | F32_bit)
msr cpsr_all, r1
.word _C_LABEL(sa1_cache_clean_size)
#define SA1_CACHE_CLEAN_BLOCK \
- mrs r3, cpsr_all ; \
+ mrs r3, cpsr ; \
orr r0, r3, #(I32_bit | F32_bit) ; \
msr cpsr_all, r0
-/* $OpenBSD: cpufunc_asm_xscale.S,v 1.4 2011/09/20 22:11:40 miod Exp $ */
+/* $OpenBSD: cpufunc_asm_xscale.S,v 1.5 2015/01/18 12:03:11 jsg Exp $ */
/* $NetBSD: cpufunc_asm_xscale.S,v 1.16 2002/08/17 16:36:32 thorpej Exp $ */
/*
* addresses that are about to change.
*/
ENTRY(xscale_setttb)
- mrs r3, cpsr_all
+ mrs r3, cpsr
orr r1, r3, #(I32_bit | F32_bit)
msr cpsr_all, r1
.word _C_LABEL(xscale_minidata_clean_size)
#define XSCALE_CACHE_CLEAN_BLOCK \
- mrs r3, cpsr_all ; \
+ mrs r3, cpsr ; \
orr r0, r3, #(I32_bit | F32_bit) ; \
msr cpsr_all, r0
-/* $OpenBSD: exception.S,v 1.4 2015/01/18 10:17:41 jsg Exp $ */
+/* $OpenBSD: exception.S,v 1.5 2015/01/18 12:03:11 jsg Exp $ */
/* $NetBSD: exception.S,v 1.13 2003/10/31 16:30:15 scw Exp $ */
/*
* it like a Data Abort.
*/
ASENTRY_NP(address_exception_entry)
- mrs r1, cpsr_all
- mrs r2, spsr_all
+ mrs r1, cpsr
+ mrs r2, spsr
mov r3, lr
adr r0, Laddress_exception_msg
bl _C_LABEL(printf) /* XXX CLOBBERS LR!! */
-/* $OpenBSD: fiq_subr.S,v 1.2 2011/09/20 22:02:11 miod Exp $ */
+/* $OpenBSD: fiq_subr.S,v 1.3 2015/01/18 12:03:11 jsg Exp $ */
/* $NetBSD: fiq_subr.S,v 1.3 2002/04/12 18:50:31 thorpej Exp $ */
/*
#include <arm/cpuconf.h>
#define SWITCH_TO_FIQ_MODE \
- mrs r2, cpsr_all ; \
+ mrs r2, cpsr ; \
mov r3, r2 ; \
bic r2, r2, #(PSR_MODE) ; \
orr r2, r2, #(PSR_FIQ32_MODE) ; \
-/* $OpenBSD: frame.h,v 1.4 2011/09/20 22:02:13 miod Exp $ */
+/* $OpenBSD: frame.h,v 1.5 2015/01/18 12:03:11 jsg Exp $ */
/* $NetBSD: frame.h,v 1.9 2003/12/01 08:48:33 scw Exp $ */
/*
sub sp, sp, #(4*17); /* Adjust the stack pointer */ \
stmia sp, {r0-r14}^; /* Push the user mode registers */ \
mov r0, r0; /* NOP for previous instruction */ \
- mrs r0, spsr_all; /* Put the SPSR on the stack */ \
+ mrs r0, spsr; /* Put the SPSR on the stack */ \
str r0, [sp, #-4]!
/*
sub sp, sp, #(4*15); /* Adjust the stack pointer */ \
stmia sp, {r0-r14}^; /* Push the user mode registers */ \
mov r0, r0; /* NOP for previous instruction */ \
- mrs r0, spsr_all; /* Put the SPSR on the stack */ \
+ mrs r0, spsr; /* Put the SPSR on the stack */ \
str r0, [sp, #-4]!
/*
-/* $OpenBSD: zbsdmod.c,v 1.9 2011/03/13 00:13:53 deraadt Exp $ */
+/* $OpenBSD: zbsdmod.c,v 1.10 2015/01/18 12:03:11 jsg Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de>
esymp = (vaddr_t *)phdr[i].p_vaddr;
}
- __asm__ volatile ("mrs %0, cpsr_all" : "=r" (cpsr));
+ __asm__ volatile ("mrs %0, cpsr" : "=r" (cpsr));
cpsr |= 0xc0; /* set FI */
__asm__ volatile ("msr cpsr_all, %0" :: "r" (cpsr));