interrupts_and_exceptions.py (6298:9af8736c26be) interrupts_and_exceptions.py (6344:b7104eda0795)
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

--- 129 unchanged lines hidden (view full) ---

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, dataSize=8
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

--- 129 unchanged lines hidden (view full) ---

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, dataSize=8
146 subi t0, t1, t6, flags=(ECF,)
146 sub 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,)
154 # We can modify user visible state here because we're know

--- 92 unchanged lines hidden ---
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,)
154 # We can modify user visible state here because we're know

--- 92 unchanged lines hidden ---