jump.py (10543:8fb2884b0a75) jump.py (10544:049273bc03f6)
1# Copyright (c) 2007 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

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

140def macroop JMP_FAR_REAL_M
141{
142 lea t1, seg, sib, disp, dataSize=asz
143 ld t2, seg, [1, t0, t1], dsz
144 ld t1, seg, [1, t0, t1]
145 zexti t3, t1, 15, dataSize=8
146 slli t3, t3, 4, dataSize=8
147 wrsel cs, t1, dataSize=2
1# Copyright (c) 2007 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

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

140def macroop JMP_FAR_REAL_M
141{
142 lea t1, seg, sib, disp, dataSize=asz
143 ld t2, seg, [1, t0, t1], dsz
144 ld t1, seg, [1, t0, t1]
145 zexti t3, t1, 15, dataSize=8
146 slli t3, t3, 4, dataSize=8
147 wrsel cs, t1, dataSize=2
148 wrbase cs, t3
148 wrbase cs, t3, dataSize=8
149 wrip t0, t2, dataSize=asz
150};
151
152def macroop JMP_FAR_REAL_P
153{
154 panic "Real mode far jump executed in 64 bit mode!"
155};
156

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

163 slli t3, t3, 3, dataSize=8
164 # Get the selector into t1.
165 srl t1, t2, t3, dataSize=8
166 mov t1, t0, t1, dataSize=2
167 # And get the offset into t2
168 mov t2, t0, t2
169 slli t3, t1, 4, dataSize=8
170 wrsel cs, t1, dataSize=2
149 wrip t0, t2, dataSize=asz
150};
151
152def macroop JMP_FAR_REAL_P
153{
154 panic "Real mode far jump executed in 64 bit mode!"
155};
156

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

163 slli t3, t3, 3, dataSize=8
164 # Get the selector into t1.
165 srl t1, t2, t3, dataSize=8
166 mov t1, t0, t1, dataSize=2
167 # And get the offset into t2
168 mov t2, t0, t2
169 slli t3, t1, 4, dataSize=8
170 wrsel cs, t1, dataSize=2
171 wrbase cs, t3
171 wrbase cs, t3, dataSize=8
172 wrip t0, t2, dataSize=asz
173};
174'''
172 wrip t0, t2, dataSize=asz
173};
174'''