system.cc (7447:3fc243687abb) | system.cc (7532:3f6413fc37a2) |
---|---|
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 --- 95 unchanged lines hidden (view full) --- 104 105 tc->setMiscReg(MISCREG_SEG_BASE(seg), base); 106 tc->setMiscReg(MISCREG_SEG_EFF_BASE(seg), honorBase ? base : 0); 107 tc->setMiscReg(MISCREG_SEG_LIMIT(seg), limit); 108 tc->setMiscReg(MISCREG_SEG_ATTR(seg), (MiscReg)attr); 109} 110 111void | 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 --- 95 unchanged lines hidden (view full) --- 104 105 tc->setMiscReg(MISCREG_SEG_BASE(seg), base); 106 tc->setMiscReg(MISCREG_SEG_EFF_BASE(seg), honorBase ? base : 0); 107 tc->setMiscReg(MISCREG_SEG_LIMIT(seg), limit); 108 tc->setMiscReg(MISCREG_SEG_ATTR(seg), (MiscReg)attr); 109} 110 111void |
112X86System::startup() | 112X86System::initState() |
113{ | 113{ |
114 System::startup(); | 114 System::initState(); 115 |
115 ThreadContext *tc = threadContexts[0]; 116 // This is the boot strap processor (BSP). Initialize it to look like 117 // the boot loader has just turned control over to the 64 bit OS. We 118 // won't actually set up real mode or legacy protected mode descriptor 119 // tables because we aren't executing any code that would require 120 // them. We do, however toggle the control bits in the correct order 121 // while allowing consistency checks and the underlying mechansims 122 // just to be safe. --- 288 unchanged lines hidden --- | 116 ThreadContext *tc = threadContexts[0]; 117 // This is the boot strap processor (BSP). Initialize it to look like 118 // the boot loader has just turned control over to the 64 bit OS. We 119 // won't actually set up real mode or legacy protected mode descriptor 120 // tables because we aren't executing any code that would require 121 // them. We do, however toggle the control bits in the correct order 122 // while allowing consistency checks and the underlying mechansims 123 // just to be safe. --- 288 unchanged lines hidden --- |