utility.cc (10935:acd48ddd725f) utility.cc (11150:a8a64cca231b)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * Copyright (c) 2011 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 169 unchanged lines hidden (view full) ---

178
179 LocalApicBase lApicBase = 0;
180 lApicBase.base = 0xFEE00000 >> 12;
181 lApicBase.enable = 1;
182 lApicBase.bsp = (cpuId == 0);
183 tc->setMiscReg(MISCREG_APIC_BASE, lApicBase);
184
185 Interrupts * interrupts = dynamic_cast<Interrupts *>(
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * Copyright (c) 2011 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 169 unchanged lines hidden (view full) ---

178
179 LocalApicBase lApicBase = 0;
180 lApicBase.base = 0xFEE00000 >> 12;
181 lApicBase.enable = 1;
182 lApicBase.bsp = (cpuId == 0);
183 tc->setMiscReg(MISCREG_APIC_BASE, lApicBase);
184
185 Interrupts * interrupts = dynamic_cast<Interrupts *>(
186 tc->getCpuPtr()->getInterruptController());
186 tc->getCpuPtr()->getInterruptController(0));
187 assert(interrupts);
188
189 interrupts->setRegNoEffect(APIC_ID, cpuId << 24);
190
191 interrupts->setRegNoEffect(APIC_VERSION, (5 << 16) | 0x14);
192
193 // TODO Set the SMRAM base address (SMBASE) to 0x00030000
194

--- 178 unchanged lines hidden ---
187 assert(interrupts);
188
189 interrupts->setRegNoEffect(APIC_ID, cpuId << 24);
190
191 interrupts->setRegNoEffect(APIC_VERSION, (5 << 16) | 0x14);
192
193 // TODO Set the SMRAM base address (SMBASE) to 0x00030000
194

--- 178 unchanged lines hidden ---