From d261a0f15a350d81430d3937d3c02118c395d27c Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Fri, 8 Nov 2019 07:28:08 +0100 Subject: Implement guarding page --- kernel/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/src/lib.rs') diff --git a/kernel/src/lib.rs b/kernel/src/lib.rs index 45ba8e1..b36d731 100644 --- a/kernel/src/lib.rs +++ b/kernel/src/lib.rs @@ -39,6 +39,7 @@ pub extern "C" fn _start() -> ! { core::iter::successors(Some(0), |n| Some(n + 1)) .for_each(|n| write!(&mut stdout, "hello world {}!", n).unwrap()); + x86_64::instructions::interrupts::int3(); loop {} } @@ -72,6 +73,5 @@ pub extern "C" fn panic_handler(_info: &core::panic::PanicInfo) -> ! { write!(serial::SerialStream::new(), "Testing failed\n").unwrap(); qemu::exit_qemu(qemu::QemuExitCode::Failed); } - x86_64::instructions::interrupts::int3(); loop {} } -- cgit v1.2.3-70-g09d2