Skip to content

Commit

Permalink
fix page table test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
stdrc committed Mar 8, 2022
1 parent 48a3990 commit 3ab1343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/arch/aarch64/mm/page_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void lab2_test_page_table(void)
pgtbl, 0x100000000, 0x100000000, len, flags);
lab_assert(ret == 0);
used_mem =
get_free_mem_size_from_buddy(&global_mem[0]) - free_mem;
free_mem - get_free_mem_size_from_buddy(&global_mem[0]);

for (vaddr_t va = 0x100000000; va < 0x100000000 + len;
va += 5 * PAGE_SIZE + 0x100) {
Expand Down

0 comments on commit 3ab1343

Please sign in to comment.