Changes in kernel/arch/amd64/src/boot/boot.S [e80329d6:22c3444] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/boot/boot.S
re80329d6 r22c3444 85 85 86 86 /* Kernel data + stack */ 87 movw $ GDT_SELECTOR(KDATA_DES), %cx87 movw $gdtselector(KDATA_DES), %cx 88 88 movw %cx, %es 89 89 movw %cx, %ds … … 94 94 * when _visible_ part of GS does not point to user-mode segment. 95 95 */ 96 movw $ GDT_SELECTOR(UDATA_DES), %cx96 movw $gdtselector(UDATA_DES), %cx 97 97 movw %cx, %fs 98 98 movw %cx, %gs 99 99 100 jmpl $ GDT_SELECTOR(KTEXT32_DES), $multiboot_meeting_point100 jmpl $gdtselector(KTEXT32_DES), $multiboot_meeting_point 101 101 multiboot_meeting_point: 102 102 … … 182 182 183 183 /* At this point we are in compatibility mode */ 184 jmpl $ GDT_SELECTOR(KTEXT_DES), $start64184 jmpl $gdtselector(KTEXT_DES), $start64 185 185 186 186 /** Print string to EGA display (in light red) and halt. … … 516 516 movq $(PA2KA(0xb80a0)), %rsi 517 517 movq $(PA2KA(0xb8000)), %rdi 518 mov l $480, %ecx518 movq $480, %rcx 519 519 rep movsq 520 520 521 521 /* Clear the 24th row */ 522 xor l %eax, %eax523 mov l $20, %ecx522 xorq %rax, %rax 523 movq $20, %rcx 524 524 rep stosq 525 525 … … 645 645 .section K_DATA_START, "aw", @progbits 646 646 647 .global bootstrap_gdtr 647 648 bootstrap_gdtr: 648 .word GDT_SELECTOR(GDT_ITEMS)649 .word gdtselector(GDT_ITEMS) 649 650 .long KA2PA(gdt) 650 651
Note:
See TracChangeset
for help on using the changeset viewer.