loader: add small comment

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-08-04 12:50:20 +08:00
parent c5445da5d2
commit f7f7ac2ee0

View file

@ -246,6 +246,7 @@ impl MiniElf {
println!(" Stack");
for i in 0..STACK_PAGE_COUNT {
if i == 0 {
// For the initial stack frame, allocate a valid page
let sp_page = allocator.alloc() as usize;
allocator.map_page(
satp,