diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-09-15 02:29:06 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-09-28 22:05:55 -0400 |
commit | 8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3 (patch) | |
tree | 09bda27298457051fa75436f792d77d56aedaef5 /src/stacks.c | |
parent | 9fcd199861abe0941c76f92b6ee5d450db364e66 (diff) | |
download | qemu-seabios-8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3.tar.gz |
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 <kevin@koconnor.net>
Diffstat (limited to 'src/stacks.c')
-rw-r--r-- | src/stacks.c | 5 |
1 files changed, 3 insertions, 2 deletions
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(); } |