system.cc (5499:8bfc7650c344) | system.cc (6378:4a2ff62c3b4f) |
---|---|
1/* 2 * Copyright (c) 2004-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 74 unchanged lines hidden (view full) --- 83 * find the address of the est_cycle_freq variable and insert it 84 * so we don't through the lengthly process of trying to 85 * calculated it by using the PIT, RTC, etc. 86 */ 87 if (kernelSymtab->findAddress("est_cycle_freq", addr)) 88 virtPort.write(addr, (uint64_t)(Clock::Frequency / 89 p->boot_cpu_frequency)); 90 | 1/* 2 * Copyright (c) 2004-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 74 unchanged lines hidden (view full) --- 83 * find the address of the est_cycle_freq variable and insert it 84 * so we don't through the lengthly process of trying to 85 * calculated it by using the PIT, RTC, etc. 86 */ 87 if (kernelSymtab->findAddress("est_cycle_freq", addr)) 88 virtPort.write(addr, (uint64_t)(Clock::Frequency / 89 p->boot_cpu_frequency)); 90 |
91 | |
92 /** 93 * EV5 only supports 127 ASNs so we are going to tell the kernel that the 94 * paritiuclar EV6 we have only supports 127 asns. 95 * @todo At some point we should change ev5.hh and the palcode to support 96 * 255 ASNs. 97 */ 98 if (kernelSymtab->findAddress("dp264_mv", addr)) 99 virtPort.write(addr + 0x18, LittleEndianGuest::htog((uint32_t)127)); 100 else 101 panic("could not find dp264_mv\n"); 102 103#ifndef NDEBUG 104 kernelPanicEvent = addKernelFuncEvent<BreakPCEvent>("panic"); 105 if (!kernelPanicEvent) 106 panic("could not find kernel symbol \'panic\'"); 107 | 91 /** 92 * EV5 only supports 127 ASNs so we are going to tell the kernel that the 93 * paritiuclar EV6 we have only supports 127 asns. 94 * @todo At some point we should change ev5.hh and the palcode to support 95 * 255 ASNs. 96 */ 97 if (kernelSymtab->findAddress("dp264_mv", addr)) 98 virtPort.write(addr + 0x18, LittleEndianGuest::htog((uint32_t)127)); 99 else 100 panic("could not find dp264_mv\n"); 101 102#ifndef NDEBUG 103 kernelPanicEvent = addKernelFuncEvent<BreakPCEvent>("panic"); 104 if (!kernelPanicEvent) 105 panic("could not find kernel symbol \'panic\'"); 106 |
108#if 0 109 kernelDieEvent = addKernelFuncEvent<BreakPCEvent>("die_if_kernel"); 110 if (!kernelDieEvent) 111 panic("could not find kernel symbol \'die_if_kernel\'"); | |
112#endif 113 | 107#endif 108 |
114#endif 115 | |
116 /** 117 * Any time ide_delay_50ms, calibarte_delay or 118 * determine_cpu_caches is called just skip the 119 * function. Currently determine_cpu_caches only is used put 120 * information in proc, however if that changes in the future we 121 * will have to fill in the cache size variables appropriately. 122 */ 123 --- 73 unchanged lines hidden --- | 109 /** 110 * Any time ide_delay_50ms, calibarte_delay or 111 * determine_cpu_caches is called just skip the 112 * function. Currently determine_cpu_caches only is used put 113 * information in proc, however if that changes in the future we 114 * will have to fill in the cache size variables appropriately. 115 */ 116 --- 73 unchanged lines hidden --- |