Skip to content

Instantly share code, notes, and snippets.

@augustl
Last active December 9, 2018 19:15
Show Gist options
  • Save augustl/d455414f5e43aca79c3e961a05e8c946 to your computer and use it in GitHub Desktop.
Save augustl/d455414f5e43aca79c3e961a05e8c946 to your computer and use it in GitHub Desktop.
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;
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