ptos/amd64: thread: Add HalThreadYield()

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-15 05:25:35 -04:00
parent a1e15b03da
commit edde0119fb
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -145,6 +145,12 @@ HalThreadInit(THREAD *Thread, ULONG Flags, UPTR Ip)
return STATUS_SUCCESS;
}
VOID
HalThreadYield(VOID)
{
asm volatile("int $0x81");
}
VOID
HalPrimeThreadTimer(ULONG Usec)
{
+5
View File
@@ -22,6 +22,11 @@
*/
PT_STATUS HalThreadInit(THREAD *Thread, ULONG Flags, UPTR Ip);
/*
* Yield the current thread
*/
VOID HalThreadYield(VOID);
/*
* Prime the scheduler timer
*