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:
parent
c9b86be1cc
commit
b2ebf6c798
3 changed files with 6 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue