hw_x86_64: Declare CPU context offset constants

The constants specify offset values of CPU context member variables as
specified by Genode::Cpu_state [1] and Genode::Cpu::Context [2].

[1] - repos/base/include/x86_64/cpu/cpu_state.h
[2] - repos/base-hw/src/core/include/spec/x86/cpu.h
This commit is contained in:
Adrian-Ken Rueegsegger 2015-02-18 00:22:34 +01:00 committed by Christian Helmuth
parent e3f10b5ce2
commit 4b7a5ced3b
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@
/* globally mapped buffer storage */
.set BUFFER_SIZE, 6 * 8
/* offsets of the member variables in a CPU context */
.set SP_OFFSET, 1 * 8
.set R8_OFFSET, 2 * 8
.set RAX_OFFSET, 10 * 8
.set FLAGS_OFFSET, 18 * 8
.set CR3_OFFSET, 20 * 8
.section .text
/*