mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
Kernel: Move process signal trampoline address into protected data
This commit is contained in:
parent
08e0e2eb41
commit
b7b7a48c66
3 changed files with 4 additions and 3 deletions
|
@ -530,7 +530,6 @@ KResult Process::do_exec(NonnullRefPtr<FileDescription> main_program_description
|
|||
}
|
||||
|
||||
signal_trampoline_region.value()->set_syscall_region(true);
|
||||
m_signal_trampoline = signal_trampoline_region.value()->vaddr();
|
||||
|
||||
m_executable = main_program_description->custody();
|
||||
m_arguments = arguments;
|
||||
|
@ -605,6 +604,8 @@ KResult Process::do_exec(NonnullRefPtr<FileDescription> main_program_description
|
|||
m_execpromises = 0;
|
||||
m_has_execpromises = false;
|
||||
|
||||
m_signal_trampoline = signal_trampoline_region.value()->vaddr();
|
||||
|
||||
// FIXME: PID/TID ISSUE
|
||||
m_pid = new_main_thread->tid().value();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue