diff options
| author | Amlal <amlal@zka.com> | 2024-07-24 20:48:25 +0200 |
|---|---|---|
| committer | Amlal <amlal@zka.com> | 2024-07-24 20:48:25 +0200 |
| commit | 43981bf8ecacb5f95070fa4ff502941d9e3251b4 (patch) | |
| tree | 8ebafc93e88bccd1b4054fd13c31a43fb735c79e /Drivers/SampleDriver | |
| parent | a4f908c4d3d0c8d5a3578bf81028986405e96937 (diff) | |
[MHR-36]: Removed HAL directory, replaced with Samples directory.
Signed-off-by: Amlal <amlal@zka.com>
Diffstat (limited to 'Drivers/SampleDriver')
| -rw-r--r-- | Drivers/SampleDriver/CheckStck.c | 11 | ||||
| -rw-r--r-- | Drivers/SampleDriver/DriverRsrc.rsrc | 25 | ||||
| -rw-r--r-- | Drivers/SampleDriver/Main.c | 20 | ||||
| -rw-r--r-- | Drivers/SampleDriver/compile_flags.txt | 3 | ||||
| -rw-r--r-- | Drivers/SampleDriver/x86_64.mk | 51 |
5 files changed, 0 insertions, 110 deletions
diff --git a/Drivers/SampleDriver/CheckStck.c b/Drivers/SampleDriver/CheckStck.c deleted file mode 100644 index 54b6bc5d..00000000 --- a/Drivers/SampleDriver/CheckStck.c +++ /dev/null @@ -1,11 +0,0 @@ -/* -------------------------------------------
-
- Copyright ZKA Technologies
-
-------------------------------------------- */
-
-///! @brief Use this to check your stack, if using MinGW/MSVC/CodeTools.
-void ___chkstk_ms(void)
-{
- (void)0;
-}
diff --git a/Drivers/SampleDriver/DriverRsrc.rsrc b/Drivers/SampleDriver/DriverRsrc.rsrc deleted file mode 100644 index 2161fe29..00000000 --- a/Drivers/SampleDriver/DriverRsrc.rsrc +++ /dev/null @@ -1,25 +0,0 @@ -1 ICON "../../Icons/main.ico" - -1 VERSIONINFO -FILEVERSION 1,0,0,0 -PRODUCTVERSION 1,0,0,0 -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "080904E4" - BEGIN - VALUE "CompanyName", "ZKA Technologies" - VALUE "FileDescription", "New OS driver." - VALUE "FileVersion", "1.00" - VALUE "InternalName", "SampleDriver" - VALUE "LegalCopyright", "Copyright ZKA Technologies, all rights reserved." - VALUE "OriginalFilename", "SampleDriver.exe" - VALUE "ProductName", "SampleDriver" - VALUE "ProductVersion", "1.00" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0x809, 1252 - END -END diff --git a/Drivers/SampleDriver/Main.c b/Drivers/SampleDriver/Main.c deleted file mode 100644 index 6b54742f..00000000 --- a/Drivers/SampleDriver/Main.c +++ /dev/null @@ -1,20 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Technologies - -------------------------------------------- */ - -#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; -} diff --git a/Drivers/SampleDriver/compile_flags.txt b/Drivers/SampleDriver/compile_flags.txt deleted file mode 100644 index 10bdb71e..00000000 --- a/Drivers/SampleDriver/compile_flags.txt +++ /dev/null @@ -1,3 +0,0 @@ --I../../ --I../../Kernel --std=c++20 diff --git a/Drivers/SampleDriver/x86_64.mk b/Drivers/SampleDriver/x86_64.mk deleted file mode 100644 index 736d8edf..00000000 --- a/Drivers/SampleDriver/x86_64.mk +++ /dev/null @@ -1,51 +0,0 @@ -################################################## -# (C) ZKA Technologies, all rights reserved. -# This is the sample driver makefile. -################################################## - -CC_GNU=x86_64-w64-mingw32-gcc -LD_GNU=x86_64-w64-mingw32-ld - -WINDRES=x86_64-w64-mingw32-windres - -ADD_FILE=touch -COPY=cp -HTTP_GET=wget - -LD_FLAGS=-e __at_enter --subsystem=17 - -OBJ=*.o - - -REM=rm -REM_FLAG=-f - -FLAG_ASM=-f win64 -FLAG_GNU=-fshort-wchar -D__EFI_x86_64__ -mgeneral-regs-only -mno-red-zone -D__KERNEL__ -DEFI_FUNCTION_WRAPPER -I../ -I../../ -I./ -c -ffreestanding -std=c17 -D__HAVE_MAHROUSS_APIS__ -D__MAHROUSS__ -D__BOOTLOADER__ -I./ - -.PHONY: invalid-recipe -invalid-recipe: - @echo "invalid-recipe: Use make all instead." - -.PHONY: all -all: compile-amd64 - $(LD_GNU) $(OBJ) $(LD_FLAGS) -o SampleDriver.exe - -ifneq ($(DEBUG_SUPPORT), ) -DEBUG = -D__DEBUG__ -endif - -.PHONY: compile-amd64 -compile-amd64: - $(WINDRES) DriverRsrc.rsrc -O coff -o DriverRsrc.o - $(CC_GNU) $(FLAG_GNU) $(DEBUG) $(wildcard *.c) $(wildcard ../../DDK/*.c) $(wildcard ../../DDK/*.S) - -.PHONY: clean -clean: - $(REM) $(REM_FLAG) $(OBJ) SampleDriver.exe - -.PHONY: help -help: - @echo "=== HELP ===" - @echo "clean: Clean driver." - @echo "compile-amd64: Build driver." |
