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 Make INTERRUPT_{SAVE, RESTORE}REG visib...



details:   https://anonhg.NetBSD.org/src/rev/5bc560e40f2f
branches:  trunk
changeset: 787970:5bc560e40f2f
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jul 16 23:01:05 2013 +0000

description:
Make INTERRUPT_{SAVE,RESTORE}REG visible to userland

diffstat:

 sys/arch/m68k/include/asm.h |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (37 lines):

diff -r 6c297b5b3c00 -r 5bc560e40f2f sys/arch/m68k/include/asm.h
--- a/sys/arch/m68k/include/asm.h       Tue Jul 16 23:00:15 2013 +0000
+++ b/sys/arch/m68k/include/asm.h       Tue Jul 16 23:01:05 2013 +0000
@@ -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;             \



Home | Main Index | Thread Index | Old Index