diff options
author | Andrew Schultz <alschult@umich.edu> | 2004-02-21 20:31:08 -0500 |
---|---|---|
committer | Andrew Schultz <alschult@umich.edu> | 2004-02-21 20:31:08 -0500 |
commit | c82113d02296c40e1a2eac84ba55ae7ffbcf4419 (patch) | |
tree | 1ca4ba2b062f7c7cacefa84fe4db3ba7b63ffbbd /kern | |
parent | 43787ad8639f6ed32d99acb7b1347e58797fde6c (diff) | |
download | gem5-c82113d02296c40e1a2eac84ba55ae7ffbcf4419.tar.xz |
Load local kernel symbols, and set aic7xxx_no_reset to prevent an initial
(very painful) bus reset from occuring
base/loader/elf_object.cc:
Fixed to allow proper loading of local symbols
--HG--
extra : convert_revision : 5c9a1f4d7b5748a1c8cabdfd67763c21f988f8fd
Diffstat (limited to 'kern')
-rw-r--r-- | kern/linux/linux_system.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kern/linux/linux_system.cc b/kern/linux/linux_system.cc index 798577ba5..718e54ad2 100644 --- a/kern/linux/linux_system.cc +++ b/kern/linux/linux_system.cc @@ -77,6 +77,9 @@ LinuxSystem::LinuxSystem(const string _name, const uint64_t _init_param, panic("could not load kernel symbols\n"); debugSymbolTable = kernelSymtab; + if (!kernel->loadLocalSymbols(kernelSymtab)) + panic("could not load kernel local symbols\n"); + if (!console->loadGlobalSymbols(consoleSymtab)) panic("could not load console symbols\n"); @@ -271,6 +274,7 @@ LinuxSystem::LinuxSystem(const string _name, const uint64_t _init_param, #endif //FS_MEASURE Addr addr = 0; + if (kernelSymtab->findAddress("est_cycle_freq", addr)) { Addr paddr = vtophys(physmem, addr); uint8_t *est_cycle_frequency = @@ -280,6 +284,16 @@ LinuxSystem::LinuxSystem(const string _name, const uint64_t _init_param, *(uint64_t *)est_cycle_frequency = ticksPerSecond; } + if (kernelSymtab->findAddress("aic7xxx_no_reset", addr)) { + Addr paddr = vtophys(physmem, addr); + uint8_t *aic7xxx_no_reset = + physmem->dma_addr(paddr, sizeof(uint32_t)); + + if (aic7xxx_no_reset) { + *(uint32_t *)aic7xxx_no_reset = 1; + } + } + if (consoleSymtab->findAddress("env_booted_osflags", addr)) { Addr paddr = vtophys(physmem, addr); char *osflags = (char *)physmem->dma_addr(paddr, sizeof(uint32_t)); |