diff options
author | Ian Moffett <ian@osmora.org> | 2025-02-21 13:42:39 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-02-21 13:42:39 -0500 |
commit | 6ceef43179c70852f001f1205ff92ebba4d0d4d7 (patch) | |
tree | 7b5741067bfd89a78750fa05456bd95274317543 /sys/arch/amd64/isa/i8237.S | |
parent | d20d25df529f6e8949fd12afe281dea65b22f17f (diff) | |
parent | e3099277531b7b1be0aa6656a3eab3960ab6ede0 (diff) |
Merge branch 'expt'main
Hyra v1.4
Diffstat (limited to 'sys/arch/amd64/isa/i8237.S')
-rw-r--r-- | sys/arch/amd64/isa/i8237.S | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/amd64/isa/i8237.S b/sys/arch/amd64/isa/i8237.S index 00b5bd9..9c952f7 100644 --- a/sys/arch/amd64/isa/i8237.S +++ b/sys/arch/amd64/isa/i8237.S @@ -95,14 +95,13 @@ i8237_set_mode: jg 1f /* Set channel select bits */ - mov %dil, %bl - andb $3, %bl - mov %bl, %al + mov %dil, %al + andb $3, %al /* Set channel mode bits */ - mov %sil, %dl - shlb $2, %dl - or %dl, %al + mov %si, %bx + shlw $2, %bx + or %bl, %al /* Write the mode then we are done */ outb %al, $0x0B |