diff --git a/resources/extldr/Makefile b/resources/extldr/Makefile index 6c300489..a15fe15c 100644 --- a/resources/extldr/Makefile +++ b/resources/extldr/Makefile @@ -13,7 +13,7 @@ STRIP = $(PREFIX)strip MACHDEP = -mcpu=750 -mno-eabi CFLAGS = $(MACHDEP) -O1 -Werror -Wall -pipe -mno-sdata LDFLAGS = $(MACHDEP) -n -nostartfiles -nostdlib -Wl,-T,link.ld -L. -ASFLAGS = -D_LANGUAGE_ASSEMBLY -DHW_RVL +ASFLAGS = -D_LANGUAGE_ASSEMBLY -DHW_RVL -x assembler-with-cpp TARGET_LINKED = boot.elf TARGET = extldr.bin diff --git a/resources/extldr/main.c b/resources/extldr/main.c index 9a9268a2..76d8e5cc 100644 --- a/resources/extldr/main.c +++ b/resources/extldr/main.c @@ -13,9 +13,8 @@ void _main(void) sync_after_write(start, 0xF0000); gprintf("Done! Jumping to Entrypoint...\n"); asm volatile ( - "lis %r3, start@h\n" - "ori %r3, %r3, start@l\n" - "lwz %r3, 0(%r3)\n" + "lis %r3, 0x80A8\n" + "ori %r3, %r3, 0x0000\n" "mtlr %r3\n" "blr\n" );