mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-09 19:30:29 +00:00
[metal] Ensure DF is clear when calling C from exception handler
This commit is contained in:
parent
a12ad17291
commit
9939a5d207
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ __excep0_isr:
|
|||
mov %eax,%ss
|
||||
mov %eax,%ds
|
||||
mov %eax,%es
|
||||
cld # make sure DF is reset, for C code
|
||||
ezlea .excep_msg,di # stack should be 16-byte aligned now
|
||||
xor %eax,%eax # kprintf is variadic, remember to
|
||||
# pass no. of vector regs. used (= 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue