system.cc (7704:b5e6461ea242) system.cc (7720:65d338a8dba4)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

315 installSegDesc(tc, SEGMENT_REG_FS, dsDesc, true);
316 installSegDesc(tc, SEGMENT_REG_GS, dsDesc, true);
317 installSegDesc(tc, SEGMENT_REG_SS, dsDesc, true);
318
319 //Activate long mode.
320 cr0.pg = 1;
321 tc->setMiscReg(MISCREG_CR0, cr0);
322
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

315 installSegDesc(tc, SEGMENT_REG_FS, dsDesc, true);
316 installSegDesc(tc, SEGMENT_REG_GS, dsDesc, true);
317 installSegDesc(tc, SEGMENT_REG_SS, dsDesc, true);
318
319 //Activate long mode.
320 cr0.pg = 1;
321 tc->setMiscReg(MISCREG_CR0, cr0);
322
323 tc->setPC(tc->getSystemPtr()->kernelEntry);
324 tc->setNextPC(tc->readPC());
323 tc->pcState(tc->getSystemPtr()->kernelEntry);
325
326 // We should now be in long mode. Yay!
327
328 Addr ebdaPos = 0xF0000;
329 Addr fixed, table;
330
331 //Write out the SMBios/DMI table
332 writeOutSMBiosTable(ebdaPos, fixed, table);

--- 82 unchanged lines hidden ---
324
325 // We should now be in long mode. Yay!
326
327 Addr ebdaPos = 0xF0000;
328 Addr fixed, table;
329
330 //Write out the SMBios/DMI table
331 writeOutSMBiosTable(ebdaPos, fixed, table);

--- 82 unchanged lines hidden ---