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 Expose register difinitions for _STAND...



details:   https://anonhg.NetBSD.org/src/rev/50712e75202d
branches:  trunk
changeset: 460525:50712e75202d
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Oct 27 09:38:09 2019 +0000

description:
Expose register difinitions for _STANDALONE.
Fix build failure in arch/luna68k/stand/boot.

diffstat:

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

diffs (34 lines):

diff -r b7db40cdd708 -r 50712e75202d sys/arch/m68k/include/reg.h
--- a/sys/arch/m68k/include/reg.h       Sun Oct 27 08:30:05 2019 +0000
+++ b/sys/arch/m68k/include/reg.h       Sun Oct 27 09:38:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: reg.h,v 1.20 2019/10/26 17:49:34 christos Exp $        */
+/*     $NetBSD: reg.h,v 1.21 2019/10/27 09:38:09 rin Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -57,7 +57,7 @@
        int     r_fpiar;
 };
 
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_STANDALONE)
 
 /* XXXX this is historical (but it can't be deprecated quite yet) */
 /*
@@ -95,10 +95,14 @@
 #define        R0      D1
 #define        R1      A0
 
+#endif /* _KERNEL || _STANDALONE */
+
+#ifdef _KERNEL
+
 struct lwp;
 int    process_read_regs(struct lwp *, struct reg *);
 int    process_read_fpregs(struct lwp *, struct fpreg *, size_t *);
 
-#endif
+#endif /* _KERNEL */
 
 #endif /* !_M68K_REG_H_ */



Home | Main Index | Thread Index | Old Index