utility.cc (5299:e61b9f2a9732) | utility.cc (5360:02a3af203516) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 234 unchanged lines hidden (view full) --- 243 tc->setMiscReg(MISCREG_LAST_EXCEPTION_FROM_IP, 0); 244 tc->setMiscReg(MISCREG_LAST_EXCEPTION_TO_IP, 0); 245 246 // Invalidate the caches (this should already be done for us) 247 248 // TODO Turn on the APIC. This should be handled elsewhere but it isn't 249 // currently being handled at all. 250 | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 234 unchanged lines hidden (view full) --- 243 tc->setMiscReg(MISCREG_LAST_EXCEPTION_FROM_IP, 0); 244 tc->setMiscReg(MISCREG_LAST_EXCEPTION_TO_IP, 0); 245 246 // Invalidate the caches (this should already be done for us) 247 248 // TODO Turn on the APIC. This should be handled elsewhere but it isn't 249 // currently being handled at all. 250 |
251 LocalApicBase lApicBase = 0; 252 lApicBase.base = 0xFEE00000 >> 12; 253 lApicBase.enable = 1; 254 lApicBase.bsp = (cpuId == 0); 255 tc->setMiscReg(MISCREG_APIC_BASE, lApicBase); 256 257 tc->setMiscRegNoEffect(MISCREG_APIC_ID, cpuId << 24); 258 259 tc->setMiscRegNoEffect(MISCREG_APIC_VERSION, (5 << 16) | 0x14); 260 |
|
251 // TODO Set the SMRAM base address (SMBASE) to 0x00030000 252 253 tc->setMiscReg(MISCREG_VM_CR, 0); 254 tc->setMiscReg(MISCREG_IGNNE, 0); 255 tc->setMiscReg(MISCREG_SMM_CTL, 0); 256 tc->setMiscReg(MISCREG_VM_HSAVE_PA, 0); 257} 258 --- 25 unchanged lines hidden --- | 261 // TODO Set the SMRAM base address (SMBASE) to 0x00030000 262 263 tc->setMiscReg(MISCREG_VM_CR, 0); 264 tc->setMiscReg(MISCREG_IGNNE, 0); 265 tc->setMiscReg(MISCREG_SMM_CTL, 0); 266 tc->setMiscReg(MISCREG_VM_HSAVE_PA, 0); 267} 268 --- 25 unchanged lines hidden --- |