From 8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 15 Sep 2013 02:29:06 -0400 Subject: Rename hw/cmos.h to hw/rtc.h and copy RTC code from clock.c to hw/rtc.c. Group the Real Time Clock code into hw/rtc.[ch]. Also, use rtc_read/write/mask function naming (instead of inb/outb_cmos) to be more consistent with other register accessors. Signed-off-by: Kevin O'Connor --- src/stacks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/stacks.c') diff --git a/src/stacks.c b/src/stacks.c index cc597c6..d8aaca8 100644 --- a/src/stacks.c +++ b/src/stacks.c @@ -6,6 +6,7 @@ #include "biosvar.h" // GET_GLOBAL #include "bregs.h" // CR0_PE +#include "hw/rtc.h" // rtc_use #include "list.h" // hlist_node #include "malloc.h" // free #include "output.h" // dprintf @@ -446,7 +447,7 @@ start_preempt(void) return; CanPreempt = 1; PreemptCount = 0; - useRTC(); + rtc_use(); } // Turn off RTC irqs / stop checking for thread execution. @@ -458,7 +459,7 @@ finish_preempt(void) return; } CanPreempt = 0; - releaseRTC(); + rtc_release(); dprintf(9, "Done preempt - %d checks\n", PreemptCount); yield(); } -- cgit v1.2.1