mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Update abi_x86_interrupt error message
This commit is contained in:
@@ -249,16 +249,13 @@ Our handler just outputs a message and pretty-prints the exception stack frame.
|
|||||||
When we try to compile it, the following error occurs:
|
When we try to compile it, the following error occurs:
|
||||||
|
|
||||||
```
|
```
|
||||||
error: x86-interrupt ABI is experimental and subject to change (see issue #40180)
|
error[E0658]: x86-interrupt ABI is experimental and subject to change (see issue #40180)
|
||||||
--> src/interrupts.rs:8:1
|
--> src/main.rs:53:1
|
||||||
|
|
|
|
||||||
8 | extern "x86-interrupt" fn breakpoint_handler(
|
53 | / extern "x86-interrupt" fn breakpoint_handler(stack_frame: &mut ExceptionStackFrame) {
|
||||||
| _^ starting here...
|
54 | | println!("EXCEPTION: BREAKPOINT\n{:#?}", stack_frame);
|
||||||
9 | | stack_frame: &mut ExceptionStackFrame)
|
55 | | }
|
||||||
10 | | {
|
| |_^
|
||||||
11 | | println!("EXCEPTION: BREAKPOINT\n{:#?}", stack_frame);
|
|
||||||
12 | | }
|
|
||||||
| |_^ ...ending here
|
|
||||||
|
|
|
|
||||||
= help: add #![feature(abi_x86_interrupt)] to the crate attributes to enable
|
= help: add #![feature(abi_x86_interrupt)] to the crate attributes to enable
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user