diff --git a/sys/arch/alpha/include/intr.h b/sys/arch/alpha/include/intr.h index 4e5b296e0c30..b44c9b01f779 100644 --- a/sys/arch/alpha/include/intr.h +++ b/sys/arch/alpha/include/intr.h @@ -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)