Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/arch/powerpc/include Pull up revision 1.10 (request...
details: https://anonhg.NetBSD.org/src/rev/dc59332c8430
branches: netbsd-1-6
changeset: 531442:dc59332c8430
user: tron <tron%NetBSD.org@localhost>
date: Fri Jul 23 14:03:04 2004 +0000
description:
Pull up revision 1.10 (requested by skrll in ticket #1725):
Don't define register references if not KERNEL or STANDALONE.
diffstat:
sys/arch/powerpc/include/asm.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (48 lines):
diff -r 75aa4d09efc4 -r dc59332c8430 sys/arch/powerpc/include/asm.h
--- a/sys/arch/powerpc/include/asm.h Fri Jul 23 13:59:00 2004 +0000
+++ b/sys/arch/powerpc/include/asm.h Fri Jul 23 14:03:04 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.8 2001/06/13 06:01:48 simonb Exp $ */
+/* $NetBSD: asm.h,v 1.8.18.1 2004/07/23 14:03:04 tron Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -92,6 +92,7 @@
/* Condition Register Bit Fields */
+#if defined(_KERNEL) || defined(_STANDALONE)
#define cr0 0
#define cr1 1
#define cr2 2
@@ -100,9 +101,11 @@
#define cr5 5
#define cr6 6
#define cr7 7
+#endif
/* General Purpose Registers (GPRs) */
+#if defined(_KERNEL) || defined(_STANDALONE)
#define r0 0
#define r1 1
#define r2 2
@@ -135,9 +138,11 @@
#define r29 29
#define r30 30
#define r31 31
+#endif
/* Floating Point Registers (FPRs) */
+#if defined(_KERNEL) || defined(_STANDALONE)
#define fr0 0
#define fr1 1
#define fr2 2
@@ -170,5 +175,6 @@
#define fr29 29
#define fr30 30
#define fr31 31
+#endif
#endif /* !_PPC_ASM_H_ */
Home |
Main Index |
Thread Index |
Old Index