interrupts_and_exceptions.py (7087:fb8d5786ff30) interrupts_and_exceptions.py (7622:b49144029ec8)
1# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

32# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35#
36# Authors: Gabe Black
37
38microcode = '''
39def macroop IRET_REAL {
1# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

32# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35#
36# Authors: Gabe Black
37
38microcode = '''
39def macroop IRET_REAL {
40 .serializing
40 panic "Real mode iret isn't implemented!"
41};
42
43def macroop IRET_PROT {
41 panic "Real mode iret isn't implemented!"
42};
43
44def macroop IRET_PROT {
45 .serializing
44 .adjust_env oszIn64Override
45
46 # Check for a nested task. This isn't supported at the moment.
47 rflag t1, 14; #NT bit
48 panic "Task switching with iret is unimplemented!", flags=(nCEZF,)
49
50 #t1 = temp_RIP
51 #t2 = temp_CS

--- 177 unchanged lines hidden ---
46 .adjust_env oszIn64Override
47
48 # Check for a nested task. This isn't supported at the moment.
49 rflag t1, 14; #NT bit
50 panic "Task switching with iret is unimplemented!", flags=(nCEZF,)
51
52 #t1 = temp_RIP
53 #t2 = temp_CS

--- 177 unchanged lines hidden ---