diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-13 10:52:28 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-13 10:52:28 +0200 |
| commit | 69d628dd02df81e64dfd9a2e730a44c5c5a0e5a8 (patch) | |
| tree | 90edf6a872632770a8825b76cb0b72d47675ee84 /dev/ZWM/Sources | |
| parent | 409e2b3911af1368bfbb4e965ca0484274215d16 (diff) | |
DDK: Export DDK symbols by default.
ADD: Add ZWM (ZKA Window Manager).
META: The rest are refactors.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/ZWM/Sources')
| -rw-r--r-- | dev/ZWM/Sources/zwm_main.cxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dev/ZWM/Sources/zwm_main.cxx b/dev/ZWM/Sources/zwm_main.cxx new file mode 100644 index 00000000..38d441bd --- /dev/null +++ b/dev/ZWM/Sources/zwm_main.cxx @@ -0,0 +1,32 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + + FILE: IFSMain.cxx + PURPOSE: HPFS IFS entrypoint. + +------------------------------------------- */ + +#include <DDK/KernelStd.h> +#include <cstdint> + +static uint32_t cGPUIndexHW = 0U; +static struct DDK_OBJECT_MANIFEST* cGPUObject = nullptr; + +/** @brief ZWM main, ZWM acts a proxy to the Installed GPU Driver. */ +int32_t ModuleMain(void) +{ + int index_gpu = 0; + struct DDK_OBJECT_MANIFEST* gpu_object = nullptr; + + while (!gpu_object) + { + gpu_object = KernelGetObject(index_gpu, "GPU_OBJECT"); + ++index_gpu; + } + + cGPUIndexHW = index_gpu; + cGPUObject = gpu_object; + + return 0; +} |
