[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH 6/6] kernel2: #if CONFIG_ARCH Zeugs



* im.c: register zugriff damit verpackt

Signed-off-by: Andreas Freimuth <m.nemo@xxxxxxx>
---
 src/kernel2/src/interrupts/im.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/kernel2/src/interrupts/im.c b/src/kernel2/src/interrupts/im.c
index 327ca80..38b2b43 100644
--- a/src/kernel2/src/interrupts/im.c
+++ b/src/kernel2/src/interrupts/im.c
@@ -87,7 +87,12 @@ interrupt_stack_frame_t* im_handler(interrupt_stack_frame_t* isf)
     interrupt_stack_frame_t* new_isf = isf;
     uintptr_t isf_addr = (uintptr_t) isf;
 #ifndef CONFIG_RELEASE_VERSION
-    uint32_t eax = isf->eax;
+    uint32_t eax = 0xd00fc0de;
+#    if CONIFG_ARCH == ARCH_I386
+    eax = isf->eax;
+#    elif CONIFG_ARCH == ARCH_AMD64
+    eax = isf->rax;
+#    endif
 #endif
 
     if ((isf_addr < (uintptr_t) thread->kernel_stack_bottom) ||
-- 
1.7.4.4