From 16c2e132b39836a3e312f3bda7ee0e6de60d6dd9 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Thu, 4 Jul 2024 15:43:11 +0200 Subject: MHR-36: IMP kernelAddSyscall(1, __hello_get_hmch); Signed-off-by: Amlal EL Mahrouss --- Drv/Hello/CheckStack.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Drv/Hello/CheckStack.c') 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 +#include +#include + +///! @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)); } -- cgit v1.2.3