Kernel/aarch64: Return correct values from RegisterState accessors

This commit is contained in:
Timon Kruiper 2023-01-30 12:00:10 +01:00 committed by Linus Groh
parent 5aba83e6ba
commit 3611427ce2

View file

@ -22,19 +22,19 @@ struct RegisterState {
u64 tpidr_el0; // EL0 thread ID
u64 sp_el0; // EL0 stack pointer
FlatPtr userspace_sp() const { return 0; }
FlatPtr userspace_sp() const { return sp_el0; }
void set_userspace_sp(FlatPtr value)
{
(void)value;
TODO_AARCH64();
}
FlatPtr ip() const { return 0; }
FlatPtr ip() const { return elr_el1; }
void set_ip(FlatPtr value)
{
(void)value;
TODO_AARCH64();
}
FlatPtr bp() const { TODO_AARCH64(); }
FlatPtr bp() const { return x[29]; }
ExecutionMode previous_mode() const
{