bootloader: Fix stack corruption when pressing non ascii keys
This commit is contained in:
@@ -35,13 +35,13 @@ read_user_command_line:
|
|||||||
cmpb $'\n', %al
|
cmpb $'\n', %al
|
||||||
je .read_user_command_line_done
|
je .read_user_command_line_done
|
||||||
|
|
||||||
pushw %ax
|
movb %al, %bl
|
||||||
|
|
||||||
call isprint
|
call isprint
|
||||||
testb %al, %al
|
testb %al, %al
|
||||||
jz .read_user_command_line_loop
|
jz .read_user_command_line_loop
|
||||||
|
|
||||||
popw %ax
|
movb %bl, %al
|
||||||
|
|
||||||
# put byte to buffer
|
# put byte to buffer
|
||||||
movb %al, (%di)
|
movb %al, (%di)
|
||||||
|
|||||||
Reference in New Issue
Block a user