Skip to content

Commit

Permalink
change k_main to be extern "C"
Browse files Browse the repository at this point in the history
  • Loading branch information
n1tram1 committed Feb 17, 2022
1 parent d800364 commit 14a6bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use drivers::plic;
use arch::Architecture;

#[no_mangle]
fn k_main(_core_id: usize, device_tree_ptr: usize) -> ! {
extern "C" fn k_main(_core_id: usize, device_tree_ptr: usize) -> ! {
#[cfg(test)]
ktests_launch();

Expand Down

0 comments on commit 14a6bcd

Please sign in to comment.