Changeset b0edf3b2 in mainline for arch/ia32/src/boot/boot.S


Ignore:
Timestamp:
2005-09-09T11:59:25Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
38de8a5
Parents:
ba1b7393
Message:

Add comments for new floating point modifiers to print.c.
Remove left-over comments from AMD64 and IA-32 page.c.
Coding style clean up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/boot/boot.S

    rba1b7393 rb0edf3b2  
    5454        movw %ax, %ds
    5555        movw %ax, %ss                                                   # initialize stack segment register
    56         movl $BOOTSTRAP_OFFSET - 0x400, %esp    # initialize stack pointer
     56        movl $BOOTSTRAP_OFFSET - 0x400, %esp                            # initialize stack pointer
    5757       
    5858        call memmap_arch_init
    5959       
    60         lgdt real_bootstrap_gdtr_boot           # initialize Global Descriptor Table register
     60        lgdt real_bootstrap_gdtr_boot                                   # initialize Global Descriptor Table register
    6161       
    6262        movl %cr0, %eax
     
    8383        movw %ax, %gs
    8484        movw %ax, %fs
    85         movw %ax, %ds                   # kernel data + stack
     85        movw %ax, %ds                                                   # kernel data + stack
    8686        movw %ax, %ss
    8787       
    88         movb $0xd1, %al                 # enable A20 using the keyboard controller
     88        movb $0xd1, %al                                                 # enable A20 using the keyboard controller
    8989        outb %al, $0x64
    9090        movb $0xdf, %al
     
    9797        rep movsb
    9898       
    99         call map_kernel                 # map kernel and turn paging on
    100        
    101         call main_bsp                   # never returns
     99        call map_kernel                                                 # map kernel and turn paging on
     100       
     101        call main_bsp                                                   # never returns
    102102
    103103        cli
     
    105105       
    106106multiboot_image_start:
    107         movl $BOOTSTRAP_OFFSET - 0x400, %esp                    # initialize stack pointer
    108        
    109         lgdt protected_bootstrap_gdtr - 0x80000000              # initialize Global Descriptor Table register
     107        movl $BOOTSTRAP_OFFSET - 0x400, %esp                            # initialize stack pointer
     108       
     109        lgdt protected_bootstrap_gdtr - 0x80000000                      # initialize Global Descriptor Table register
    110110
    111111        movw $KDATA, %cx
     
    113113        movw %cx, %gs
    114114        movw %cx, %fs
    115         movw %cx, %ds                                                                   # kernel data + stack
     115        movw %cx, %ds                                                   # kernel data + stack
    116116        movw %cx, %ss
    117117       
     
    119119        multiboot_meeting_point:
    120120       
    121         pushl %ebx                                                                              # save parameters from GRUB
     121        pushl %ebx                                                      # save parameters from GRUB
    122122        pushl %eax
    123123       
     
    128128        rep movsb
    129129       
    130         call map_kernel                                                                 # map kernel and turn paging on
     130        call map_kernel                                                 # map kernel and turn paging on
    131131       
    132132        popl %eax
    133133        popl %ebx
    134         cmpl $MULTIBOOT_LOADER_MAGIC, %eax                      # compare GRUB signature
     134        cmpl $MULTIBOOT_LOADER_MAGIC, %eax                              # compare GRUB signature
    135135        je valid_boot
    136136               
     
    204204        invalid_boot:
    205205       
    206         call main_bsp - BOOT_OFFSET                                             # never returns
     206        call main_bsp - BOOT_OFFSET                                     # never returns
    207207
    208208        cli
     
    217217        movl %cr4, %ecx
    218218        orl $(1<<4), %ecx
    219         movl %ecx, %cr4                         # turn PSE on
     219        movl %ecx, %cr4                                                 # turn PSE on
    220220       
    221221        movl $((1<<7)|(1<<0)), %eax
    222         movl %eax, page_directory               # mapping 0x00000000 => 0x00000000
     222        movl %eax, page_directory                                       # mapping 0x00000000 => 0x00000000
    223223
    224224        movl $(page_directory+2048), %edx
    225         movl %eax, (%edx)                       # mapping 0x80000000 => 0x00000000
     225        movl %eax, (%edx)                                               # mapping 0x80000000 => 0x00000000
    226226
    227227        leal page_directory, %eax
Note: See TracChangeset for help on using the changeset viewer.