mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Reimplemented PIT Timer. Sleep is now a syscall. Also made docs/ that contains some info so i don't forget.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#ifndef TIME_H
|
||||
#define TIME_H
|
||||
|
||||
void sleep(uint32_t ms) {
|
||||
__asm__ volatile ("int $0x80" : : "a"(0), "b"(ms));
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user