trapframe-rs icon indicating copy to clipboard operation
trapframe-rs copied to clipboard

Clear `DF` flag to conform to x86-64 calling convention

Open tangruize opened this issue 1 year ago • 0 comments

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.

tangruize avatar Dec 02 '24 02:12 tangruize