mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Expand COMBRD(x) macro.
This commit is contained in:
parent
9c12d8bc48
commit
3b8a3187c8
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue