system.cc (6222:9ee4a06a960b) | system.cc (6712:b95abe00dd9d) |
---|---|
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 * --- 197 unchanged lines hidden (view full) --- 206 dsDesc.limitHigh = 0xF; 207 dsDesc.limitLow = 0xFF; 208 uint64_t dsDescVal = dsDesc; 209 physPort->writeBlob(GDTBase + numGDTEntries * 8, 210 (uint8_t *)(&dsDescVal), 8); 211 212 numGDTEntries++; 213 | 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 * --- 197 unchanged lines hidden (view full) --- 206 dsDesc.limitHigh = 0xF; 207 dsDesc.limitLow = 0xFF; 208 uint64_t dsDescVal = dsDesc; 209 physPort->writeBlob(GDTBase + numGDTEntries * 8, 210 (uint8_t *)(&dsDescVal), 8); 211 212 numGDTEntries++; 213 |
214 SegSelector ds; | 214 SegSelector ds = 0; |
215 ds.si = numGDTEntries - 1; 216 217 tc->setMiscReg(MISCREG_DS, (MiscReg)ds); 218 tc->setMiscReg(MISCREG_ES, (MiscReg)ds); 219 tc->setMiscReg(MISCREG_FS, (MiscReg)ds); 220 tc->setMiscReg(MISCREG_GS, (MiscReg)ds); 221 tc->setMiscReg(MISCREG_SS, (MiscReg)ds); 222 --- 207 unchanged lines hidden --- | 215 ds.si = numGDTEntries - 1; 216 217 tc->setMiscReg(MISCREG_DS, (MiscReg)ds); 218 tc->setMiscReg(MISCREG_ES, (MiscReg)ds); 219 tc->setMiscReg(MISCREG_FS, (MiscReg)ds); 220 tc->setMiscReg(MISCREG_GS, (MiscReg)ds); 221 tc->setMiscReg(MISCREG_SS, (MiscReg)ds); 222 --- 207 unchanged lines hidden --- |