-/* $OpenBSD: cpufunc_asm_sa1.S,v 1.4 2015/01/18 12:03:11 jsg Exp $ */
+/* $OpenBSD: cpufunc_asm_sa1.S,v 1.5 2015/01/18 14:55:02 jsg Exp $ */
/* $NetBSD: cpufunc_asm_sa1.S,v 1.8 2002/08/17 16:36:32 thorpej Exp $ */
/*
ENTRY(sa1_setttb)
mrs r3, cpsr
orr r1, r3, #(I32_bit | F32_bit)
- msr cpsr_all, r1
+ msr cpsr_c, r1
stmfd sp!, {r0-r3, lr}
bl _C_LABEL(sa1_cache_cleanID)
mov r0, r0
mov r0, r0
- msr cpsr_all, r3
+ msr cpsr_c, r3
mov pc, lr
/*
#define SA1_CACHE_CLEAN_BLOCK \
mrs r3, cpsr ; \
orr r0, r3, #(I32_bit | F32_bit) ; \
- msr cpsr_all, r0
+ msr cpsr_c, r0
#define SA1_CACHE_CLEAN_UNBLOCK \
- msr cpsr_all, r3
+ msr cpsr_c, r3
#ifdef DOUBLE_CACHE_CLEAN_BANK
#define SA1_DOUBLE_CACHE_CLEAN_BANK \
-/* $OpenBSD: cpufunc_asm_xscale.S,v 1.5 2015/01/18 12:03:11 jsg Exp $ */
+/* $OpenBSD: cpufunc_asm_xscale.S,v 1.6 2015/01/18 14:55:02 jsg Exp $ */
/* $NetBSD: cpufunc_asm_xscale.S,v 1.16 2002/08/17 16:36:32 thorpej Exp $ */
/*
ENTRY(xscale_setttb)
mrs r3, cpsr
orr r1, r3, #(I32_bit | F32_bit)
- msr cpsr_all, r1
+ msr cpsr_c, r1
stmfd sp!, {r0-r3, lr}
bl _C_LABEL(xscale_cache_cleanID)
CPWAIT(r0)
- msr cpsr_all, r3
+ msr cpsr_c, r3
mov pc, lr
/*
#define XSCALE_CACHE_CLEAN_BLOCK \
mrs r3, cpsr ; \
orr r0, r3, #(I32_bit | F32_bit) ; \
- msr cpsr_all, r0
+ msr cpsr_c, r0
#define XSCALE_CACHE_CLEAN_UNBLOCK \
- msr cpsr_all, r3
+ msr cpsr_c, r3
#define XSCALE_CACHE_CLEAN_PROLOGUE \
XSCALE_CACHE_CLEAN_BLOCK ; \
-/* $OpenBSD: fiq_subr.S,v 1.3 2015/01/18 12:03:11 jsg Exp $ */
+/* $OpenBSD: fiq_subr.S,v 1.4 2015/01/18 14:55:02 jsg Exp $ */
/* $NetBSD: fiq_subr.S,v 1.3 2002/04/12 18:50:31 thorpej Exp $ */
/*
mov r3, r2 ; \
bic r2, r2, #(PSR_MODE) ; \
orr r2, r2, #(PSR_FIQ32_MODE) ; \
- msr cpsr_all, r2
+ msr cpsr_c, r2
#define BACK_TO_SVC_MODE \
- msr cpsr_all, r3
+ msr cpsr_c, r3
/*
* fiq_getregs:
-/* $OpenBSD: locore.S,v 1.5 2015/01/18 10:17:41 jsg Exp $ */
+/* $OpenBSD: locore.S,v 1.6 2015/01/18 14:55:02 jsg Exp $ */
/* $NetBSD: locore.S,v 1.14 2003/04/20 16:21:40 thorpej Exp $ */
/*
bic r2, r2, #(PSR_MODE)
orr r2, r2, #(PSR_SVC32_MODE)
orr r2, r2, #(I32_bit | F32_bit)
- msr cpsr_all, r2
+ msr cpsr_c, r2
ldr r4, .Lcpu_reset_address
ldr r4, [r4]
-/* $OpenBSD: setstack.S,v 1.2 2004/02/01 06:10:33 drahn Exp $ */
+/* $OpenBSD: setstack.S,v 1.3 2015/01/18 14:55:02 jsg Exp $ */
/* $NetBSD: setstack.S,v 1.2 2002/08/15 01:37:02 briggs Exp $ */
/*
mrs r3, cpsr /* Switch to the appropriate mode */
bic r2, r3, #(PSR_MODE)
orr r2, r2, r0
- msr cpsr_all, r2
+ msr cpsr_c, r2
mov sp, r1 /* Set the stack pointer */
- msr cpsr_all, r3 /* Restore the old mode */
+ msr cpsr_c, r3 /* Restore the old mode */
mov pc, lr /* Exit */
mrs r3, cpsr /* Switch to the appropriate mode */
bic r2, r3, #(PSR_MODE)
orr r2, r2, r0
- msr cpsr_all, r2
+ msr cpsr_c, r2
mov r0, sp /* Set the stack pointer */
- msr cpsr_all, r3 /* Restore the old mode */
+ msr cpsr_c, r3 /* Restore the old mode */
mov pc, lr /* Exit */
-/* $OpenBSD: zbsdmod.c,v 1.10 2015/01/18 12:03:11 jsg Exp $ */
+/* $OpenBSD: zbsdmod.c,v 1.11 2015/01/18 14:55:02 jsg Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de>
__asm__ volatile ("mrs %0, cpsr" : "=r" (cpsr));
cpsr |= 0xc0; /* set FI */
- __asm__ volatile ("msr cpsr_all, %0" :: "r" (cpsr));
+ __asm__ volatile ("msr cpsr_c, %0" :: "r" (cpsr));
/*
* Copy the boot arguments.