Last active
December 9, 2018 19:15
-
-
Save augustl/d455414f5e43aca79c3e961a05e8c946 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn init_idt( | |
) { | |
// IDT.load(); | |
} | |
extern "x86-interrupt" fn breakpoint_handler( | |
stack_frame: &mut x86_64::structures::idt::ExceptionStackFrame | |
) { | |
// println!("EXCEPTION: BREAKPOINT\n{:#?}", stack_frame); | |
} | |
use x86_64::structures::idt::ExceptionStackFrame; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\August\code\halt>cargo xbuild --target .\x86_64-os.json | |
Compiling halt v0.1.0 (C:\Users\August\code\halt) | |
error[E0433]: failed to resolve: did you mean `compiler_builtins::x86_64`? | |
--> src\interrupts.rs:12:5 | |
| | |
12 | use x86_64::structures::idt::ExceptionStackFrame; | |
| ^^^^^^ did you mean `compiler_builtins::x86_64`? | |
warning: unused import: `x86_64::structures::idt::ExceptionStackFrame` | |
--> src\interrupts.rs:12:5 | |
| | |
12 | use x86_64::structures::idt::ExceptionStackFrame; | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: #[warn(unused_imports)] on by default | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0433`. | |
error: Could not compile `halt`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment