From c5e1c014af41abcd23a420a556636d90111b18b0 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Mon, 31 Mar 2014 18:31:24 +0000 Subject: [PATCH] -seems like svn doesnt automatically notice lowercase/uppercase changes, whatever... --- resources/extldr/Makefile | 2 +- resources/extldr/main.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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" );