regop.isa (5936:c30088a243ad) | regop.isa (6058:b62d79c1990b) |
---|---|
1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 1098 unchanged lines hidden (view full) --- 1107 case SegCallGateCheck: 1108 panic("CS checks for far calls/jumps through call gates" 1109 "not implemented.\\n"); 1110 break; 1111 case SegSoftIntGateCheck: 1112 // Check permissions. 1113 if (desc.dpl < m5reg.cpl) { 1114 fault = new GeneralProtection(selector); | 1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 1098 unchanged lines hidden (view full) --- 1107 case SegCallGateCheck: 1108 panic("CS checks for far calls/jumps through call gates" 1109 "not implemented.\\n"); 1110 break; 1111 case SegSoftIntGateCheck: 1112 // Check permissions. 1113 if (desc.dpl < m5reg.cpl) { 1114 fault = new GeneralProtection(selector); |
1115 break; |
|
1115 } 1116 // Fall through on purpose 1117 case SegIntGateCheck: 1118 // Make sure the gate's the right type. 1119 if ((m5reg.mode == LongMode && (desc.type & 0xe) != 0xe) || 1120 ((desc.type & 0x6) != 0x6)) { 1121 fault = new GeneralProtection(0); 1122 } --- 157 unchanged lines hidden --- | 1116 } 1117 // Fall through on purpose 1118 case SegIntGateCheck: 1119 // Make sure the gate's the right type. 1120 if ((m5reg.mode == LongMode && (desc.type & 0xe) != 0xe) || 1121 ((desc.type & 0x6) != 0x6)) { 1122 fault = new GeneralProtection(0); 1123 } --- 157 unchanged lines hidden --- |