Move the declaration of panic() from sys/systm.h to sys/param.h.

Rationale: Wider access, so we can add assertions to header files.
panicstr is still in sys/systm.h

Suggested by:   phk
Discussed with: peter
This commit is contained in:
Eivind Eklund 1999-09-26 18:19:49 +00:00
parent 5c69e12c0e
commit 3e148c4099
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51680
4 changed files with 11 additions and 3 deletions

View File

@ -44,7 +44,7 @@
* modification.
*/
#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <machine/bus_pio.h>

View File

@ -27,7 +27,7 @@
#include "opt_smp.h"
#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <machine/smptests.h> /** TEST_TEST1 */

View File

@ -239,4 +239,13 @@
#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
void panic __P((const char *, ...)) __dead2 __printflike(1, 2);
#endif
#endif /* _SYS_PARAM_H_ */

View File

@ -101,7 +101,6 @@ 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));
void panic __P((const char *, ...)) __dead2 __printflike(1, 2);
void cpu_boot __P((int));
void cpu_rootconf __P((void));
void tablefull __P((const char *));