Skip to content

Commit 8852416

Browse files
committed
removed hardcoded base address
1 parent 5e37640 commit 8852416

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform/m6/sub/101a/boot.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ void setup_mmu_for_chdk(int core) {
7979

8080
{
8181
// create L2 table for following 1MB ROM section
82-
replace_section_with_l2_tbl(0xe0000000, CANON_TABLES_AT, l2adr,
82+
replace_section_with_l2_tbl(ROMBASEADDR, CANON_TABLES_AT, l2adr,
8383
flags);
8484

85-
replace_rom_page(0xe0020000, rompagecopy, l2adr, flags);
85+
replace_rom_page(ROMBASEADDR + 0x20000, rompagecopy, l2adr, flags);
8686
plant_hacks_for_e0020000(rompagecopy);
8787
rompagecopy += PAGE_SIZE;
8888

89-
replace_rom_page(0xe0070000, rompagecopy, l2adr, flags);
89+
replace_rom_page(ROMBASEADDR + 0x70000, rompagecopy, l2adr, flags);
9090
plant_hacks_for_e0070000(rompagecopy);
9191
rompagecopy += PAGE_SIZE;
9292

0 commit comments

Comments
 (0)