From 7d16da2a6bc9cc1dd18c2075ed2f39963037fac4 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 31 Jan 2024 19:53:55 +0100 Subject: Kernel: Set rsp to rax, to update the stack pointer. DDK: Add Device Driver Kit directory. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalInterruptRouting.asm | 1 + Public/DDK/.gitkeep | 0 Public/DDK/README.TXT | 3 +++ 3 files changed, 4 insertions(+) create mode 100644 Public/DDK/.gitkeep create mode 100644 Public/DDK/README.TXT diff --git a/Private/HALKit/AMD64/HalInterruptRouting.asm b/Private/HALKit/AMD64/HalInterruptRouting.asm index 36be9de4..9bc13f15 100644 --- a/Private/HALKit/AMD64/HalInterruptRouting.asm +++ b/Private/HALKit/AMD64/HalInterruptRouting.asm @@ -58,6 +58,7 @@ ke_handle_irq: mov rdi, rsp call rt_handle_interrupts + mov rsp, rax pop r15 pop r14 diff --git a/Public/DDK/.gitkeep b/Public/DDK/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/Public/DDK/README.TXT b/Public/DDK/README.TXT new file mode 100644 index 00000000..fec20a60 --- /dev/null +++ b/Public/DDK/README.TXT @@ -0,0 +1,3 @@ +Device Driver Kit + +A Common framework for Device driver development. -- cgit v1.2.3