Add new threads to runnable threads list

More safely handle nested interrupts.
Switch to newly created thread immediately.
This commit is contained in:
josh committed 2023-12-08 12:16:35 -05:00
1 parent 44a305721e
commit 9874802ee4
4 files changed
+73 -20

No files matched your search

+2 -3
View File
@@ -254,8 +254,7 @@ void cpuid1(uint * ebx, uint * ecx, uint * edx)
__asm("cpuid", "=*{ebx},=*{ecx},=*{edx},{eax}", ebx, ecx, edx, 1u);
}
void swint(int swint_id)()
void swint(ubyte swint_id)()
{
static assert((0 <= swint_id) && (swint_id <= 255));
mixin(`__asm("int $$`, swint_id, `", "");`);
mixin(`__asm("int $$`, cast(int)cast(uint)swint_id, `", "");`);
}