Просмотр исходного кода

Real-mode code might set the direction flag, which would cause carnage.

tags/v0.9.3
Michael Brown 17 лет назад
Родитель
Сommit
013d381e3c
1 измененных файлов: 3 добавлений и 0 удалений
  1. 3
    0
      src/arch/i386/transitions/librm.S

+ 3
- 0
src/arch/i386/transitions/librm.S Просмотреть файл

@@ -472,6 +472,9 @@ real_call:
472 472
 	call	*rc_function
473 473
 	pushal
474 474
 
475
+	/* For sanity's sake, clear the direction flag as soon as possible */
476
+	cld
477
+
475 478
 	/* Switch to protected mode and move register dump back to PM stack */
476 479
 	movl	$RC_OFFSET_RETADDR, %ecx
477 480
 	pushl	$1f

Загрузка…
Отмена
Сохранить