From e443b859e64f0f92783f7ce6f7b3d7b147516eff Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Mon, 9 Mar 2015 10:32:49 +0100 Subject: [PATCH] base: Add x86 RESET pseudo-exception Define RESET as exception 0xfe. The reset state is only used initially in the CPU idle exception function. --- repos/base/include/x86_64/cpu/cpu_state.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/base/include/x86_64/cpu/cpu_state.h b/repos/base/include/x86_64/cpu/cpu_state.h index 5f0925d3b..a55ffe68e 100644 --- a/repos/base/include/x86_64/cpu/cpu_state.h +++ b/repos/base/include/x86_64/cpu/cpu_state.h @@ -27,6 +27,7 @@ struct Genode::Cpu_state PAGE_FAULT = 0x0e, SUPERVISOR_CALL = 0x80, INTERRUPTS_START = 0x20, + RESET = 0xfe, INTERRUPTS_END = 0xff, }; @@ -49,7 +50,7 @@ struct Genode::Cpu_state addr_t rbp = 0; addr_t errcode = 0; addr_t eflags = 0; - addr_t trapno = 0; + addr_t trapno = RESET; addr_t ss = 0; };