1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

Kernel: Shrink Thread by making kernel resume TSS heap-allocated.

This commit is contained in:
Andreas Kling 2019-04-20 19:23:45 +02:00
parent c9b86be1cc
commit b2ebf6c798
3 changed files with 6 additions and 4 deletions

View file

@ -694,7 +694,8 @@ void Process::sys$sigreturn()
{
InterruptDisabler disabler;
Scheduler::prepare_to_modify_tss(*current);
current->m_tss = current->m_tss_to_resume_kernel;
current->m_tss = *current->m_tss_to_resume_kernel;
current->m_tss_to_resume_kernel.clear();
#ifdef SIGNAL_DEBUG
kprintf("sys$sigreturn in %s(%u)\n", name().characters(), pid());
auto& tss = current->tss();