kernel: Make Thread::ip() and sp() const-friendly
This commit is contained in:
parent
2868fd8122
commit
d8e4489079
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user