Add new threads to runnable threads list
More safely handle nested interrupts. Switch to newly created thread immediately.
This commit is contained in:
1 parent
44a305721e
commit
9874802ee4
4 files changed
+73
-20
No files matched your search
+2
-3
@@ -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, `", "");`);
|
||||
}
|
||||
Reference in new issue
Block a user