mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
UserspaceEmulator: Add ways to check if a Region is stack/mmap
This commit is contained in:
parent
9f1221c785
commit
7e13244238
3 changed files with 8 additions and 0 deletions
|
@ -75,6 +75,7 @@ Emulator::Emulator(const Vector<String>& arguments, NonnullRefPtr<ELF::Loader> e
|
|||
void Emulator::setup_stack(const Vector<String>& arguments)
|
||||
{
|
||||
auto stack_region = make<SimpleRegion>(stack_location, stack_size);
|
||||
stack_region->set_stack(true);
|
||||
m_mmu.add_region(move(stack_region));
|
||||
m_cpu.set_esp(stack_location + stack_size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue