Skip to content

Commit

Permalink
move AHBWRAM forward by 40 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkRTA committed Jan 20, 2024
1 parent a8ee5a0 commit c3189c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ firm: $(ELF) $(BINS)
@echo "[BUILD] $(DBUILTL)"
@echo "[FIRM] $(FIRM)"
@$(PY3) -m firmtool build $(FIRM) $(FTFLAGS) -g -D $(BINS) arm11/arm11.elf \
-A 0x08000000 0x080a0000 -C NDMA NDMA XDMA -n 0x08000040
-A 0x08000040 0x080a0000 -C NDMA NDMA XDMA -n 0x08000080
@echo "[FIRM] $(FIRMD)"
@$(PY3) -m firmtool build $(FIRMD) $(FTDFLAGS) -g -D $(BINS) arm11/arm11.elf \
-A 0x08000000 0x080a0000 -C NDMA NDMA XDMA -n 0x08000040
-A 0x08000040 0x080a0000 -C NDMA NDMA XDMA -n 0x08000080

vram0: $(VRAM_TAR) .FORCE # legacy target name

Expand Down
5 changes: 3 additions & 2 deletions arm9/link.ld
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENTRY(_start)

MEMORY
{
AHBWRAM (RWX) : ORIGIN = 0x08000000, LENGTH = 512K
AHBWRAM (RWX) : ORIGIN = 0x08000040, LENGTH = 512K - 64
AHBWRAM2 (RWX) : ORIGIN = 0x080a0000, LENGTH = 384K
}

Expand All @@ -30,8 +30,9 @@ SECTIONS
} >AHBWRAM2



__vectors_lma = 0x08000000;
AHBWRAM : ALIGN(4) {
__vectors_lma = .;
/* this needs to be absolute otherwise GM9 won't boot */
__vectors_vma = ABSOLUTE(.);
KEEP(*(.vectors));
Expand Down

0 comments on commit c3189c1

Please sign in to comment.