Author: blueswirl Date: 2007-06-27 22:25:34 +0200 (Wed, 27 Jun 2007) New Revision: 157
Modified: openbios-devel/arch/sparc32/entry.S Log: Allow boot start PC to be different from virtual location (boot mode)
Modified: openbios-devel/arch/sparc32/entry.S =================================================================== --- openbios-devel/arch/sparc32/entry.S 2007-06-27 20:19:09 UTC (rev 156) +++ openbios-devel/arch/sparc32/entry.S 2007-06-27 20:25:34 UTC (rev 157) @@ -241,7 +241,7 @@ ba 2f nop 1: - lda [%g4] ASI_M_BYPASS, %g1 + lda [%g4] ASI_M_KERNELTXT, %g1 sta %g1, [%g3] ASI_M_BYPASS 2: cmp %g4, %g5 @@ -254,9 +254,11 @@ sta %g7, [%g2] ASI_M_MMUREGS ! set ctx table ptr set AC_M_CXR, %g2 sta %g0, [%g2] ASI_M_MMUREGS ! context 0 + set highmem, %g2 set 1, %g1 - sta %g1, [%g0] ASI_M_MMUREGS ! enable mmu - + jmp %g2 + sta %g1, [%g0] ASI_M_MMUREGS ! enable mmu +highmem: /* * The code which enables traps is a simplified version of * kernel head.S.