kernel: Make Thread::ip() and sp() const-friendly

This commit is contained in:
apio 2024-12-11 19:17:04 +01:00
parent 2868fd8122
commit d8e4489079
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ void Thread::set_ip(u64 ip)
regs.rip = ip;
}
u64 Thread::ip()
u64 Thread::ip() const
{
return regs.rip;
}
@ -25,7 +25,7 @@ void Thread::set_sp(u64 sp)
regs.rsp = sp;
}
u64 Thread::sp()
u64 Thread::sp() const
{
return regs.rsp;
}

View File

@ -198,10 +198,10 @@ struct Thread : public LinkedListNode<Thread>
void set_arguments(u64 arg1, u64 arg2, u64 arg3, u64 arg4);
void set_ip(u64 ip);
u64 ip();
u64 ip() const;
void set_sp(u64 sp);
u64 sp();
u64 sp() const;
void set_return(u64 ret);
u64 return_register();