aboutsummaryrefslogtreecommitdiff
path: root/src/post.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-09-15 02:29:06 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-09-28 22:05:55 -0400
commit8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3 (patch)
tree09bda27298457051fa75436f792d77d56aedaef5 /src/post.c
parent9fcd199861abe0941c76f92b6ee5d450db364e66 (diff)
downloadseabios-hppa-8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3.zip
seabios-hppa-8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3.tar.gz
seabios-hppa-8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3.tar.bz2
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/post.c')
-rw-r--r--src/post.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post.c b/src/post.c
index 592176d..acd2362 100644
--- a/src/post.c
+++ b/src/post.c
@@ -12,12 +12,12 @@
#include "fw/xen.h" // xen_preinit
#include "hw/ahci.h" // ahci_setup
#include "hw/ata.h" // ata_setup
-#include "hw/cmos.h" // CMOS_*
#include "hw/esp-scsi.h" // esp_scsi_setup
#include "hw/lsi-scsi.h" // lsi_scsi_setup
#include "hw/megasas.h" // megasas_setup
#include "hw/pic.h" // pic_setup
#include "hw/ps2port.h" // ps2port_setup
+#include "hw/rtc.h" // rtc_write
#include "hw/usb.h" // usb_setup
#include "hw/virtio-blk.h" // virtio_blk_setup
#include "hw/virtio-scsi.h" // virtio_scsi_setup
@@ -39,7 +39,7 @@ ivt_init(void)
// Setup reset-vector entry point (controls legacy reboots).
HaveRunPost = 1;
- outb_cmos(0, CMOS_RESET_CODE);
+ rtc_write(CMOS_RESET_CODE, 0);
// Initialize all vectors to the default handler.
int i;