Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Need to do a GET_CURCPU(r4) before invoki...



details:   https://anonhg.NetBSD.org/src/rev/95a7e4cb2ca7
branches:  trunk
changeset: 781366:95a7e4cb2ca7
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Sep 01 22:20:52 2012 +0000

description:
Need to do a GET_CURCPU(r4) before invoking DO_AST_AND_RESTORE_ALIGNMENT_FAULTS

diffstat:

 sys/arch/arm/arm32/cpuswitch.S |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r f1972fe28845 -r 95a7e4cb2ca7 sys/arch/arm/arm32/cpuswitch.S
--- a/sys/arch/arm/arm32/cpuswitch.S    Sat Sep 01 19:08:01 2012 +0000
+++ b/sys/arch/arm/arm32/cpuswitch.S    Sat Sep 01 22:20:52 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpuswitch.S,v 1.70 2012/09/01 14:46:51 matt Exp $      */
+/*     $NetBSD: cpuswitch.S,v 1.71 2012/09/01 22:20:52 matt Exp $      */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -89,7 +89,7 @@
 #include <machine/asm.h>
 #include <machine/cpu.h>
 
-       RCSID("$NetBSD: cpuswitch.S,v 1.70 2012/09/01 14:46:51 matt Exp $")
+       RCSID("$NetBSD: cpuswitch.S,v 1.71 2012/09/01 22:20:52 matt Exp $")
 
 /* LINTSTUB: include <sys/param.h> */
        
@@ -347,6 +347,7 @@
        GET_CPSR(r0)
        CPSID_I(r0, r0)                 /* Kill irq's */
 
+       GET_CURCPU(r4)                  /* for DO_AST */
        DO_AST_AND_RESTORE_ALIGNMENT_FAULTS
        PULLFRAME
 



Home | Main Index | Thread Index | Old Index