system.cc (8852:c744483edfcf) | system.cc (8958:af0f1c66ff53) |
---|---|
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 --- 100 unchanged lines hidden (view full) --- 109 tc->setMiscReg(MISCREG_SEG_ATTR(seg), (MiscReg)attr); 110} 111 112void 113X86System::initState() 114{ 115 System::initState(); 116 | 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 --- 100 unchanged lines hidden (view full) --- 109 tc->setMiscReg(MISCREG_SEG_ATTR(seg), (MiscReg)attr); 110} 111 112void 113X86System::initState() 114{ 115 System::initState(); 116 |
117 if (!kernel) 118 fatal("No kernel to load.\n"); 119 |
|
117 if (kernel->getArch() == ObjectFile::I386) 118 fatal("Loading a 32 bit x86 kernel is not supported.\n"); 119 120 ThreadContext *tc = threadContexts[0]; 121 // This is the boot strap processor (BSP). Initialize it to look like 122 // the boot loader has just turned control over to the 64 bit OS. We 123 // won't actually set up real mode or legacy protected mode descriptor 124 // tables because we aren't executing any code that would require --- 281 unchanged lines hidden --- | 120 if (kernel->getArch() == ObjectFile::I386) 121 fatal("Loading a 32 bit x86 kernel is not supported.\n"); 122 123 ThreadContext *tc = threadContexts[0]; 124 // This is the boot strap processor (BSP). Initialize it to look like 125 // the boot loader has just turned control over to the 64 bit OS. We 126 // won't actually set up real mode or legacy protected mode descriptor 127 // tables because we aren't executing any code that would require --- 281 unchanged lines hidden --- |