diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-05-28 11:52:48 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-05-28 11:52:48 +0200 |
| commit | 8f262d685126a9a9f68beb6d4002ba30bebae401 (patch) | |
| tree | 6b4931b8e647bb4b9a8144ce385850eedb086bd9 /Drv/SampleDriver/SampleDriver.c | |
| parent | 9db58da40cfcb6643412bfae25aefc0cd1077f9d (diff) | |
MHR-23: Improve scheduler code: Dont use 39, write kErrorProcessFault instead.
MHR-23: Improve filesystem structure.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Drv/SampleDriver/SampleDriver.c')
| -rw-r--r-- | Drv/SampleDriver/SampleDriver.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Drv/SampleDriver/SampleDriver.c b/Drv/SampleDriver/SampleDriver.c new file mode 100644 index 00000000..821927be --- /dev/null +++ b/Drv/SampleDriver/SampleDriver.c @@ -0,0 +1,26 @@ +/* ------------------------------------------- + + Copyright SoftwareLabs + +------------------------------------------- */ + +#include <DDK/KernelString.h> +#include <DDK/KernelPrint.h> + +int __ImageStart(void) +{ + kernelPrintStr("SampleDriver: Starting up...\r"); + return 0; +} + +int __ImageEnd(void) +{ + kernelPrintStr("SampleDriver: Shutting down...\r"); + return 0; +} + +///! @brief Use this to check your stack, if using MinGW/MSVC. +void ___chkstk_ms(void) +{ + (void)0; +} |
