Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/m68k/include Hide the register definitions that sho...



details:   https://anonhg.NetBSD.org/src/rev/c432029a91f9
branches:  trunk
changeset: 460516:c432029a91f9
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 26 17:49:34 2019 +0000

description:
Hide the register definitions that should eventually be removed (or prefixed
with _REG_ with #ifdef _KERNEL. This avoids conflicts with let's say PC in
<termcap.h>.

diffstat:

 sys/arch/m68k/include/reg.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 61e7d7f77436 -r c432029a91f9 sys/arch/m68k/include/reg.h
--- a/sys/arch/m68k/include/reg.h       Sat Oct 26 15:58:55 2019 +0000
+++ b/sys/arch/m68k/include/reg.h       Sat Oct 26 17:49:34 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: reg.h,v 1.19 2014/01/04 00:10:02 dsl Exp $     */
+/*     $NetBSD: reg.h,v 1.20 2019/10/26 17:49:34 christos Exp $        */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -57,8 +57,9 @@
        int     r_fpiar;
 };
 
+#ifdef _KERNEL
+
 /* XXXX this is historical (but it can't be deprecated quite yet) */
-
 /*
  * Location of the users' stored
  * registers relative to D0.
@@ -86,7 +87,6 @@
 #define        PS      (16)
 #define        PC      (17)
 
-#ifdef _KERNEL
 /*
  * Due to a mental lapse somewhere down the line, wait returns its values
  * in strange registers.  Kludge it up here so we don't have to in the



Home | Main Index | Thread Index | Old Index