Skip to content

Commit 1efceab

Browse files
xusiweiRbb666
authored andcommitted
[aarch64] Fix rt_aspace_init error when KERNEL_VADDR_START >= 0x80000000
1 parent 56f51c3 commit 1efceab

File tree

1 file changed

+1
-1
lines changed
  • libcpu/aarch64/common

1 file changed

+1
-1
lines changed

libcpu/aarch64/common/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ int rt_hw_mmu_map_init(rt_aspace_t aspace, void *v_address, size_t size,
559559
return -1;
560560
}
561561

562-
rt_aspace_init(aspace, (void *)KERNEL_VADDR_START, 0 - KERNEL_VADDR_START,
562+
rt_aspace_init(aspace, (void *)KERNEL_VADDR_START, 0 - (rt_size_t) KERNEL_VADDR_START,
563563
vtable);
564564

565565
_init_region(v_address, size);

0 commit comments

Comments
 (0)