Clear TLBs on reset

git-svn-id: svn://coreboot.org/openbios/openbios-devel@457 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-02-21 11:11:56 +00:00
parent 21507bfb5b
commit 0c9a399601

View File

@@ -76,6 +76,23 @@ entry:
bne bad_conf
nop
! Clear ITLB
mov 6 << 3, %g1
stxa %g0, [%g1] ASI_IMMU
stxa %g0, [%g1] ASI_DMMU
mov 63 << 3, %g1
1: stxa %g0, [%g1] ASI_ITLB_DATA_ACCESS
subcc %g1, 1 << 3, %g1
bne 1b
nop
! Clear DTLB
mov 63 << 3, %g1
1: stxa %g0, [%g1] ASI_DTLB_DATA_ACCESS
subcc %g1, 1 << 3, %g1
bne 1b
nop
! Get memory size from configuration device
! NB: little endian format
mov FW_CFG_RAM_SIZE, %g2