Ignore:
File:
1 edited

Legend:

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

    re0e00d7 rbac86377  
    2828#
    2929
    30 /*
    31  * Init code for application processors.
    32  */
     30#
     31# Init code for application processors.
     32#
    3333
    3434#include <arch/boot/boot.h>
     
    4646KDATA=16
    4747
    48 /*
    49  * This piece of code is real-mode and is meant to be aligned at 4K boundary.
    50  * The requirement for such an alignment comes from MP Specification's
    51  * STARTUP IPI requirements.
    52  */
     48# This piece of code is real-mode and is meant to be aligned at 4K boundary.
     49# The requirement for such an alignment comes from MP Specification's STARTUP IPI
     50# requirements.
    5351
    5452.align 4096
     
    5957        movw %ax, %ds
    6058
    61         /* initialize Global Descriptor Table register */
    62         lgdtl ap_gdtr
     59        lgdtl ap_gdtr           # initialize Global Descriptor Table register
    6360       
    64         /* switch to protected mode */
    6561        movl %cr0, %eax
    6662        orl $1, %eax
    67         movl %eax, %cr0
     63        movl %eax, %cr0                         # switch to protected mode
    6864        jmpl $KTEXT, $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET
    6965       
     
    7470        movw %ax, %es
    7571        movw %ax, %ss
    76         movl $KA2PA(ctx), %eax  /* KA2PA((uintptr_t) &ctx) */
     72        movl $KA2PA(ctx), %eax                  # KA2PA((uintptr_t) &ctx)
    7773        movl (%eax), %esp
    78         subl $0x80000000, %esp  /* KA2PA(ctx.sp) */
     74        subl $0x80000000, %esp                  # KA2PA(ctx.sp)
    7975
    80         /*
    81          * Map kernel and turn paging on.
    82          * We assume that when using SMP, PSE is always available
    83          */
    84         call map_kernel_pse
     76        call map_kernel                                 # map kernel and turn paging on
    8577       
    86         addl $0x80000000, %esp  /*  PA2KA(ctx.sp) */
     78        addl $0x80000000, %esp                  # PA2KA(ctx.sp)
    8779       
    88         /* create the first stack frame */
    89         pushl $0
     80        pushl $0                                # create the first stack frame
    9081        movl %esp, %ebp
    9182
Note: See TracChangeset for help on using the changeset viewer.