Skip to content

Commit

Permalink
exetend description of the function main
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Nov 2, 2024
1 parent df8f760 commit 8bff5c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#[macro_use]
extern crate eduos_rs;

/// This function is the entry point of the kernel
/// This function isn't the entry point, since the linker looks for a function
/// named `_start` by default. But `_start` jumps directly to `main`
#[cfg(not(test))]
#[no_mangle] // don't mangle the name of this function
pub extern "C" fn main() -> i32 {
Expand Down

0 comments on commit 8bff5c4

Please sign in to comment.