1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/kernel/x64
Jonas 'Sortie' Termansen 5e7605fad2 Implement threading primitives that truly sleep.
The idle thread is now actually run when the system is idle because it
truly goes idle. The idle thread is made power efficient by using the hlt
instruction rather than a busy loop.

The new futex(2) system call is used to implement fast user-space mutexes,
condition variables, and semaphores. The same backend and design is used as
kutexes for truly sleeping kernel mutexes and condition variables.

The new exit_thread(2) flag EXIT_THREAD_FUTEX_WAKE wakes a futex.

Sleeping on clocks in the kernel now uses timers for true sleep.

The interrupt worker thread now truly sleeps when idle.

Kernel threads are now named.

This is a compatible ABI change.
2021-06-23 22:10:47 +02:00
..
boot.S Fix multiboot header not coming first in the executable. 2018-12-08 22:34:49 +01:00
crti.S Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
crtn.S Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
interrupt.S Clear the direction flag upon entry to the kernel. 2017-06-12 21:26:26 +01:00
memorymanagement.cpp Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
memorymanagement.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
syscall.S Clear the direction flag upon entry to the kernel. 2017-06-12 21:26:26 +01:00