Changeset 0637ddb in mainline for kernel/arch/ia32/src/smp/ap.S


Ignore:
Timestamp:
2016-05-09T07:33:15Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa9f8ad
Parents:
4928165
Message:

Use PAGE_SIZE and KA2PA() instead of numeric constants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/smp/ap.S

    r4928165 r0637ddb  
    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         subl $PA2KA(0), %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.