Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/news68k/include Use single_inst_b{set, clr}_b() macr...
details: https://anonhg.NetBSD.org/src/rev/55d29acc2575
branches: trunk
changeset: 499606:55d29acc2575
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Nov 24 14:08:14 2000 +0000
description:
Use single_inst_b{set,clr}_b() macro defined in m68k/asm_single.h.
diffstat:
sys/arch/news68k/include/intr.h | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r ce4a80e6c88f -r 55d29acc2575 sys/arch/news68k/include/intr.h
--- a/sys/arch/news68k/include/intr.h Fri Nov 24 13:05:31 2000 +0000
+++ b/sys/arch/news68k/include/intr.h Fri Nov 24 14:08:14 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.4 2000/08/22 19:46:30 thorpej Exp $ */
+/* $NetBSD: intr.h,v 1.5 2000/11/24 14:08:14 tsutsui Exp $ */
/*
*
@@ -39,6 +39,7 @@
#define _NEWS68K_INTR_H_
#include <machine/psl.h>
+#include <m68k/asm_single.h>
#ifdef _KERNEL
/*
@@ -75,10 +76,8 @@
#define SIR_CLOCK 1
#define NEXT_SIR 2
-#define siron(x) \
- __asm __volatile ("orb %0,%1" : : "di" ((u_char)(x)), "g" (ssir))
-#define siroff(x) \
- __asm __volatile ("andb %0,%1" : : "di" ((u_char)~(x)), "g" (ssir))
+#define siron(x) single_inst_bset_b((ssir), (x))
+#define siroff(x) single_inst_bclr_b((ssir), (x))
#define setsoftint(x) do { \
siron(x); \
*ctrl_int2 = 0xff; \
Home |
Main Index |
Thread Index |
Old Index