Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include/arm32 Remove magic number



details:   https://anonhg.NetBSD.org/src/rev/2d8dda3ef487
branches:  trunk
changeset: 445419:2d8dda3ef487
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Oct 28 14:45:02 2018 +0000

description:
Remove magic number

diffstat:

 sys/arch/arm/include/arm32/frame.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r de275252d12d -r 2d8dda3ef487 sys/arch/arm/include/arm32/frame.h
--- a/sys/arch/arm/include/arm32/frame.h        Sun Oct 28 14:30:30 2018 +0000
+++ b/sys/arch/arm/include/arm32/frame.h        Sun Oct 28 14:45:02 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: frame.h,v 1.45 2017/07/07 16:59:35 skrll Exp $ */
+/*     $NetBSD: frame.h,v 1.46 2018/10/28 14:45:02 skrll Exp $ */
 
 /*
  * Copyright (c) 1994-1997 Mark Brinicombe.
@@ -484,7 +484,7 @@
  */
 
 #define PULLFRAMEFROMSVCANDEXIT                                                   \
-       ldr     r0, [sp], #0x0008;      /* Pop the SPSR from stack */      \
+       ldr     r0, [sp], #TF_R0;       /* Pop the SPSR from stack */      \
        msr     spsr_fsxc, r0;          /* restore SPSR */                 \
        ldmia   sp, {r0-r14}^;          /* Restore registers (usr mode) */ \
        mov     r0, r0;                 /* NOP for previous instruction */ \



Home | Main Index | Thread Index | Old Index