Changeset e98f1c3e in mainline for kernel/arch/ia32/include


Ignore:
Timestamp:
2016-08-28T11:49:38Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f4c537a
Parents:
db4c43e1
Message:

cstyle (no change in functionality)

Location:
kernel/arch/ia32/include/arch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/arch/asm.h

    rdb4c43e1 re98f1c3e  
    259259 *
    260260 * @return Current interrupt priority level.
     261 *
    261262 */
    262263NO_TRACE static inline ipl_t interrupts_read(void)
     
    270271 *
    271272 * @return Old interrupt priority level.
     273 *
    272274 */
    273275NO_TRACE static inline ipl_t interrupts_enable(void)
     
    285287 *
    286288 * @return Old interrupt priority level.
     289 *
    287290 */
    288291NO_TRACE static inline ipl_t interrupts_disable(void)
  • kernel/arch/ia32/include/arch/cpuid.h

    rdb4c43e1 re98f1c3e  
    8585       
    8686        asm volatile (
    87                 "pushf\n"                       /* read flags */
     87                "pushf\n"                      /* read flags */
    8888                "popl %[ret]\n"
    8989                "movl %[ret], %[val]\n"
    9090               
    91                 "xorl %[eflags_id], %[val]\n"   /* swap the ID bit */
     91                "xorl %[eflags_id], %[val]\n"  /* swap the ID bit */
    9292               
    93                 "pushl %[val]\n"                /* propagate the change into flags */
     93                "pushl %[val]\n"               /* propagate the change into flags */
    9494                "popf\n"
    9595                "pushf\n"
    9696                "popl %[val]\n"
    9797               
    98                 "andl %[eflags_id], %[ret]\n"   /* interrested only in ID bit */
     98                "andl %[eflags_id], %[ret]\n"  /* interrested only in ID bit */
    9999                "andl %[eflags_id], %[val]\n"
    100100                "xorl %[val], %[ret]\n"
Note: See TracChangeset for help on using the changeset viewer.