two more slight bogons

This commit is contained in:
cgd 1997-06-05 17:36:26 +00:00
parent 1c33c6bff8
commit 891e8db771
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.8 1997/06/05 17:31:16 cgd Exp $ */
/* $NetBSD: intr.h,v 1.9 1997/06/05 17:36:26 cgd Exp $ */
/*
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
@ -54,12 +54,13 @@
#define splsoftnet() splsoft()
/* IPL-raising functions/macros */
static __inline int _splraise __P((int));
static __inline int
_splraise(s)
int s;
{
int cur = alpha_pal_rdps() & ALPHA_PSL_IPL_MASK;
return (a > cur ? alpha_pal_swpipl(a) : cur);
return (s > cur ? alpha_pal_swpipl(s) : cur);
}
#define splnet() _splraise(ALPHA_PSL_IPL_IO)
#define splbio() _splraise(ALPHA_PSL_IPL_IO)