mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 02:56:10 +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
Notes:
sideshowbarker
2024-07-19 14:03:26 +09:00
Author: https://github.com/awesomekling
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