interrupts_and_exceptions.py (5916:4bbd6239223c) | interrupts_and_exceptions.py (5932:afa0866171e1) |
---|---|
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 --- 128 unchanged lines hidden (view full) --- 137 andi t0, t4, 0xE, flags=(EZF,) 138 # Since we just found out we're in 64 bit mode, take advantage and 139 # do the appropriate RIP checks. 140 br label("doPopStackStuffAndCheckRIP"), flags=(CEZF,) 141 142 # Here, we know we're -not- in 64 bit mode, so we should do the 143 # appropriate/other RIP checks. 144 # if temp_RIP > CS.limit throw #GP(0) | 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 --- 128 unchanged lines hidden (view full) --- 137 andi t0, t4, 0xE, flags=(EZF,) 138 # Since we just found out we're in 64 bit mode, take advantage and 139 # do the appropriate RIP checks. 140 br label("doPopStackStuffAndCheckRIP"), flags=(CEZF,) 141 142 # Here, we know we're -not- in 64 bit mode, so we should do the 143 # appropriate/other RIP checks. 144 # if temp_RIP > CS.limit throw #GP(0) |
145 rdlimit t6, cs | 145 rdlimit t6, cs, dataSize=8 |
146 subi t0, t1, t6, flags=(ECF,) 147 fault "new GeneralProtection(0)", flags=(CECF,) 148 149 #(temp_CPL!=CPL) 150 srli t7, t4, 4 151 xor t7, t7, t5 152 andi t0, t7, 0x3, flags=(EZF,) 153 br label("doPopStackStuff"), flags=(nCEZF,) --- 93 unchanged lines hidden --- | 146 subi t0, t1, t6, flags=(ECF,) 147 fault "new GeneralProtection(0)", flags=(CECF,) 148 149 #(temp_CPL!=CPL) 150 srli t7, t4, 4 151 xor t7, t7, t5 152 andi t0, t7, 0x3, flags=(EZF,) 153 br label("doPopStackStuff"), flags=(nCEZF,) --- 93 unchanged lines hidden --- |