mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Kernel/aarch64: Return correct values from RegisterState accessors
This commit is contained in:
parent
5aba83e6ba
commit
3611427ce2
1 changed files with 3 additions and 3 deletions
|
@ -22,19 +22,19 @@ struct RegisterState {
|
||||||
u64 tpidr_el0; // EL0 thread ID
|
u64 tpidr_el0; // EL0 thread ID
|
||||||
u64 sp_el0; // EL0 stack pointer
|
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 set_userspace_sp(FlatPtr value)
|
||||||
{
|
{
|
||||||
(void)value;
|
(void)value;
|
||||||
TODO_AARCH64();
|
TODO_AARCH64();
|
||||||
}
|
}
|
||||||
FlatPtr ip() const { return 0; }
|
FlatPtr ip() const { return elr_el1; }
|
||||||
void set_ip(FlatPtr value)
|
void set_ip(FlatPtr value)
|
||||||
{
|
{
|
||||||
(void)value;
|
(void)value;
|
||||||
TODO_AARCH64();
|
TODO_AARCH64();
|
||||||
}
|
}
|
||||||
FlatPtr bp() const { TODO_AARCH64(); }
|
FlatPtr bp() const { return x[29]; }
|
||||||
|
|
||||||
ExecutionMode previous_mode() const
|
ExecutionMode previous_mode() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue