mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
QEMU changed PCI/IO port byte swapping, adapt OpenBIOS to new way
This requires an updated QEMU. Also use little endian access ASIs. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@671 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -59,7 +59,7 @@ entry:
|
||||
! Check signature "QEMU"
|
||||
setx CFG_ADDR, %g2, %g5
|
||||
mov FW_CFG_SIGNATURE, %g2
|
||||
stha %g2, [%g5] ASI_PHYS_BYPASS_EC_E
|
||||
stha %g2, [%g5] ASI_PHYS_BYPASS_EC_E_L
|
||||
inc %g5
|
||||
lduba [%g5] ASI_PHYS_BYPASS_EC_E, %g2
|
||||
cmp %g2, 'Q'
|
||||
@@ -99,7 +99,7 @@ entry:
|
||||
! NB: little endian format
|
||||
mov FW_CFG_RAM_SIZE, %g2
|
||||
dec %g5
|
||||
stha %g2, [%g5] ASI_PHYS_BYPASS_EC_E
|
||||
stha %g2, [%g5] ASI_PHYS_BYPASS_EC_E_L
|
||||
inc %g5
|
||||
lduba [%g5] ASI_PHYS_BYPASS_EC_E, %g4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user