Skip to content

Commit 79613cd

Browse files
committed
x86_pc: Fix heap not placed properly in memmap
1 parent cb860e1 commit 79613cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/platform/x86_pc/os.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void OS::start(uint32_t boot_magic, uint32_t boot_addr)
154154
"Pre-heap", "Heap randomization area"});
155155

156156
uintptr_t span_max = std::numeric_limits<std::ptrdiff_t>::max();
157-
uintptr_t heap_range_max_ = std::min(span_max, OS::heap_max_-1);
157+
uintptr_t heap_range_max_ = std::min(span_max, OS::heap_max_);
158158

159159
MYINFO("Assigning heap");
160160
memmap.assign_range({::heap_begin, heap_range_max_,

0 commit comments

Comments
 (0)