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 Fix CLKF_INTR for EABI to (void) its ar...



details:   https://anonhg.NetBSD.org/src/rev/021ac2959e88
branches:  trunk
changeset: 789422:021ac2959e88
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Aug 18 23:14:27 2013 +0000

description:
Fix CLKF_INTR for EABI to (void) its argument so it isn't mark unused by the
optimizer.

diffstat:

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

diffs (12 lines):

diff -r 17f470628beb -r 021ac2959e88 sys/arch/arm/include/cpu.h
--- a/sys/arch/arm/include/cpu.h        Sun Aug 18 21:50:31 2013 +0000
+++ b/sys/arch/arm/include/cpu.h        Sun Aug 18 23:14:27 2013 +0000
@@ -104,7 +104,7 @@
        ((curcpu()->ci_intr_depth > 1) ||                       \
            ((cf)->cf_tf.tf_spsr & PSR_MODE) == PSR_UND32_MODE)
 #else
-#define CLKF_INTR(frame)       (curcpu()->ci_intr_depth > 1) 
+#define CLKF_INTR(cf)  ((void)(cf), curcpu()->ci_intr_depth > 1) 
 #endif
 
 /*



Home | Main Index | Thread Index | Old Index