trapframe-rs
trapframe-rs copied to clipboard
Clear `DF` flag to conform to x86-64 calling convention
The X86-64 System V ABI requires the DF flag (Direction Flag) to be cleared (DF = 0) on function entry and return. If DF is not cleared, it can lead to undefined and unpredictable behavior during string operations.