mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
ExceptionStackFrame was renamed to InterruptStackFrame
This commit is contained in:
@@ -275,7 +275,7 @@ lazy_static! {
|
||||
use x86_64::structures::idt::PageFaultErrorCode;
|
||||
|
||||
extern "x86-interrupt" fn page_fault_handler(
|
||||
stack_frame: &mut ExceptionStackFrame,
|
||||
stack_frame: &mut InterruptStackFrame,
|
||||
_error_code: PageFaultErrorCode,
|
||||
) {
|
||||
use crate::hlt_loop;
|
||||
@@ -326,7 +326,7 @@ pub extern "C" fn _start() -> ! {
|
||||
|
||||
When we run it, we see that our page fault handler is called:
|
||||
|
||||

|
||||

|
||||
|
||||
The `CR2` register indeed contains `0xdeadbeaf`, the address that we tried to access.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user