File tree Expand file tree Collapse file tree 4 files changed +194
-204
lines changed
Expand file tree Collapse file tree 4 files changed +194
-204
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ cfg-if = "1.0.0"
1313embedded-time = " 0.12.1"
1414plic = " 0.0.2"
1515xuantie-riscv = { git = " https://github.com/rustsbi/xuantie" , rev = " fe7ec712" }
16- # FIXME: remove this dependency once `#![feature(naked_functions)]` is stablized
17- naked-function = " 0.1.5"
1816
1917[dev-dependencies ]
2018
Original file line number Diff line number Diff line change 33use crate :: { HalBasicConfig , HalFlashConfig , HalPatchCfg } ;
44
55#[ cfg( all( feature = "bl616" , target_arch = "riscv32" ) ) ]
6- #[ naked_function :: naked]
6+ #[ unsafe ( naked) ]
77#[ link_section = ".text.entry" ]
88#[ export_name = "_start" ]
99unsafe extern "C" fn start ( ) -> ! {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use core::arch::naked_asm;
1414const LEN_STACK : usize = 1 * 1024 ;
1515
1616#[ cfg( feature = "bl702" ) ]
17- #[ naked_function :: naked]
17+ #[ unsafe ( naked) ]
1818#[ unsafe( link_section = ".text.entry" ) ]
1919#[ unsafe( export_name = "_start" ) ]
2020unsafe extern "C" fn start ( ) -> ! {
You can’t perform that action at this time.
0 commit comments