From c9c84dd751f3d6a5cc6a03688ad123cb742bdce4 Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Mon, 9 Mar 2015 10:28:45 +0100 Subject: [PATCH] base: Move Cpu_exception enum to x86_64 cpu_state.h --- repos/base-hw/src/core/spec/x86/kernel/thread.cc | 7 ------- repos/base/include/x86_64/cpu/cpu_state.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/repos/base-hw/src/core/spec/x86/kernel/thread.cc b/repos/base-hw/src/core/spec/x86/kernel/thread.cc index 02bd6e216..46a8d270b 100644 --- a/repos/base-hw/src/core/spec/x86/kernel/thread.cc +++ b/repos/base-hw/src/core/spec/x86/kernel/thread.cc @@ -15,13 +15,6 @@ /* core includes */ #include -enum Cpu_exception { - PAGE_FAULT = 0x0e, - SUPERVISOR_CALL = 0x80, - INTERRUPTS_START = 0x20, - INTERRUPTS_END = 0xff, -}; - using namespace Kernel; Thread::Thread(unsigned const priority, unsigned const quota, diff --git a/repos/base/include/x86_64/cpu/cpu_state.h b/repos/base/include/x86_64/cpu/cpu_state.h index abe1da273..5f0925d3b 100644 --- a/repos/base/include/x86_64/cpu/cpu_state.h +++ b/repos/base/include/x86_64/cpu/cpu_state.h @@ -23,6 +23,13 @@ namespace Genode { struct Cpu_state; } struct Genode::Cpu_state { + enum Cpu_exception { + PAGE_FAULT = 0x0e, + SUPERVISOR_CALL = 0x80, + INTERRUPTS_START = 0x20, + INTERRUPTS_END = 0xff, + }; + addr_t ip = 0; addr_t sp = 0; addr_t r8 = 0;