aboutsummaryrefslogtreecommitdiff
path: root/src/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/serial.c')
-rw-r--r--src/serial.c6
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