Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions test-app/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![no_std]
#![no_main]
#![feature(naked_functions)]
#![deny(warnings)]

use core::{
Expand All @@ -24,7 +23,7 @@ static mut ROOT_STACK: Stack = Stack([0; 4096]);
static mut FREE_STACK: Stack = Stack([0; 4096]);
static mut ROOT_CONTEXT: FlowContext = FlowContext::ZERO;

#[naked]
#[unsafe(naked)]
#[unsafe(no_mangle)]
#[unsafe(link_section = ".text.entry")]
unsafe extern "C" fn _start() -> ! {
Expand All @@ -44,7 +43,7 @@ unsafe extern "C" fn _start() -> ! {
}
}

#[naked]
#[unsafe(naked)]
unsafe extern "C" fn exception() -> ! {
unsafe { naked_asm!("unimp") }
}
Expand Down