Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/luna68k/stand/boot Define _KERNEL while including r...



details:   https://anonhg.NetBSD.org/src/rev/9414165b1737
branches:  trunk
changeset: 460527:9414165b1737
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Oct 27 11:08:04 2019 +0000

description:
Define _KERNEL while including reg.h: we need the (now protected) register
names.

diffstat:

 sys/arch/luna68k/stand/boot/machdep.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 050feb794f59 -r 9414165b1737 sys/arch/luna68k/stand/boot/machdep.c
--- a/sys/arch/luna68k/stand/boot/machdep.c     Sun Oct 27 10:28:55 2019 +0000
+++ b/sys/arch/luna68k/stand/boot/machdep.c     Sun Oct 27 11:08:04 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.6 2019/04/06 03:06:25 thorpej Exp $      */
+/*     $NetBSD: machdep.c,v 1.7 2019/10/27 11:08:04 martin Exp $       */
 
 /*
  * Copyright (c) 1992 OMRON Corporation.
@@ -71,7 +71,9 @@
  */
 
 #include <sys/param.h>
+#define _KERNEL        /* we need the register defines (PC/SP/...) */
 #include <luna68k/include/reg.h>
+#undef _KERNEL
 #include <luna68k/stand/boot/samachdep.h>
 
 static void dumpmem(int *, int, int);



Home | Main Index | Thread Index | Old Index