From 3b8a3187c8b8bf96be40c5dccfe4f51074aa494c Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Fri, 1 Feb 2002 14:48:44 +0000 Subject: [PATCH] Expand COMBRD(x) macro. --- sys/boot/pc98/boot2/serial_16550.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/boot/pc98/boot2/serial_16550.S b/sys/boot/pc98/boot2/serial_16550.S index ba0a3612ad4..7512db494c7 100644 --- a/sys/boot/pc98/boot2/serial_16550.S +++ b/sys/boot/pc98/boot2/serial_16550.S @@ -151,10 +151,10 @@ ENTRY(init_serial) outb %al, %dx # enable DLAB subl $3, %edx # divisor latch, low byte - movb $COMBRD(CONSPEED) & 0xff, %al + movb (1843200 / (16*(CONSPEED))) & 0xff, %al outb %al, %dx incl %edx # divisor latch, high byte - movb $COMBRD(CONSPEED) >> 8, %al + movb (1843200 / (16*(CONSPEED))) >> 8, %al outb %al, %dx incl %edx # fifo control register (if any)