Skip to content

Commit

Permalink
fix riscv build
Browse files Browse the repository at this point in the history
Signed-off-by: Graham MacDonald <[email protected]>
  • Loading branch information
gmacd committed Oct 10, 2023
1 parent 64be61d commit 2fada18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riscv64/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ use port::fdt::DeviceTree;
core::arch::global_asm!(include_str!("l.S"));

#[no_mangle]
pub extern "C" fn main9(hartid: usize, dtb_ptr: u64) -> ! {
let dt = unsafe { DeviceTree::from_u64(dtb_ptr).unwrap() };
pub extern "C" fn main9(hartid: usize, dtb_ptr: usize) -> ! {
let dt = unsafe { DeviceTree::from_usize(dtb_ptr).unwrap() };
crate::devcons::init(&dt);
platform_init();

Expand Down

0 comments on commit 2fada18

Please sign in to comment.