1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:07:34 +00:00

Kernel: Clear the X86 direction flag (DF) in the boot loader.

I'm not sure who is responsible for clearing this, but IIUC the C++ ABI
expects it to be clear on function entry, so just to be on the safe side..
This commit is contained in:
Andreas Kling 2019-05-17 18:20:11 +02:00
parent 45230a9544
commit a15857ea28

View file

@ -40,6 +40,9 @@ stack_top:
.type init, @function
start:
cli
cld
mov $stack_top, %esp
and $-16, %esp
@ -48,7 +51,6 @@ start:
pushl %eax /* Multiboot header magic */
pushl %ebx /* Multiboot header pointer */
cli
call init
pushl $exit_message