schedrelease() syscall for more efficient spinning

This commit is contained in:
2025-09-19 23:38:08 +02:00
parent e01d8d5e1a
commit 1b5701a659
10 changed files with 49 additions and 1 deletions

View File

@ -20,7 +20,9 @@ void tb_runinitscript(void) {
processctl(tb, PCTL_RUN, 0, 0, 0);
while(processctl(tb, PCTL_POLLSTATE, 0, 0, 0) != 4);
while(processctl(tb, PCTL_POLLSTATE, 0, 0, 0) != 4) {
schedrelease();
}
}
void main(void) {