Skip to content

Commit

Permalink
chore(loader): rename load_test_kernel to load_kernel
Browse files Browse the repository at this point in the history
Signed-off-by: tfx2001 <tfx2001@outlook.com>
  • Loading branch information
tfx2001 committed Aug 14, 2024
1 parent 47946e5 commit 71e601b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl BlobInfo {
}
}

pub unsafe fn load_test_kernel() {
pub unsafe fn load_kernel() {
let info: &BlobInfo = &BLOB_TABLE[0];
assert!(info.type_ == BlobType::Kernel);
assert!(info.start + info.length <= BLOB_TABLE[1].start);
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn main() -> ! {
trap_stack::prepare_for_trap();
unsafe {
// 加载内核
loader::load_test_kernel();
loader::load_kernel();
// 加载设备树
loader::load_dtb()
};
Expand Down

0 comments on commit 71e601b

Please sign in to comment.