mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
12 lines
200 B
C
12 lines
200 B
C
#ifndef TIME_H
|
|
#define TIME_H
|
|
|
|
#include <stdint.h>
|
|
|
|
void sleep(uint32_t ms) {
|
|
// Call syscall 0 (eax) with 'ms' miliseconds (ebx)
|
|
__asm__ volatile ("int $0x80" : : "a"(0), "b"(ms));
|
|
}
|
|
|
|
#endif
|