diff options
author | nyan <nyan@FreeBSD.org> | 2002-02-01 14:48:44 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2002-02-01 14:48:44 +0000 |
commit | 71445fd2e0afffa649adf74ad07b0e1a30167fb1 (patch) | |
tree | 64fdfdebf37c33987091e7552cfbbead737d905b /sys | |
parent | f922a635404567d97749f4df4f1339467f9e8802 (diff) | |
download | FreeBSD-src-71445fd2e0afffa649adf74ad07b0e1a30167fb1.zip FreeBSD-src-71445fd2e0afffa649adf74ad07b0e1a30167fb1.tar.gz |
Expand COMBRD(x) macro.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/boot/pc98/boot2/serial_16550.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/pc98/boot2/serial_16550.S b/sys/boot/pc98/boot2/serial_16550.S index ba0a361..7512db4 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) |