Add hulk.time and msleep()
This commit is contained in:
1 parent
6251fee3ff
commit
9f8a4ea100
2 files changed
+44
-3
No files matched your search
+2
-3
@@ -6,6 +6,7 @@ module hulk.pit;
|
||||
import hulk.cpu;
|
||||
import hulk.klog;
|
||||
import hulk.console;
|
||||
import hulk.time;
|
||||
|
||||
struct Pit
|
||||
{
|
||||
@@ -29,8 +30,6 @@ struct Pit
|
||||
private enum ubyte MC_RATE_GENERATOR = 0x04u;
|
||||
private enum ubyte MC_BINARY = 0x00u;
|
||||
|
||||
private static __gshared ulong milliseconds;
|
||||
|
||||
public static void initialize()
|
||||
{
|
||||
Klog.writefln("\a3Initializing PIT");
|
||||
@@ -41,6 +40,6 @@ struct Pit
|
||||
|
||||
public static void isr()
|
||||
{
|
||||
milliseconds++;
|
||||
Time.ms_isr();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user