Fantastic Page Faults and Where to FInd Them
Posted: Sun Jan 31, 2021 12:09 pm
I am currently scratching my head at the number of page faults I am getting for no apparent reason.
I managed to fix one where my bootloader info struct pointer would point to a [page fault] after I replaced EFI's paging structures.
Now I'm getting one when I call util::bitmap::operator[], on a... test instruction?
I found the cause was an array-out-of-bounds error.
So, what causes a page fault?
Where might I find page-faulty code?
Please explain.
I managed to fix one where my bootloader info struct pointer would point to a [page fault] after I replaced EFI's paging structures.
Now I'm getting one when I call util::bitmap::operator[], on a... test instruction?
Code: Select all
10067c: 84 04 16 test BYTE PTR [rsi+rdx*1],al
So, what causes a page fault?
Where might I find page-faulty code?
Please explain.