diff options
author | jake <jake@FreeBSD.org> | 2002-01-01 20:26:46 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-01-01 20:26:46 +0000 |
commit | 42ab31b72dfc0f062385a870460943d5b21017a1 (patch) | |
tree | 4a3fd24164212d0b5bfbf1a65e7d2c275eefa76d /sys/sparc64/include/param.h | |
parent | 30c8fe6f8c9855ed976faa14f066c0575da9a2de (diff) | |
download | FreeBSD-src-42ab31b72dfc0f062385a870460943d5b21017a1.zip FreeBSD-src-42ab31b72dfc0f062385a870460943d5b21017a1.tar.gz |
Add a panic stack, which is used as a known good stack when there is
something wrong with the kernel stack.
Add code to check the kernel stack pointer in various important places
and try hard not to go down in flames if its wrong.
Diffstat (limited to 'sys/sparc64/include/param.h')
-rw-r--r-- | sys/sparc64/include/param.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h index 60fd0bd..d936166 100644 --- a/sys/sparc64/include/param.h +++ b/sys/sparc64/include/param.h @@ -121,8 +121,10 @@ #define MAXPHYS (128 * 1024) /* max raw I/O transfer size */ #define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE) -#define KSTACK_PAGES 4 /* pages of kernel stack (with pcb) */ -#define UAREA_PAGES 1 /* pages of user area */ +#define KSTACK_PAGES 4 /* pages of kernel stack (with pcb) */ +#define UAREA_PAGES 1 /* pages of user area */ + +#define PANIC_STACK_PAGES 1 #define KSTACK_GUARD /* compile in kstack guard page */ #define KSTACK_GUARD_PAGES 1 |