romutil.py (5856:f770af5600c9) romutil.py (5858:54f64fb1bd62)
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

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

90 srli t10, t4, 32, dataSize=8
91 andi t10, t10, 0x7, dataSize=8
92 subi t0, t10, 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
96 # If we're here, it's because the stack isn't being switched.
97 # Set t6 to the new aligned rsp.
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

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

90 srli t10, t4, 32, dataSize=8
91 andi t10, t10, 0x7, dataSize=8
92 subi t0, t10, 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
96 # If we're here, it's because the stack isn't being switched.
97 # Set t6 to the new aligned rsp.
98 mov t6, rsp, dataSize=8
98 mov t6, t6, rsp, dataSize=8
99 andi t6, t6, 0xF0, dataSize=1
100 subi t6, t6, 40 + %(errorCodeSize)d, dataSize=8
101
102 # Check that we can access everything we need to on the stack
103 ldst t0, hs, [1, t0, t6], dataSize=8, addressSize=8
104 ldst t0, hs, [1, t0, t6], \
105 32 + %(errorCodeSize)d, dataSize=8, addressSize=8
106 br rom_local_label("%(startLabel)s_stackSwitched")

--- 103 unchanged lines hidden ---
99 andi t6, t6, 0xF0, dataSize=1
100 subi t6, t6, 40 + %(errorCodeSize)d, dataSize=8
101
102 # Check that we can access everything we need to on the stack
103 ldst t0, hs, [1, t0, t6], dataSize=8, addressSize=8
104 ldst t0, hs, [1, t0, t6], \
105 32 + %(errorCodeSize)d, dataSize=8, addressSize=8
106 br rom_local_label("%(startLabel)s_stackSwitched")

--- 103 unchanged lines hidden ---