summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-01-26 13:26:34 -0500
committerAli Saidi <saidi@eecs.umich.edu>2004-01-26 13:26:34 -0500
commitb7f44f6e0676a933c5aa4d892d789c46daeaaa27 (patch)
tree1e48e5b6614ec85f5ee9d3d2254f90814ae88e0b /kern
parent9b397ce7f45fc275f9004d78520628e2e7c0dd16 (diff)
downloadgem5-b7f44f6e0676a933c5aa4d892d789c46daeaaa27.tar.xz
Support for Tsunami coming along... RTC, PIC working, UART in progress
dev/tsunami_io.cc: PIC, PIT, RTC implementation for tsunami working so far dev/tsunami_io.hh: PIT, PIC, RTC implementation for tlaser working so far dev/tsunamireg.h: Added RTC defines kern/linux/linux_system.cc: wrote cycle frequency into variable so linux doesn't probe for it. The support exists, but it takes two seconds of time to do on a real machine, so forever in the simulator. --HG-- extra : convert_revision : e0ed7f271ece4ed69c06af35d1b0e8ed848cd138
Diffstat (limited to 'kern')
-rw-r--r--kern/linux/linux_system.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/kern/linux/linux_system.cc b/kern/linux/linux_system.cc
index fe655ad74..db67c5619 100644
--- a/kern/linux/linux_system.cc
+++ b/kern/linux/linux_system.cc
@@ -265,13 +265,13 @@ LinuxSystem::LinuxSystem(const string _name, const uint64_t _init_param,
#endif //FS_MEASURE
Addr addr = 0;
- if (kernelSymtab->findAddress("enable_async_printf", addr)) {
+ if (kernelSymtab->findAddress("est_cycle_freq", addr)) {
Addr paddr = vtophys(physmem, addr);
- uint8_t *enable_async_printf =
- physmem->dma_addr(paddr, sizeof(uint32_t));
+ uint8_t *est_cycle_frequency =
+ physmem->dma_addr(paddr, sizeof(uint64_t));
- if (enable_async_printf)
- *(uint32_t *)enable_async_printf = 0;
+ if (est_cycle_frequency)
+ *(uint64_t *)est_cycle_frequency = ticksPerSecond;
}
if (consoleSymtab->findAddress("env_booted_osflags", addr)) {