Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Move machine dependent definitions to machine dependent ...
details: https://anonhg.NetBSD.org/src/rev/17a5ee6225d2
branches: trunk
changeset: 555884:17a5ee6225d2
user: manu <manu%NetBSD.org@localhost>
date: Wed Dec 03 18:25:44 2003 +0000
description:
Move machine dependent definitions to machine dependent headers.
diffstat:
sys/arch/powerpc/include/mach_machdep.h | 10 +++++++++-
sys/compat/mach/mach_notify.h | 17 +++++++++--------
2 files changed, 18 insertions(+), 9 deletions(-)
diffs (55 lines):
diff -r 3014dcf7235d -r 17a5ee6225d2 sys/arch/powerpc/include/mach_machdep.h
--- a/sys/arch/powerpc/include/mach_machdep.h Wed Dec 03 18:19:12 2003 +0000
+++ b/sys/arch/powerpc/include/mach_machdep.h Wed Dec 03 18:25:44 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mach_machdep.h,v 1.1 2003/11/11 17:31:59 manu Exp $ */
+/* $NetBSD: mach_machdep.h,v 1.2 2003/12/03 18:25:44 manu Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -39,6 +39,14 @@
#ifndef _MACH_MACHDEP_H_
#define _MACH_MACHDEP_H_
+/* Exception codes */
+#define MACH_BUS_ADRALN 1
+#define MACH_SEGV_MAPERR 2
+#define MACH_TRAP_BRKPT 1
+#define MACH_ILL_ILLOPC 2
+#define MACH_ILL_PRVOPC 3
+
+/* process and thread state */
#define MACH_PPC_THREAD_STATE 1
#define MACH_PPC_FLOAT_STATE 2
#define MACH_PPC_EXCEPTION_STATE 3
diff -r 3014dcf7235d -r 17a5ee6225d2 sys/compat/mach/mach_notify.h
--- a/sys/compat/mach/mach_notify.h Wed Dec 03 18:19:12 2003 +0000
+++ b/sys/compat/mach/mach_notify.h Wed Dec 03 18:25:44 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mach_notify.h,v 1.6 2003/11/20 07:12:34 manu Exp $ */
+/* $NetBSD: mach_notify.h,v 1.7 2003/12/03 18:25:44 manu Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -107,13 +107,14 @@
#define MACH_EXC_MASK_MACH_SYSCALL (1 << MACH_EXC_MACH_SYSCALL)
#define MACH_EXC_MASK_RPC_ALERT (1 << MACH_EXC_RPC_ALERT)
-/* exceptions codes. Values < 0x10000 may be machine dependent */
-#define MACH_BUS_ADRALN 1
-#define MACH_SEGV_MAPERR 2
-#define MACH_TRAP_BRKPT 1
-#define MACH_ILL_ILLOPC 2
-#define MACH_ILL_PRVOPC 3
-#define MACH_SOFT_SIGNAL 0x10003
+/*
+ * Exceptions codes. Values < 0x10000 are machine dependent, and
+ * are defined in sys/<arch>/include/mach_machdep.h
+ */
+#define MACH_EXC_UNIX_BAD_SYSCALL 0x10000 /* unused ? */
+#define MACH_EXC_UNIX_BAD_PIPE 0x10001 /* unused ? */
+#define MACH_EXC_UNIX_ABORT 0x10002 /* unused ? */
+#define MACH_SOFT_SIGNAL 0x10003
/* Exception behaviors and associated messages Id */
Home |
Main Index |
Thread Index |
Old Index