Module Name: src
Committed By: skrll
Date: Sun Oct 28 14:45:02 UTC 2018
Modified Files:
src/sys/arch/arm/include/arm32: frame.h
Log Message:
Remove magic number
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/arm/include/arm32/frame.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/include/arm32/frame.h
diff -u src/sys/arch/arm/include/arm32/frame.h:1.45 src/sys/arch/arm/include/arm32/frame.h:1.46
--- src/sys/arch/arm/include/arm32/frame.h:1.45 Fri Jul 7 16:59:35 2017
+++ src/sys/arch/arm/include/arm32/frame.h Sun Oct 28 14:45:02 2018
@@ -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 @@ LOCK_CAS_DEBUG_LOCALS
*/
#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 */ \