From 71e601b6b994ea657084bb511a82b851e50ff431 Mon Sep 17 00:00:00 2001 From: tfx2001 Date: Thu, 15 Aug 2024 01:27:05 +0800 Subject: [PATCH] chore(loader): rename load_test_kernel to load_kernel Signed-off-by: tfx2001 --- src/loader.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loader.rs b/src/loader.rs index b226911..38ef8c4 100644 --- a/src/loader.rs +++ b/src/loader.rs @@ -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); diff --git a/src/main.rs b/src/main.rs index a66a4e8..7ab25f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,7 @@ fn main() -> ! { trap_stack::prepare_for_trap(); unsafe { // 加载内核 - loader::load_test_kernel(); + loader::load_kernel(); // 加载设备树 loader::load_dtb() };