diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh5/entry.S')
-rw-r--r-- | arch/sh/kernel/cpu/sh5/entry.S | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/sh/kernel/cpu/sh5/entry.S b/arch/sh/kernel/cpu/sh5/entry.S index 81010b9308b2..0f65bb4372da 100644 --- a/arch/sh/kernel/cpu/sh5/entry.S +++ b/arch/sh/kernel/cpu/sh5/entry.S | |||
@@ -432,7 +432,7 @@ reset_or_panic: | |||
432 | synco /* TAKum03020 (but probably a good idea anyway.) */ | 432 | synco /* TAKum03020 (but probably a good idea anyway.) */ |
433 | putcon SP, DCR | 433 | putcon SP, DCR |
434 | /* First save r0-1 and tr0, as we need to use these */ | 434 | /* First save r0-1 and tr0, as we need to use these */ |
435 | movi resvec_save_area-CONFIG_CACHED_MEMORY_OFFSET, SP | 435 | movi resvec_save_area-CONFIG_PAGE_OFFSET, SP |
436 | st.q SP, 0, r0 | 436 | st.q SP, 0, r0 |
437 | st.q SP, 8, r1 | 437 | st.q SP, 8, r1 |
438 | gettr tr0, r0 | 438 | gettr tr0, r0 |
@@ -442,7 +442,7 @@ reset_or_panic: | |||
442 | getcon EXPEVT, r0 | 442 | getcon EXPEVT, r0 |
443 | movi RESET_CAUSE, r1 | 443 | movi RESET_CAUSE, r1 |
444 | sub r1, r0, r1 /* r1=0 if reset */ | 444 | sub r1, r0, r1 /* r1=0 if reset */ |
445 | movi _stext-CONFIG_CACHED_MEMORY_OFFSET, r0 | 445 | movi _stext-CONFIG_PAGE_OFFSET, r0 |
446 | ori r0, 1, r0 | 446 | ori r0, 1, r0 |
447 | ptabs r0, tr0 | 447 | ptabs r0, tr0 |
448 | beqi r1, 0, tr0 /* Jump to start address if reset */ | 448 | beqi r1, 0, tr0 /* Jump to start address if reset */ |
@@ -454,7 +454,7 @@ reset_or_panic: | |||
454 | beqi r1, 0, tr0 /* jump if single step */ | 454 | beqi r1, 0, tr0 /* jump if single step */ |
455 | 455 | ||
456 | /* Now jump to where we save the registers. */ | 456 | /* Now jump to where we save the registers. */ |
457 | movi panic_stash_regs-CONFIG_CACHED_MEMORY_OFFSET, r1 | 457 | movi panic_stash_regs-CONFIG_PAGE_OFFSET, r1 |
458 | ptabs r1, tr0 | 458 | ptabs r1, tr0 |
459 | blink tr0, r63 | 459 | blink tr0, r63 |
460 | 460 | ||
@@ -490,7 +490,7 @@ debug_exception: | |||
490 | */ | 490 | */ |
491 | putcon SP, DCR | 491 | putcon SP, DCR |
492 | /* Save SSR & SPC, together with R0 & R1, as we need to use 2 regs. */ | 492 | /* Save SSR & SPC, together with R0 & R1, as we need to use 2 regs. */ |
493 | movi resvec_save_area-CONFIG_CACHED_MEMORY_OFFSET, SP | 493 | movi resvec_save_area-CONFIG_PAGE_OFFSET, SP |
494 | 494 | ||
495 | /* With the MMU off, we are bypassing the cache, so purge any | 495 | /* With the MMU off, we are bypassing the cache, so purge any |
496 | * data that will be made stale by the following stores. | 496 | * data that will be made stale by the following stores. |
@@ -558,7 +558,7 @@ debug_interrupt: | |||
558 | /* Save original stack pointer into KCR1 */ | 558 | /* Save original stack pointer into KCR1 */ |
559 | synco | 559 | synco |
560 | putcon SP, KCR1 | 560 | putcon SP, KCR1 |
561 | movi resvec_save_area-CONFIG_CACHED_MEMORY_OFFSET, SP | 561 | movi resvec_save_area-CONFIG_PAGE_OFFSET, SP |
562 | ocbp SP, 0 | 562 | ocbp SP, 0 |
563 | ocbp SP, 32 | 563 | ocbp SP, 32 |
564 | synco | 564 | synco |
@@ -607,7 +607,7 @@ debug_interrupt: | |||
607 | movi EVENT_FAULT_NOT_TLB, r4 | 607 | movi EVENT_FAULT_NOT_TLB, r4 |
608 | 608 | ||
609 | or SP, ZERO, r5 | 609 | or SP, ZERO, r5 |
610 | movi CONFIG_CACHED_MEMORY_OFFSET, r6 | 610 | movi CONFIG_PAGE_OFFSET, r6 |
611 | add r6, r5, r5 | 611 | add r6, r5, r5 |
612 | getcon KCR1, SP | 612 | getcon KCR1, SP |
613 | 613 | ||
@@ -1366,7 +1366,7 @@ route_to_panic_handler: | |||
1366 | last-chance debugging, e.g. if no output wants to go to the console. | 1366 | last-chance debugging, e.g. if no output wants to go to the console. |
1367 | */ | 1367 | */ |
1368 | 1368 | ||
1369 | movi panic_handler - CONFIG_CACHED_MEMORY_OFFSET, r1 | 1369 | movi panic_handler - CONFIG_PAGE_OFFSET, r1 |
1370 | ptabs r1, tr0 | 1370 | ptabs r1, tr0 |
1371 | pta 1f, tr1 | 1371 | pta 1f, tr1 |
1372 | gettr tr1, r0 | 1372 | gettr tr1, r0 |
@@ -1408,7 +1408,7 @@ peek_real_address_q: | |||
1408 | andc r1, r36, r1 /* turn sr.mmu off in real mode section */ | 1408 | andc r1, r36, r1 /* turn sr.mmu off in real mode section */ |
1409 | 1409 | ||
1410 | putcon r1, ssr | 1410 | putcon r1, ssr |
1411 | movi .peek0 - CONFIG_CACHED_MEMORY_OFFSET, r36 /* real mode target address */ | 1411 | movi .peek0 - CONFIG_PAGE_OFFSET, r36 /* real mode target address */ |
1412 | movi 1f, r37 /* virtual mode return addr */ | 1412 | movi 1f, r37 /* virtual mode return addr */ |
1413 | putcon r36, spc | 1413 | putcon r36, spc |
1414 | 1414 | ||
@@ -1457,7 +1457,7 @@ poke_real_address_q: | |||
1457 | andc r1, r36, r1 /* turn sr.mmu off in real mode section */ | 1457 | andc r1, r36, r1 /* turn sr.mmu off in real mode section */ |
1458 | 1458 | ||
1459 | putcon r1, ssr | 1459 | putcon r1, ssr |
1460 | movi .poke0-CONFIG_CACHED_MEMORY_OFFSET, r36 /* real mode target address */ | 1460 | movi .poke0-CONFIG_PAGE_OFFSET, r36 /* real mode target address */ |
1461 | movi 1f, r37 /* virtual mode return addr */ | 1461 | movi 1f, r37 /* virtual mode return addr */ |
1462 | putcon r36, spc | 1462 | putcon r36, spc |
1463 | 1463 | ||
@@ -1954,7 +1954,7 @@ panic_stash_regs: | |||
1954 | getcon SSR,r3 | 1954 | getcon SSR,r3 |
1955 | getcon EXPEVT,r4 | 1955 | getcon EXPEVT,r4 |
1956 | /* Prepare to jump to C - physical address */ | 1956 | /* Prepare to jump to C - physical address */ |
1957 | movi panic_handler-CONFIG_CACHED_MEMORY_OFFSET, r1 | 1957 | movi panic_handler-CONFIG_PAGE_OFFSET, r1 |
1958 | ori r1, 1, r1 | 1958 | ori r1, 1, r1 |
1959 | ptabs r1, tr0 | 1959 | ptabs r1, tr0 |
1960 | getcon DCR, SP | 1960 | getcon DCR, SP |
@@ -2055,7 +2055,7 @@ trap_init: | |||
2055 | andi r19, -4, r19 /* reset MMUOFF + reserved */ | 2055 | andi r19, -4, r19 /* reset MMUOFF + reserved */ |
2056 | /* For RESVEC exceptions we force the MMU off, which means we need the | 2056 | /* For RESVEC exceptions we force the MMU off, which means we need the |
2057 | physical address. */ | 2057 | physical address. */ |
2058 | movi LRESVEC_block-CONFIG_CACHED_MEMORY_OFFSET, r20 | 2058 | movi LRESVEC_block-CONFIG_PAGE_OFFSET, r20 |
2059 | andi r20, -4, r20 /* reset reserved */ | 2059 | andi r20, -4, r20 /* reset reserved */ |
2060 | ori r20, 1, r20 /* set MMUOFF */ | 2060 | ori r20, 1, r20 /* set MMUOFF */ |
2061 | putcon r19, VBR | 2061 | putcon r19, VBR |