2005-11-03 straumanatslacdotstanforddotedu

* shared/vectors/vectors.S: when returning
	from an exception, reload stack pointer with value from exception
	frame instead of adding a fixed value. -- maybe the exception handler
	modified the frame with good reason (e.g., gdb pushed a dummy frame).
This commit is contained in:
Till Straumann
2005-11-03 22:13:43 +00:00
parent 9a76deb5cb
commit b6e3ee5423

View File

@@ -152,6 +152,10 @@ SYM (push_normalized_frame):
mtsrr0 r3
lwz r3, GPR3_OFFSET(r1)
addi r1,r1, EXCEPTION_FRAME_END
/* DONT add back the frame size but reload the value
* stored in the frame -- maybe the exception handler
* changed it with good reason (e.g., gdb pushed a dummy frame)
*/
lwz r1, GPR1_OFFSET(r1)
SYNC
rfi