mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
hw_x86_64: Implement Thread::_reg function
This commit is contained in:
parent
e5be376f57
commit
0568dcc875
@ -40,8 +40,15 @@ Thread_base::Thread_base(Thread * const t)
|
|||||||
|
|
||||||
addr_t Thread::* Thread::_reg(addr_t const id) const
|
addr_t Thread::* Thread::_reg(addr_t const id) const
|
||||||
{
|
{
|
||||||
PDBG("not implemented");
|
static addr_t Thread::* const _regs[] = {
|
||||||
return 0UL;
|
/* [0] */ (addr_t Thread::*)&Thread::ip,
|
||||||
|
/* [1] */ (addr_t Thread::*)&Thread::sp,
|
||||||
|
/* [2] */ (addr_t Thread::*)&Thread::_fault_pd,
|
||||||
|
/* [3] */ (addr_t Thread::*)&Thread::_fault_addr,
|
||||||
|
/* [4] */ (addr_t Thread::*)&Thread::_fault_writes,
|
||||||
|
/* [5] */ (addr_t Thread::*)&Thread::_fault_signal
|
||||||
|
};
|
||||||
|
return id < sizeof(_regs)/sizeof(_regs[0]) ? _regs[id] : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user