Skip to content

Instantly share code, notes, and snippets.

@skyhisi
Created August 25, 2020 08:01
Show Gist options
  • Select an option

  • Save skyhisi/9f5287115fa2b5eb40bcc7d89cc4b498 to your computer and use it in GitHub Desktop.

Select an option

Save skyhisi/9f5287115fa2b5eb40bcc7d89cc4b498 to your computer and use it in GitHub Desktop.

Revisions

  1. skyhisi created this gist Aug 25, 2020.
    6 changes: 6 additions & 0 deletions alignment.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    void enable_ac(void)
    {
    __asm__("pushf\n"
    "orl $0x40000, (%rsp)\n"
    "popf");
    }