Skip to content

Commit d68110e

Browse files
Improve comments for new functions
1 parent ae1e140 commit d68110e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

aarch32-rt/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,10 @@ core::arch::global_asm!(
844844
);
845845

846846
/// Spins secondary cores.
847+
///
848+
/// This function is exported so the linker can use it as a default
849+
/// implementation of `kmain_secondary`, but it's considered an internal API
850+
/// that we don't expect you to call.
847851
#[unsafe(no_mangle)]
848852
#[cfg(target_arch = "arm")]
849853
pub extern "C" fn _default_kmain_secondary() {
@@ -859,7 +863,9 @@ pub extern "C" fn _default_kmain_secondary() {
859863

860864
// # _asm_stack_setup_preallocated
861865
//
862-
// Configure a stack for every mode. Leaves you in sys mode.
866+
// Configure a stack for every mode using linker provided constants.
867+
//
868+
// Leaves you in SYS mode at the end.
863869
//
864870
// Pass the core number in r0
865871
#[cfg(target_arch = "arm")]

0 commit comments

Comments
 (0)