Add check that PIT ISR is firing

This commit is contained in:
josh committed 2023-11-01 14:45:43 -04:00
1 parent 7264a31ff3
commit 01c73f8474
2 files changed
+12 -2

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ struct Time
*/
public static @property ulong uptime()
{
return s_uptime;
return volatileLoad(&s_uptime);
}
/**
@@ -35,7 +35,7 @@ struct Time
public static void msleep(ulong count)
{
ulong wait_for = s_uptime + count + 1;
while (volatileLoad(&s_uptime) < wait_for)
while (uptime() < wait_for)
{
}
}