Module Name: src
Committed By: matt
Date: Tue Jul 16 23:01:05 UTC 2013
Modified Files:
src/sys/arch/m68k/include: asm.h
Log Message:
Make INTERRUPT_{SAVE,RESTORE}REG visible to userland
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/m68k/include/asm.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/m68k/include/asm.h
diff -u src/sys/arch/m68k/include/asm.h:1.30 src/sys/arch/m68k/include/asm.h:1.31
--- src/sys/arch/m68k/include/asm.h:1.30 Tue Jul 16 22:23:15 2013
+++ src/sys/arch/m68k/include/asm.h Tue Jul 16 23:01:05 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.30 2013/07/16 22:23:15 matt Exp $ */
+/* $NetBSD: asm.h,v 1.31 2013/07/16 23:01:05 matt Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -162,6 +162,13 @@
#define ASBSS(name, size) \
.comm _ASM_LABEL(name),size
+/*
+ * Need a better place for these but these are common across
+ * all m68k ports so let's define just once.
+ */
+#define INTERRUPT_SAVEREG moveml #0xC0C0,%sp@-
+#define INTERRUPT_RESTOREREG moveml %sp@+,#0x0303
+
#ifdef _KERNEL
/*
* Shorthand for calling panic().
@@ -173,13 +180,6 @@
9: .asciz x ; \
.even
-/*
- * Need a better place for these but these are common across
- * all m68k ports so let's define just once.
- */
-#define INTERRUPT_SAVEREG moveml #0xC0C0,%sp@-
-#define INTERRUPT_RESTOREREG moveml %sp@+,#0x0303
-
/* 64-bit counter increments */
#define CPUINFO_INCREMENT(n) \
lea _C_LABEL(cpu_info_store)+(n)+4,%a1; \