mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
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:
committed by
Christian Helmuth
parent
e3f10b5ce2
commit
4b7a5ced3b
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user