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
|
@ -66,6 +66,7 @@ void Thread::_mmu_exception()
|
|||
_become_inactive(AWAITS_RESUME);
|
||||
_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…
Reference in New Issue