From b7f44f6e0676a933c5aa4d892d789c46daeaaa27 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 26 Jan 2004 13:26:34 -0500 Subject: 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 --- kern/linux/linux_system.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kern') 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)) { -- cgit v1.2.3