[feat] Add a sleep or wait function #8

Open
opened 2024-02-27 15:18:31 +01:00 by hgruniaux · 0 comments
hgruniaux commented 2024-02-27 15:18:31 +01:00 (Migrated from github.com)

It is useful to be able to wait for some time or cycles in the kernel (e.g. because the hardware need time to do an operation).

Not to be confused with the sleep system call required for POSIX compatibility. The sleep system call let the scheduler do something else. The kernel sleep just wait some time so the hardware can catch up (in the kernel there is no scheduler for now).

Tutorial: https://github.com/bztsrc/raspi3-tutorial/tree/master/07_delays
The tutorial is not up-to date, QEMU now support BCM System Timer peripheral.

It is useful to be able to wait for some time or cycles in the kernel (e.g. because the hardware need time to do an operation). Not to be confused with the sleep system call required for POSIX compatibility. The sleep system call let the scheduler do something else. The kernel sleep just wait some time so the hardware can catch up (in the kernel there is no scheduler for now). Tutorial: https://github.com/bztsrc/raspi3-tutorial/tree/master/07_delays The tutorial is not up-to date, QEMU now support BCM System Timer peripheral.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hubert/Pi-kachULM_OS#8
No description provided.