-/* $OpenBSD: intr.h,v 1.13 2017/05/17 11:52:25 visa Exp $ */
+/* $OpenBSD: intr.h,v 1.14 2017/06/11 10:01:23 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
#define splassert(X)
#define splsoftassert(X)
-/* Inlines */
-static __inline void register_splx_handler(void (*)(int));
-
-typedef void (int_f)(int);
-extern int_f *splx_hand;
-
-static __inline void
-register_splx_handler(void(*handler)(int))
-{
- splx_hand = handler;
-}
-
+void register_splx_handler(void (*)(int));
int splraise(int);
void splx(int);
int spllower(int);
-/* $OpenBSD: interrupt.c,v 1.67 2016/08/16 13:03:58 visa Exp $ */
+/* $OpenBSD: interrupt.c,v 1.68 2017/06/11 10:01:23 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
uint32_t (*int_hand)(uint32_t, struct trapframe *);
} cpu_int_tab[NLOWINT];
-int_f *splx_hand = &dummy_splx;
+void (*splx_hand)(int) = &dummy_splx;
/*
* Modern versions of MIPS processors have extended interrupt
(void)updateimask(0);
}
+void
+register_splx_handler(void (*handler)(int))
+{
+ splx_hand = handler;
+}
+
int
splraise(int newipl)
{
-/* $OpenBSD: intr.h,v 1.9 2017/04/06 15:25:24 visa Exp $ */
+/* $OpenBSD: intr.h,v 1.10 2017/06/11 10:01:23 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
#define splassert(X)
#define splsoftassert(X)
-/* Inlines */
-static __inline void register_splx_handler(void (*)(int));
-
-typedef void (int_f)(int);
-extern int_f *splx_hand;
-
-static __inline void
-register_splx_handler(void(*handler)(int))
-{
- splx_hand = handler;
-}
-
+void register_splx_handler(void (*)(int));
int splraise(int);
void splx(int);
int spllower(int);
-/* $OpenBSD: intr.h,v 1.48 2017/02/11 03:44:22 visa Exp $ */
+/* $OpenBSD: intr.h,v 1.49 2017/06/11 10:01:23 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
#define splassert(X)
#define splsoftassert(X)
-/* Inlines */
-static __inline void register_splx_handler(void (*)(int));
-
-typedef void (int_f)(int);
-extern int_f *splx_hand;
-
-static __inline void
-register_splx_handler(void(*handler)(int))
-{
- splx_hand = handler;
-}
-
+void register_splx_handler(void (*)(int));
int splraise(int);
void splx(int);
int spllower(int);