mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01: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:
committed by
Christian Helmuth
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,
|
||||
|
||||
Reference in New Issue
Block a user