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:
Reto Buerki 2015-03-12 09:21:38 +01:00 committed by Christian Helmuth
parent d553d38ecf
commit d0024e1893
1 changed files with 2 additions and 1 deletions

View File

@ -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,