Kernel: map userspace arguments after the entry point
This allows cleaner memory layout for processes that are not loaded to default location
This commit is contained in:
parent
da0b4cd40e
commit
5f66ef34dd
|
@ -539,7 +539,7 @@ namespace Kernel
|
|||
auto region = TRY(MemoryBackedRegion::create(
|
||||
page_table(),
|
||||
bytes,
|
||||
{ .start = 0x400000, .end = KERNEL_OFFSET },
|
||||
{ .start = m_userspace_info.entry, .end = KERNEL_OFFSET },
|
||||
MemoryRegion::Type::PRIVATE,
|
||||
PageTable::Flags::UserSupervisor | PageTable::Flags::ReadWrite | PageTable::Flags::Present
|
||||
));
|
||||
|
|
Loading…
Reference in New Issue