mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Clear TLBs on reset
git-svn-id: svn://coreboot.org/openbios/openbios-devel@457 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user