Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/hp300 Make this work with an ISO C preprocessor.
details: https://anonhg.NetBSD.org/src/rev/d6db67270ba7
branches: trunk
changeset: 532017:d6db67270ba7
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu May 30 18:30:17 2002 +0000
description:
Make this work with an ISO C preprocessor.
diffstat:
sys/arch/hp300/hp300/locore.s | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r ff7229100d67 -r d6db67270ba7 sys/arch/hp300/hp300/locore.s
--- a/sys/arch/hp300/hp300/locore.s Thu May 30 18:16:41 2002 +0000
+++ b/sys/arch/hp300/hp300/locore.s Thu May 30 18:30:17 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.121 2002/05/19 21:40:04 jdolecek Exp $ */
+/* $NetBSD: locore.s,v 1.122 2002/05/30 18:30:17 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995 Gordon W. Ross
@@ -94,9 +94,16 @@
/*
* Macro to relocate a symbol, used before MMU is enabled.
*/
-#define _RELOC(var, ar) \
- movel #var,ar; \
+#ifdef __STDC__
+#define IMMEDIATE #
+#define _RELOC(var, ar) \
+ movel IMMEDIATE var,ar; \
addl %a5,ar
+#else
+#define _RELOC(var, ar) \
+ movel #var,ar; \
+ addl %a5,ar
+#endif /* __STDC__ */
#define RELOC(var, ar) _RELOC(_C_LABEL(var), ar)
#define ASRELOC(var, ar) _RELOC(_ASM_LABEL(var), ar)
Home |
Main Index |
Thread Index |
Old Index