mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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:
parent
5c69e12c0e
commit
3e148c4099
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51680
@ -44,7 +44,7 @@
|
||||
* modification.
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
||||
#include <machine/bus_pio.h>
|
||||
|
@ -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 */
|
||||
|
@ -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_ */
|
||||
|
@ -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 *));
|
||||
|
Loading…
Reference in New Issue
Block a user