File tree 4 files changed +194
-204
lines changed 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"
13
13
embedded-time = " 0.12.1"
14
14
plic = " 0.0.2"
15
15
xuantie-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"
18
16
19
17
[dev-dependencies ]
20
18
Original file line number Diff line number Diff line change 3
3
use crate :: { HalBasicConfig , HalFlashConfig , HalPatchCfg } ;
4
4
5
5
#[ cfg( all( feature = "bl616" , target_arch = "riscv32" ) ) ]
6
- #[ naked_function :: naked]
6
+ #[ unsafe ( naked) ]
7
7
#[ link_section = ".text.entry" ]
8
8
#[ export_name = "_start" ]
9
9
unsafe extern "C" fn start ( ) -> ! {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use core::arch::naked_asm;
14
14
const LEN_STACK : usize = 1 * 1024 ;
15
15
16
16
#[ cfg( feature = "bl702" ) ]
17
- #[ naked_function :: naked]
17
+ #[ unsafe ( naked) ]
18
18
#[ unsafe( link_section = ".text.entry" ) ]
19
19
#[ unsafe( export_name = "_start" ) ]
20
20
unsafe extern "C" fn start ( ) -> ! {
You can’t perform that action at this time.
0 commit comments