Changeset f24d300 in mainline for kernel/arch/amd64/src/amd64.c


Ignore:
Timestamp:
2009-03-03T15:52:55Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e762b43
Parents:
add04f7
Message:

better inline assembler readability using the new symbolic syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/amd64.c

    radd04f7 rf24d300  
    7373static void clean_IOPL_NT_flags(void)
    7474{
    75         asm (
     75        asm volatile (
    7676                "pushfq\n"
    7777                "pop %%rax\n"
     
    7979                "pushq %%rax\n"
    8080                "popfq\n"
    81                 :
    82                 :
    83                 : "%rax"
     81                ::: "%rax"
    8482        );
    8583}
     
    9189static void clean_AM_flag(void)
    9290{
    93         asm (
     91        asm volatile (
    9492                "mov %%cr0, %%rax\n"
    9593                "and $~(0x40000), %%rax\n"
    9694                "mov %%rax, %%cr0\n"
    97                 :
    98                 :
    99                 : "%rax"
     95                ::: "%rax"
    10096        );
    10197}
Note: See TracChangeset for help on using the changeset viewer.