refactor: 📦 kernel_main should be the main entry point
This commit is contained in:
parent
d6887bccee
commit
94d23a6a47
|
@ -38,7 +38,7 @@ use {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
entry!(kmain);
|
entry!(kernel_main);
|
||||||
|
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
#[panic_handler]
|
#[panic_handler]
|
||||||
|
@ -119,8 +119,8 @@ fn init_uart_serial() {
|
||||||
|
|
||||||
/// Kernel entry point.
|
/// Kernel entry point.
|
||||||
/// `arch` crate is responsible for calling it.
|
/// `arch` crate is responsible for calling it.
|
||||||
#[inline]
|
// #[inline]
|
||||||
pub fn kmain() -> ! {
|
pub fn kernel_main() -> ! {
|
||||||
#[cfg(feature = "jtag")]
|
#[cfg(feature = "jtag")]
|
||||||
machine::arch::jtag::wait_debugger();
|
machine::arch::jtag::wait_debugger();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue