Created
August 25, 2020 08:01
-
-
Save skyhisi/9f5287115fa2b5eb40bcc7d89cc4b498 to your computer and use it in GitHub Desktop.
Enable Alignment Checks on x86-64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void enable_ac(void) | |
{ | |
__asm__("pushf\n" | |
"orl $0x40000, (%rsp)\n" | |
"popf"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment