mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +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:
parent
45230a9544
commit
a15857ea28
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue