summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sgabios.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/sgabios.S b/sgabios.S
index 275d063..96c4e23 100644
--- a/sgabios.S
+++ b/sgabios.S
@@ -1728,6 +1728,7 @@ write_string_tail:
set_cursor_position:
pushw %ax
+ pushw %bx
pushw %ds
pushw $BDA_SEG
popw %ds /* ds = 0x40 */
@@ -1738,6 +1739,7 @@ set_cursor_position:
movw %ax, %bx /* bx = cursor save offset */
movw %dx, (%bx) /* save new cursor value */
popw %ds
+ popw %bx
popw %ax
ret