Back out previous; actually, this is never a problem for us. (Duh.)

This commit is contained in:
scottr 1996-07-12 17:09:26 +00:00
parent a7efb38d4c
commit c92399979d
1 changed files with 6 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.39 1996/07/10 18:31:49 scottr Exp $ */
/* $NetBSD: cpu.h,v 1.40 1996/07/12 17:09:26 scottr Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -128,21 +128,16 @@ int want_resched; /* resched() was called */
/*
* simulated software interrupt register
*/
extern volatile unsigned char ssir;
extern unsigned char ssir;
#define SIR_NET 0x1
#define SIR_CLOCK 0x2
#define SIR_SERIAL 0x4
#define siroff(x) \
{ asm volatile ("andb %0,%1" : : "di" ((u_char)~(x)), "g" (ssir)); }
#define setsoftnet() \
asm volatile ("orb %0,%1" : : "di" ((u_char)SIR_NET), "g" (ssir))
#define setsoftclock() \
asm volatile ("orb %0,%1" : : "di" ((u_char)SIR_CLOCK), "g" (ssir))
#define setsoftserial() \
asm volatile ("orb %0,%1" : : "di" ((u_char)SIR_SERIAL), "g" (ssir))
#define siroff(x) ssir &= ~(x)
#define setsoftnet() ssir |= SIR_NET
#define setsoftclock() ssir |= SIR_CLOCK
#define setsoftserial() ssir |= SIR_SERIAL
#define CPU_CONSDEV 1
#define CPU_MAXID 2