romutil.py (6048:65a321a3a691) | romutil.py (6057:882f1b921de7) |
---|---|
1# Copyright (c) 2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 70 unchanged lines hidden (view full) --- 79 srli t10, t10, 3, dataSize=8 80 andi t10, t10, 3, dataSize=8 81 rdattr t5, cs, dataSize=8 82 srli t5, t5, 3, dataSize=8 83 andi t5, t5, 0x3, dataSize=8 84 sub t0, t5, t10, flags=(EZF,), dataSize=8 85 # We're going to change priviledge, so zero out the stack selector. We 86 # need to let the IST have priority so we don't branch yet. | 1# Copyright (c) 2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 70 unchanged lines hidden (view full) --- 79 srli t10, t10, 3, dataSize=8 80 andi t10, t10, 3, dataSize=8 81 rdattr t5, cs, dataSize=8 82 srli t5, t5, 3, dataSize=8 83 andi t5, t5, 0x3, dataSize=8 84 sub t0, t5, t10, flags=(EZF,), dataSize=8 85 # We're going to change priviledge, so zero out the stack selector. We 86 # need to let the IST have priority so we don't branch yet. |
87 wrsel t11, t0, flags=(nCEZF,) | 87 mov t11, t0, t0, flags=(nCEZF,) |
88 89 # Check the IST field of the gate descriptor 90 srli t12, t4, 32, dataSize=8 91 andi t12, t12, 0x7, dataSize=8 92 subi t0, t12, 1, flags=(ECF,), dataSize=8 93 br rom_local_label("%(startLabel)s_istStackSwitch"), flags=(nCECF,) 94 br rom_local_label("%(startLabel)s_cplStackSwitch"), flags=(nCEZF,) 95 --- 128 unchanged lines hidden --- | 88 89 # Check the IST field of the gate descriptor 90 srli t12, t4, 32, dataSize=8 91 andi t12, t12, 0x7, dataSize=8 92 subi t0, t12, 1, flags=(ECF,), dataSize=8 93 br rom_local_label("%(startLabel)s_istStackSwitch"), flags=(nCECF,) 94 br rom_local_label("%(startLabel)s_cplStackSwitch"), flags=(nCEZF,) 95 --- 128 unchanged lines hidden --- |