freemyipod r519 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r518‎ | r519 | r520 >
Date:02:27, 6 February 2011
Author:theseven
Status:new
Tags:
Comment:
emCORE: Fix execfirmware() locking up if the firmware destination overlaps with the calling thread's stack
Modified paths:
  • /emcore/trunk/arm/contextswitch.S (modified) (history)

Diff [purge]

Index: emcore/trunk/arm/contextswitch.S
@@ -148,6 +148,7 @@
149149 .global execfirmware
150150 .type execfirmware, %function
151151 execfirmware:
 152+ ldr sp, =_abortstackend
152153 stmfd sp!, {r0-r2}
153154 bl interrupt_shutdown
154155 mov r0, sp