diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-04 15:43:11 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-04 15:43:11 +0200 |
| commit | 16c2e132b39836a3e312f3bda7ee0e6de60d6dd9 (patch) | |
| tree | 2765ceb4dd66164f9b6ab47ac4c6e06558d92481 /Drv/Hello/CheckStack.c | |
| parent | a7c741c93cb0a53aea686eb2f342f2464bc12c14 (diff) | |
MHR-36: IMP kernelAddSyscall(1, __hello_get_hmch);
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Drv/Hello/CheckStack.c')
| -rw-r--r-- | Drv/Hello/CheckStack.c | 11 |
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));
}
|
