summaryrefslogtreecommitdiffhomepage
path: root/Drv/Hello/CheckStack.c
diff options
context:
space:
mode:
Diffstat (limited to 'Drv/Hello/CheckStack.c')
-rw-r--r--Drv/Hello/CheckStack.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/Drv/Hello/CheckStack.c b/Drv/Hello/CheckStack.c
index a3c6621b..3ffbe3e2 100644
--- a/Drv/Hello/CheckStack.c
+++ b/Drv/Hello/CheckStack.c
@@ -4,8 +4,15 @@
------------------------------------------- */
-///! @brief Use this to check your stack, if using MinGW/MSVC/MPCC.
+#include <DDK/KernelString.h>
+#include <DDK/KernelPrint.h>
+#include <DDK/KernelDev.h>
+
+///! @brief Raised when we get out of bounds. Abort here.
void ___chkstk_ms(void)
{
- (void)0;
+ kernelPrintStr("Hello: KeStop needs to be raised...\r");
+
+ char* in = "__chkstk_ms on " __FILE__;
+ kernelCall("KeStop", 0, in, kernelStringLength(in));
}