Skip to content

Commit

Permalink
xsave64 alignment fix (#422)
Browse files Browse the repository at this point in the history
Co-authored-by: tompro <tomas.prochazka@apertia.cz>
Co-authored-by: VocalFan <45863583+VocalFan@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 5, 2023
1 parent 4438a3a commit e6dfb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel/src/ee/native/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ impl NativeEngine {
asm.add(rbx, 14 * 8).unwrap(); // Output placeholder.

// Save x87, SSE and AVX states.
let xsave = (self.xsave_area + 15) & !15;
let xsave = (self.xsave_area + 63) & !63;

asm.sub(rsp, xsave).unwrap();
asm.mov(ecx, xsave).unwrap();
Expand Down

0 comments on commit e6dfb56

Please sign in to comment.