Changeset b52da8d7 in mainline for arch/ia32/src/boot/boot.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/boot/boot.S

    r229d5fc1 rb52da8d7  
    4848        call memmap_arch_init
    4949       
    50         lgdt gdtr
     50        lgdt gdtr                       # initialize Global Descriptor Table register
     51        lidt idtr                       # initialize Interrupt Descriptor Table register
     52       
    5153        movl %cr0,%eax
    5254        orl $0x1,%eax
    53         movl %eax,%cr0
     55        movl %eax,%cr0                  # switch to protected mode
    5456        jmpl $8,$meeting_point
    5557meeting_point:
     
    6365        movw %ax,%ss
    6466
    65         lidt idtr
    66 
    67         call map_kernel
     67        call map_kernel                 # map kernel and turn paging on
    6868
    6969        movl $_hardcoded_ktext_size, hardcoded_ktext_size
     
    9595        movl %eax, %cr3
    9696       
    97         # turn on paging
     97        # turn paging on
    9898        movl %cr0, %ebx
    9999        orl $(1<<31), %ebx
Note: See TracChangeset for help on using the changeset viewer.