mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fully decode PCI unit name attribute.
Signed-off-by: Laurent Vivier <Laurent@vivier.eu> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@603 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -90,17 +90,3 @@ hex
|
||||
\ : test-pci
|
||||
\ 0 2 0 dump-pci-device
|
||||
\ ;
|
||||
|
||||
\ only forth
|
||||
|
||||
: decode-unit-pci-bus ( str len bus -- phys.lo phys.mid phys.hi )
|
||||
-rot ascii , left-split
|
||||
( addr-R len-R addr-L len-L )
|
||||
parse-hex b << f800 and
|
||||
-rot parse-hex 8 << 700 and
|
||||
or
|
||||
( bus phys.hi )
|
||||
swap ff and 10 << or
|
||||
0 0 rot
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user