fix coldboot to boot from return address
[ls2.git] / coldboot / head.S
index 38d5421d51f4a15a0ffd6a42b7c3783219de2312..d5b93dd62c3983303c57353dd183f4287acdcbdd 100644 (file)
@@ -63,6 +63,10 @@ boot_entry:
        LOAD_IMM64(%r12, main)
        mtctr   %r12,
        bctrl
+    /* move return result to ctr and branch to it */
+    mtctr   %r3
+    bctr
+    /* infinite loop */
        b .
 
 #define EXCEPTION(nr)          \