diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-06-10 09:09:22 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-06-10 09:09:22 -0400 |
commit | e51316d0cc6f663357d9d6c6f4ee3ffddb0d09e5 (patch) | |
tree | 72fa37be59edd8e2c9d65f4660559c263d6814f9 /src/serial.c | |
parent | 7a88c87f99bd694fc4815854056e0ac529ae905d (diff) | |
download | seabios-hppa-e51316d0cc6f663357d9d6c6f4ee3ffddb0d09e5.zip seabios-hppa-e51316d0cc6f663357d9d6c6f4ee3ffddb0d09e5.tar.gz seabios-hppa-e51316d0cc6f663357d9d6c6f4ee3ffddb0d09e5.tar.bz2 |
Minor - remove CLEARBITS_BDA and SETBITS_BDA macros.
Remove these infrequently used macros and replace with explicit
GET_BDA/SET_BDA calls.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/serial.c')
-rw-r--r-- | src/serial.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/serial.c b/src/serial.c index 21b4bd0..153f82a 100644 --- a/src/serial.c +++ b/src/serial.c @@ -46,8 +46,7 @@ serial_setup(void) dprintf(1, "Found %d serial ports\n", count); // Equipment word bits 9..11 determing # serial ports - u16 eqb = GET_BDA(equipment_list_flags); - SET_BDA(equipment_list_flags, (eqb & 0xf1ff) | (count << 9)); + set_equipment_flags(0xe00, count << 9); } static u16 @@ -211,8 +210,7 @@ lpt_setup(void) dprintf(1, "Found %d lpt ports\n", count); // Equipment word bits 14..15 determing # parallel ports - u16 eqb = GET_BDA(equipment_list_flags); - SET_BDA(equipment_list_flags, (eqb & 0x3fff) | (count << 14)); + set_equipment_flags(0xc000, count << 14); } static u16 |