Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/news68k/news68k Make this work with an ISO C prepro...



details:   https://anonhg.NetBSD.org/src/rev/a52dc88cb38c
branches:  trunk
changeset: 532044:a52dc88cb38c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 30 21:49:20 2002 +0000

description:
Make this work with an ISO C preprocessor.

diffstat:

 sys/arch/news68k/news68k/locore.s |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 3cef6fb7d818 -r a52dc88cb38c sys/arch/news68k/news68k/locore.s
--- a/sys/arch/news68k/news68k/locore.s Thu May 30 21:47:25 2002 +0000
+++ b/sys/arch/news68k/news68k/locore.s Thu May 30 21:49:20 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.25 2002/05/14 02:03:02 matt Exp $ */
+/*     $NetBSD: locore.s,v 1.26 2002/05/30 21:49:20 thorpej Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -91,6 +91,16 @@
 /*
  * LED control for DEBUG.
  */
+#ifdef __STDC__
+#define        IMMEDIATE       #
+#define        SETLED(func)    \
+       movl    IMMEDIATE func,%d0; \
+       jmp     debug_led
+
+#define        SETLED2(func)   \
+       movl    IMMEDIATE func,%d0; \
+       jmp     debug_led2
+#else
 #define        SETLED(func)    \
        movl    #func,%d0; \
        jmp     debug_led
@@ -98,6 +108,7 @@
 #define        SETLED2(func)   \
        movl    #func,%d0; \
        jmp     debug_led2
+#endif /* __STDC__ */
 
 #define        TOMONITOR       \
        moveal  _ASM_LABEL(monitor), %a0; \



Home | Main Index | Thread Index | Old Index