mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix Sparc64 insw and outsw
git-svn-id: svn://coreboot.org/openbios/openbios-devel@161 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -43,8 +43,8 @@ pa2va(unsigned long pa)
|
|||||||
* are arrays of bytes, and byte-swapping is not appropriate in
|
* are arrays of bytes, and byte-swapping is not appropriate in
|
||||||
* that case. - paulus
|
* that case. - paulus
|
||||||
*/
|
*/
|
||||||
#define insw(port, buf, ns) _insw_ns((uint16_t *)((port)+_IO_BASE), (buf), (ns))
|
#define insw(port, buf, ns) _insw((uint16_t *)((port)+_IO_BASE), (buf), (ns))
|
||||||
#define outsw(port, buf, ns) _outsw_ns((uint16_t *)((port)+_IO_BASE), (buf), (ns))
|
#define outsw(port, buf, ns) _outsw((uint16_t *)((port)+_IO_BASE), (buf), (ns))
|
||||||
|
|
||||||
#define inb(port) in_8((uint8_t *)((port)+_IO_BASE))
|
#define inb(port) in_8((uint8_t *)((port)+_IO_BASE))
|
||||||
#define outb(val, port) out_8((uint8_t *)((port)+_IO_BASE), (val))
|
#define outb(val, port) out_8((uint8_t *)((port)+_IO_BASE), (val))
|
||||||
|
|||||||
Reference in New Issue
Block a user