We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54bf600 + 0304173 commit 08e0e5dCopy full SHA for 08e0e5d
test-app/src/main.rs
@@ -1,6 +1,5 @@
1
#![no_std]
2
#![no_main]
3
-#![feature(naked_functions)]
4
#![deny(warnings)]
5
6
use core::{
@@ -24,7 +23,7 @@ static mut ROOT_STACK: Stack = Stack([0; 4096]);
24
23
static mut FREE_STACK: Stack = Stack([0; 4096]);
25
static mut ROOT_CONTEXT: FlowContext = FlowContext::ZERO;
26
27
-#[naked]
+#[unsafe(naked)]
28
#[unsafe(no_mangle)]
29
#[unsafe(link_section = ".text.entry")]
30
unsafe extern "C" fn _start() -> ! {
@@ -44,7 +43,7 @@ unsafe extern "C" fn _start() -> ! {
44
43
}
45
46
47
48
unsafe extern "C" fn exception() -> ! {
49
unsafe { naked_asm!("unimp") }
50
0 commit comments