Skip to content

Commit 0368247

Browse files
committed
fix(0x01): update function type
1 parent 1ca2868 commit 0368247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/0x01/pkg/boot/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static mut ENTRY: usize = 0;
5252
/// # Safety
5353
///
5454
/// This function is unsafe because the caller must ensure that the kernel entry point is valid.
55-
pub unsafe fn jump_to_entry(bootinfo: *const BootInfo, stacktop: u64) -> ! {
55+
pub(crate) fn jump_to_entry(bootinfo: *const BootInfo, stacktop: u64) -> ! {
5656
unsafe {
5757
assert!(ENTRY != 0, "ENTRY is not set");
5858
asm!("mov rsp, {}; call {}", in(reg) stacktop, in(reg) ENTRY, in("rdi") bootinfo);
@@ -66,7 +66,7 @@ pub unsafe fn jump_to_entry(bootinfo: *const BootInfo, stacktop: u64) -> ! {
6666
///
6767
/// This function is unsafe because the caller must ensure that the kernel entry point is valid.
6868
#[inline(always)]
69-
pub unsafe fn set_entry(entry: usize) {
69+
pub(crate) fn set_entry(entry: usize) {
7070
unsafe {
7171
ENTRY = entry;
7272
}

0 commit comments

Comments
 (0)