diff options
author | Ian Moffett <ian@osmora.org> | 2025-02-20 13:24:18 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-02-20 13:24:18 -0500 |
commit | 89b144a8916305fc010ba883013dbfb1f98a9d91 (patch) | |
tree | e57b0e8b9b0f8e61ebd847eddc6fa75d03604446 | |
parent | 6bbe7ef049bc1b9d150a21ccd082c2f65f344682 (diff) |
kernel/amd64: i8237: Use word register for mode
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/arch/amd64/isa/i8237.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/isa/i8237.S b/sys/arch/amd64/isa/i8237.S index ef6090a..9c952f7 100644 --- a/sys/arch/amd64/isa/i8237.S +++ b/sys/arch/amd64/isa/i8237.S @@ -99,9 +99,9 @@ i8237_set_mode: 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 |