Changeset e98f1c3e in mainline for kernel/arch/ia32


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
Files:
5 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"
  • kernel/arch/ia32/src/context.S

    rdb4c43e1 re98f1c3e  
    5959FUNCTION_END(context_save_arch)
    6060
    61 
    6261## Restore saved CPU context
    6362#
  • kernel/arch/ia32/src/ia32.c

    rdb4c43e1 re98f1c3e  
    143143                zone_merge_all();
    144144        }
    145 
    146145}
    147146
  • kernel/arch/ia32/src/smp/ap.S

    rdb4c43e1 re98f1c3e  
    7575        movw %ax, %es
    7676        movw %ax, %ss
    77         movl $KA2PA(ctx), %eax          /* KA2PA((uintptr_t) &ctx) */
     77        movl $KA2PA(ctx), %eax          /* KA2PA((uintptr_t) &ctx) */
    7878        movl CONTEXT_OFFSET_SP(%eax), %esp
    79         leal KA2PA(0)(%esp), %esp       /* KA2PA(ctx.sp) */
     79        leal KA2PA(0)(%esp), %esp       /* KA2PA(ctx.sp) */
    8080
    8181        /*
     
    8585        call map_kernel_pse
    8686       
    87         addl $PA2KA(0), %esp            /* PA2KA(ctx.sp) */
     87        addl $PA2KA(0), %esp            /* PA2KA(ctx.sp) */
    8888       
    8989        /* create the first stack frame */
Note: See TracChangeset for help on using the changeset viewer.