* WIP: Time syscalls

* Count time from PIT using low tickrate

* Implement realtime

* Implement nanosleep with a tight loop
This commit is contained in:
Jeremy Soller 2016-10-06 20:50:14 -06:00 committed by GitHub
parent 798f7c8808
commit 64cc730eac
11 changed files with 199 additions and 7 deletions

View file

@ -38,7 +38,7 @@ initialize:
.pit:
;initialize the PIT
mov ax, 65535 ;5370 ;this is the divider for the PIT
mov ax, 55483 ;5370 ;this is the divider for the PIT
out 0x40, al
rol ax, 8
out 0x40, al