Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/m68k/m68k make this usable also standalone



details:   https://anonhg.NetBSD.org/src/rev/b6e3bb9a961e
branches:  trunk
changeset: 499669:b6e3bb9a961e
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Nov 26 12:02:16 2000 +0000

description:
make this usable also standalone

diffstat:

 sys/arch/m68k/m68k/sunos_sigcode.s |   7 ++++---
 sys/arch/m68k/m68k/svr4_sigcode.s  |  15 ++++++++++++---
 2 files changed, 16 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r fe0ae6c6b2e0 -r b6e3bb9a961e sys/arch/m68k/m68k/sunos_sigcode.s
--- a/sys/arch/m68k/m68k/sunos_sigcode.s        Sun Nov 26 11:47:23 2000 +0000
+++ b/sys/arch/m68k/m68k/sunos_sigcode.s        Sun Nov 26 12:02:16 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunos_sigcode.s,v 1.1 2000/11/26 11:47:25 jdolecek Exp $       */
+/*     $NetBSD: sunos_sigcode.s,v 1.2 2000/11/26 12:02:16 jdolecek Exp $       */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -42,9 +42,10 @@
  *     @(#)locore.s    8.6 (Berkeley) 5/27/94
  */
 
+#include <machine/asm.h>
+
 /*
- * NOTICE: This is not a standalone file.  To use it, #include it in
- * your port's locore.s, like so:
+ * NOTICE: This is typically included in port's locore.s, like so:
  *
  *     #ifdef COMPAT_SUNOS
  *     #include <m68k/m68k/sunos_sigcode.s>
diff -r fe0ae6c6b2e0 -r b6e3bb9a961e sys/arch/m68k/m68k/svr4_sigcode.s
--- a/sys/arch/m68k/m68k/svr4_sigcode.s Sun Nov 26 11:47:23 2000 +0000
+++ b/sys/arch/m68k/m68k/svr4_sigcode.s Sun Nov 26 12:02:16 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svr4_sigcode.s,v 1.1 2000/11/26 11:47:25 jdolecek Exp $        */
+/*     $NetBSD: svr4_sigcode.s,v 1.2 2000/11/26 12:02:16 jdolecek Exp $        */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -42,9 +42,18 @@
  *     @(#)locore.s    8.6 (Berkeley) 5/27/94
  */
 
+#include <machine/asm.h>
+
+#ifndef SVR4_SIGF_HANDLER
 /*
- * NOTICE: This is not a standalone file.  To use it, #include it in
- * your port's locore.s, like so:
+ * This check is here so that it's possible to use the file as both
+ * standalone and included into port's locore.s
+ */
+#include "assym.h"
+#endif
+
+/*
+ * NOTICE: This is typically included in port's locore.s, like so:
  *
  *     #ifdef COMPAT_SVR4
  *     #include <m68k/m68k/svr4_sigcode.s>



Home | Main Index | Thread Index | Old Index