Code cleanup

This commit is contained in:
Pierre Pronchery 2018-04-04 02:12:00 +02:00
parent 202e0bb0ce
commit 9bd6b85451
2 changed files with 7 additions and 4 deletions

View File

@ -11,9 +11,11 @@
.global ioport_write8
.type ioport_write8, @function
ioport_write8:
mov 0x8(%esp), %dx
mov 0xc(%esp), %al
out %al, %dx
mov $0x0, %eax
mov 0x8(%esp), %dx /* address */
mov 0xc(%esp), %al /* value */
out %al, %dx
/* return 0 */
mov $0x0, %eax
ret
#endif

View File

@ -34,6 +34,7 @@ ukBus * bus_init(void)
}
/* private */
/* useful */
/* ioport_write16 */
static int _ioport_write16(ukBus * bus, ukBusAddress * address, uint16_t value)