mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
hw_x86_64: Fill _fault_addr from cr2 in _mmu_exception
Use the Cpu::Cr2 register to read the linear page fault address in the Thread::_mmu_exception function.
This commit is contained in:
parent
d553d38ecf
commit
d0024e1893
@ -64,8 +64,9 @@ Thread_event Thread::* Thread::_event(unsigned const id) const
|
||||
void Thread::_mmu_exception()
|
||||
{
|
||||
_become_inactive(AWAITS_RESUME);
|
||||
_fault_pd = (addr_t)_pd->platform_pd();
|
||||
_fault_pd = (addr_t)_pd->platform_pd();
|
||||
_fault_signal = _fault.signal_context_id();
|
||||
_fault_addr = Cpu::Cr2::read();
|
||||
|
||||
/**
|
||||
* core should never raise a page-fault,
|
||||
|
Loading…
x
Reference in New Issue
Block a user