Changeset b9e97fb in mainline for arch/amd64/src/boot/boot.S


Ignore:
Timestamp:
2005-08-31T10:53:34Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8f91729
Parents:
9756131
Message:

Better types for ia32 drivers, so that they can be reused in amd64.
Build script cleanup amd64.
New code / not working yet / in amd64.

File:
1 edited

Legend:

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

    r9756131 rb9e97fb  
    6767        # Load gdtr, idtr
    6868        lgdt gdtr_inst
     69        # Load idtr, but it contains mess - we should not get interrupt
     70        # anyway
    6971        lidt idtr_inst
    7072       
     
    7375        movl %eax,%cr0                  # switch to protected mode
    7476
    75         jmpl $selector(KTEXT32_DES), $now_in_prot
     77        jmpl $gdtselector(KTEXT32_DES), $now_in_prot
    7678
    7779no_long_mode:
     
    8385now_in_prot: 
    8486        # Set up stack & data descriptors
    85         movw $selector(KDATA_DES), %ax
     87        movw $gdtselector(KDATA_DES), %ax
    8688        movw %ax, %ds
    8789        movw %ax, %fs
     
    111113       
    112114        # At this point we are in compatibility mode
    113         jmpl $selector(KTEXT_DES), $start64
     115        jmpl $gdtselector(KTEXT_DES), $start64
    114116
    115117.code64
     
    117119        movq START_STACK_64, %rsp
    118120       
    119         lidt idtr_inst
    120        
    121121        call main_bsp   # never returns
    1221221:
    123123        jmp 1b
    124                        
    125 
     124                               
    126125.section K_DATA_START
    127126.align 4096
     127
     128# Identical mapping of first 16MB and the same of -2GB -> 0     
    128129.global ptl_2
    129130ptl_2: 
     
    154155.global gdtr_inst                               
    155156gdtr_inst:
    156         .word selector(GDT_ITEMS)
     157        .word gdtselector(GDT_ITEMS)
    157158        .long KA2PA(gdt)
    158159
    159160.global idtr_inst
    160161idtr_inst:
    161         .word 0
     162        .word idtselector(IDT_ITEMS)
    162163        .long KA2PA(idt)
Note: See TracChangeset for help on using the changeset viewer.