Changeset 89c57b6 in mainline for kernel/arch/amd64/src/boot/boot.S
- Timestamp:
- 2011-04-13T14:45:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88634420
- Parents:
- cefb126 (diff), 17279ead (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/boot/boot.S
rcefb126 r89c57b6 85 85 86 86 /* Kernel data + stack */ 87 movw $ gdtselector(KDATA_DES), %cx87 movw $GDT_SELECTOR(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 $ gdtselector(UDATA_DES), %cx96 movw $GDT_SELECTOR(UDATA_DES), %cx 97 97 movw %cx, %fs 98 98 movw %cx, %gs 99 99 100 jmpl $ gdtselector(KTEXT32_DES), $multiboot_meeting_point100 jmpl $GDT_SELECTOR(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 $ gdtselector(KTEXT_DES), $start64184 jmpl $GDT_SELECTOR(KTEXT_DES), $start64 185 185 186 186 /** Print string to EGA display (in light red) and halt. … … 247 247 movl $0xb80a0, %esi 248 248 movl $0xb8000, %edi 249 movl $ 1920, %ecx250 rep movs w249 movl $960, %ecx 250 rep movsl 251 251 252 252 /* Clear the 24th row */ 253 253 xorl %eax, %eax 254 movl $ 80, %ecx255 rep stos w254 movl $40, %ecx 255 rep stosl 256 256 257 257 /* Go to row 24 */ … … 357 357 movl $0xb80a0, %esi 358 358 movl $0xb8000, %edi 359 movl $ 1920, %ecx360 rep movs w359 movl $960, %ecx 360 rep movsl 361 361 362 362 /* Clear the 24th row */ 363 363 xorl %eax, %eax 364 movl $ 80, %ecx365 rep stos w364 movl $40, %ecx 365 rep stosl 366 366 367 367 /* Go to row 24 */ … … 516 516 movq $(PA2KA(0xb80a0)), %rsi 517 517 movq $(PA2KA(0xb8000)), %rdi 518 mov q $1920, %rcx519 rep movs w518 movl $480, %ecx 519 rep movsq 520 520 521 521 /* Clear the 24th row */ 522 xor q %rax, %rax523 mov q $80, %rcx524 rep stos w522 xorl %eax, %eax 523 movl $20, %ecx 524 rep stosq 525 525 526 526 /* Go to row 24 */ … … 605 605 .align 4096 606 606 ptl_2_4g: 607 ptl2gen 512 3607 ptl2gen 512 4 608 608 609 609 /* Page table for pages in the 6th gigabyte. */ 610 610 .align 4096 611 611 ptl_2_5g: 612 ptl2gen 512 3612 ptl2gen 512 5 613 613 614 614 /* Page table for pages in the 7th gigabyte. */ 615 615 .align 4096 616 616 ptl_2_6g: 617 ptl2gen 512 3617 ptl2gen 512 6 618 618 619 619 /* Page table for pages in the 8th gigabyte. */ 620 620 .align 4096 621 621 ptl_2_7g: 622 ptl2gen 512 3622 ptl2gen 512 7 623 623 624 624 .align 4096 … … 645 645 .section K_DATA_START, "aw", @progbits 646 646 647 .global bootstrap_gdtr648 647 bootstrap_gdtr: 649 .word gdtselector(GDT_ITEMS)648 .word GDT_SELECTOR(GDT_ITEMS) 650 649 .long KA2PA(gdt) 651 650
Note:
See TracChangeset
for help on using the changeset viewer.