utility.cc (5648:e8abda6e0980) | utility.cc (6042:827bd9f03fdc) |
---|---|
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 * --- 266 unchanged lines hidden (view full) --- 275 tc->setMiscReg(MISCREG_VM_CR, 0); 276 tc->setMiscReg(MISCREG_IGNNE, 0); 277 tc->setMiscReg(MISCREG_SMM_CTL, 0); 278 tc->setMiscReg(MISCREG_VM_HSAVE_PA, 0); 279} 280 281#endif 282 | 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 * --- 266 unchanged lines hidden (view full) --- 275 tc->setMiscReg(MISCREG_VM_CR, 0); 276 tc->setMiscReg(MISCREG_IGNNE, 0); 277 tc->setMiscReg(MISCREG_SMM_CTL, 0); 278 tc->setMiscReg(MISCREG_VM_HSAVE_PA, 0); 279} 280 281#endif 282 |
283#if FULL_SYSTEM | |
284void startupCPU(ThreadContext *tc, int cpuId) 285{ | 283void startupCPU(ThreadContext *tc, int cpuId) 284{ |
285#if FULL_SYSTEM |
|
286 if (cpuId == 0) { 287 tc->activate(0); 288 } else { 289 // This is an application processor (AP). It should be initialized to 290 // look like only the BIOS POST has run on it and put then put it into 291 // a halted state. | 286 if (cpuId == 0) { 287 tc->activate(0); 288 } else { 289 // This is an application processor (AP). It should be initialized to 290 // look like only the BIOS POST has run on it and put then put it into 291 // a halted state. |
292 tc->suspend(); | 292 tc->suspend(0); |
293 } | 293 } |
294} 295 | |
296#else | 294#else |
297 298void startupCPU(ThreadContext *tc, int cpuId) 299{ | |
300 tc->activate(0); | 295 tc->activate(0); |
296#endif |
|
301} 302 | 297} 298 |
303#endif 304 | |
305} //namespace X86_ISA | 299} //namespace X86_ISA |