Changeset b9e97fb in mainline for arch/amd64/src/boot/boot.S
- Timestamp:
- 2005-08-31T10:53:34Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8f91729
- Parents:
- 9756131
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/boot/boot.S
r9756131 rb9e97fb 67 67 # Load gdtr, idtr 68 68 lgdt gdtr_inst 69 # Load idtr, but it contains mess - we should not get interrupt 70 # anyway 69 71 lidt idtr_inst 70 72 … … 73 75 movl %eax,%cr0 # switch to protected mode 74 76 75 jmpl $ selector(KTEXT32_DES), $now_in_prot77 jmpl $gdtselector(KTEXT32_DES), $now_in_prot 76 78 77 79 no_long_mode: … … 83 85 now_in_prot: 84 86 # Set up stack & data descriptors 85 movw $ selector(KDATA_DES), %ax87 movw $gdtselector(KDATA_DES), %ax 86 88 movw %ax, %ds 87 89 movw %ax, %fs … … 111 113 112 114 # At this point we are in compatibility mode 113 jmpl $ selector(KTEXT_DES), $start64115 jmpl $gdtselector(KTEXT_DES), $start64 114 116 115 117 .code64 … … 117 119 movq START_STACK_64, %rsp 118 120 119 lidt idtr_inst120 121 121 call main_bsp # never returns 122 122 1: 123 123 jmp 1b 124 125 124 126 125 .section K_DATA_START 127 126 .align 4096 127 128 # Identical mapping of first 16MB and the same of -2GB -> 0 128 129 .global ptl_2 129 130 ptl_2: … … 154 155 .global gdtr_inst 155 156 gdtr_inst: 156 .word selector(GDT_ITEMS)157 .word gdtselector(GDT_ITEMS) 157 158 .long KA2PA(gdt) 158 159 159 160 .global idtr_inst 160 161 idtr_inst: 161 .word 0162 .word idtselector(IDT_ITEMS) 162 163 .long KA2PA(idt)
Note:
See TracChangeset
for help on using the changeset viewer.