diff options
-rw-r--r-- | sys/sys/param.h | 12 | ||||
-rw-r--r-- | sys/sys/systm.h | 6 |
2 files changed, 6 insertions, 12 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h index cbd3fc4..e38b318 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -230,16 +230,4 @@ #define ctodb(db) /* calculates pages to devblks */ \ ((db) << (PAGE_SHIFT - DEV_BSHIFT)) - -/* - * Make this available for most of the kernel. There were too many - * things that included sys/systm.h just for panic(). - */ -#ifdef _KERNEL -#ifdef RESTARTABLE_PANICS -void panic __P((const char *, ...)) __printflike(1, 2); -#else -void panic __P((const char *, ...)) __dead2 __printflike(1, 2); -#endif -#endif #endif /* _SYS_PARAM_H_ */ diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 60e2a33..459d642 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -118,6 +118,12 @@ int ureadc __P((int, struct uio *)); void *hashinit __P((int count, struct malloc_type *type, u_long *hashmask)); void *phashinit __P((int count, struct malloc_type *type, u_long *nentries)); +#ifdef RESTARTABLE_PANICS +void panic __P((const char *, ...)) __printflike(1, 2); +#else +void panic __P((const char *, ...)) __dead2 __printflike(1, 2); +#endif + void cpu_boot __P((int)); void cpu_rootconf __P((void)); void critical_enter __P((void)); |