Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/sh3 Correctly define inta using a helper macro...
details: https://anonhg.NetBSD.org/src/rev/80579de3cd26
branches: trunk
changeset: 761312:80579de3cd26
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Jan 23 14:08:53 2011 +0000
description:
Correctly define inta using a helper macro for the #
diffstat:
lib/libc/arch/sh3/SYS.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 186054383f50 -r 80579de3cd26 lib/libc/arch/sh3/SYS.h
--- a/lib/libc/arch/sh3/SYS.h Sun Jan 23 13:18:57 2011 +0000
+++ b/lib/libc/arch/sh3/SYS.h Sun Jan 23 14:08:53 2011 +0000
@@ -30,16 +30,17 @@
* SUCH DAMAGE.
*
* from: @(#)SYS.h 5.5 (Berkeley) 5/7/91
- * $NetBSD: SYS.h,v 1.9 2006/01/06 06:19:20 uwe Exp $
+ * $NetBSD: SYS.h,v 1.10 2011/01/23 14:08:53 joerg Exp $
*/
#include <machine/asm.h>
#include <sys/syscall.h>
#ifdef __STDC__
+#define IMMEDIATE #
#define SYSTRAP(x) \
mov.l 903f, r0; \
- .long 0xc380; /* trapa #0x80 */ \
+ trapa IMMEDIATE 0x80; \
bra 904f; \
nop; \
.align 2; \
Home |
Main Index |
Thread Index |
Old Index