Changeset b52da8d7 in mainline for arch/ia32/src/smp/ap.S


Ignore:
Timestamp:
2005-08-29T11:57:26Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c245372b
Parents:
229d5fc1
Message:

Add some comments to IA-32 src/boot/boot.S and src/smp.S.

Make the boot stack start on page boundary.
This is required by get_stack_base().

Define 'THE' macro.

Implement preemption_disable() and preemption_enable().

Add memory barrier macros.
IA-32 macros need support for older processors.
Non IA-32 macros are dummy.

Reduction of many #include paths.

File:
1 edited

Legend:

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

    r229d5fc1 rb52da8d7  
    5151        movw %ax,%ds
    5252
    53         lgdt gdtr
     53        lgdt gdtr                       # initialize Global Descriptor Table register
     54        lidt idtr                       # initialize Interrupt Descriptor Table register
     55       
    5456        movl %cr0,%eax
    5557        orl $1,%eax
    56         movl %eax,%cr0
     58        movl %eax,%cr0                  # switch to protected mode
    5759        jmpl $KTEXT,$jump_to_kernel
    5860jump_to_kernel:
     
    6668        subl $0x80000000,%esp           # KA2PA(ctx.sp)
    6769
    68         lidt idtr
    69 
    70         call map_kernel
     70        call map_kernel                 # map kernel and turn paging on
    7171
    7272        jmpl $KTEXT,$main_ap
Note: See TracChangeset for help on using the changeset viewer.