From 7b380c5b9f49baf8ce69855eb7d56cc941d37097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 19 Nov 2004 20:13:58 +0000 Subject: [PATCH] Added a comment why debugging kernel stacks doesn't work like one would expect. Added prototype for new shutdown() function. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10041 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/kernel.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/headers/private/kernel/kernel.h b/headers/private/kernel/kernel.h index cd1932ae93..2b83feb21c 100644 --- a/headers/private/kernel/kernel.h +++ b/headers/private/kernel/kernel.h @@ -20,6 +20,12 @@ #define IS_KERNEL_ADDRESS(x) \ ((addr_t)(x) >= KERNEL_BASE && (addr_t)(x) <= KERNEL_TOP) +//#define DEBUG_KERNEL_STACKS + // Note, debugging kernel stacks doesn't really work yet. Since the + // interrupt will also try to use the stack on a page fault, all + // you get is a reboot. + // At least, you then know that the stack overflows in this case :) + /** Size of the kernel stack */ #ifndef DEBUG_KERNEL_STACKS # define KERNEL_STACK_SIZE (B_PAGE_SIZE * 2) // 8 kB @@ -45,5 +51,9 @@ #define SET_BIT(a, b) ((a) | (1 << (b))) #define CLEAR_BIT(a, b) ((a) & (~(1 << (b)))) +#ifdef __cplusplus +extern "C" +#endif +status_t shutdown(bool reboot); #endif /* _KERNEL_KERNEL_H */