Skip to content

Commit 6035eea

Browse files
committed
minor
1 parent 90d37fa commit 6035eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/paging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ uint64_t ipa_to_phys(struct vm* vm, uint64_t ipa){ // returns physical page bas
8686
uint64_t ipa_page_offset = ipa & (PAGE_SIZE - 1);
8787
uint64_t ipa_page = ipa &~(PAGE_SIZE - 1);
8888

89-
uint64_t lv1_table = vm->virtual_address_space->lv1_table; // 512 GB block
89+
uint64_t lv1_table = (uint64_t)vm->virtual_address_space->lv1_table; // 512 GB block
9090

9191
uint64_t lv2_table = ((uint64_t*)lv1_table)[0] & ~(PAGE_SIZE - 1); // 1 GB block
9292
uint64_t lv2_index = (ipa_page >> LV2_SHIFT) & (TABLE_ENTRIES - 1);

0 commit comments

Comments
 (0)