mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
parent
1455604b13
commit
cbdc7f9e41
Notes:
sideshowbarker
2024-07-18 09:11:48 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/cbdc7f9e416 Pull-request: https://github.com/SerenityOS/serenity/pull/8646
1 changed files with 4 additions and 2 deletions
|
@ -134,13 +134,15 @@ void Emulator::setup_stack(Vector<ELF::AuxiliaryValue> aux_vector)
|
|||
m_cpu.push32(shadow_wrap_as_initialized(argv_entries[i]));
|
||||
u32 argv = m_cpu.esp().value();
|
||||
|
||||
m_cpu.push32(shadow_wrap_as_initialized<u32>(0)); // (alignment)
|
||||
while ((m_cpu.esp().value() + 4) % 16 != 0)
|
||||
m_cpu.push32(shadow_wrap_as_initialized<u32>(0)); // (alignment)
|
||||
|
||||
u32 argc = argv_entries.size();
|
||||
m_cpu.push32(shadow_wrap_as_initialized(envp));
|
||||
m_cpu.push32(shadow_wrap_as_initialized(argv));
|
||||
m_cpu.push32(shadow_wrap_as_initialized(argc));
|
||||
m_cpu.push32(shadow_wrap_as_initialized<u32>(0)); // (alignment)
|
||||
|
||||
VERIFY(m_cpu.esp().value() % 16 == 0);
|
||||
}
|
||||
|
||||
bool Emulator::load_elf()
|
||||
|
|
Loading…
Add table
Reference in a new issue