just protect memory instead of hanging the powerpc

This commit is contained in:
Sven Peter 2009-02-26 21:21:33 +01:00 committed by bushing
parent f3f78fab9f
commit 8335cc690e

View File

@ -104,7 +104,7 @@ int boot2_run(u32 tid_hi, u32 tid_lo) {
patch[3] = tid_lo;
gecko_printf("booting boot2 with title 0x%08x, 0x%08x\n", tid_hi, tid_lo);
powerpc_hang();
mem_protect(1, (void *)0x11000000, (void *)0x13FFFFFF);
memcpy((void *)0x11000000, boot2, sizeof boot2);
ptr = (void *)0x11000000 + hdr->hdrsize + hdr->loadersize;
for (i = 0; i < sizeof(boot2); i += 1) {