Changeset 89c57b6 in mainline for kernel/arch/ia32/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/ia32/src/boot/boot.S
rcefb126 r89c57b6 78 78 79 79 /* Initialize Global Descriptor Table register */ 80 lgdtl KA2PA(bootstrap_gdtr)80 lgdtl bootstrap_gdtr 81 81 82 82 /* Kernel data + stack */ 83 movw $ gdtselector(KDATA_DES), %cx83 movw $GDT_SELECTOR(KDATA_DES), %cx 84 84 movw %cx, %es 85 85 movw %cx, %fs … … 88 88 movw %cx, %ss 89 89 90 jmpl $ gdtselector(KTEXT_DES), $multiboot_meeting_point90 jmpl $GDT_SELECTOR(KTEXT_DES), $multiboot_meeting_point 91 91 multiboot_meeting_point: 92 92 … … 240 240 movl $0xb80a0, %esi 241 241 movl $0xb8000, %edi 242 movl $ 1920, %ecx243 rep movs w242 movl $960, %ecx 243 rep movsl 244 244 245 245 /* Clear the 24th row */ 246 246 xorl %eax, %eax 247 movl $ 80, %ecx248 rep stos w247 movl $40, %ecx 248 rep stosl 249 249 250 250 /* Go to row 24 */ … … 348 348 movl $0xb80a0, %esi 349 349 movl $0xb8000, %edi 350 movl $ 1920, %ecx351 rep movs w350 movl $960, %ecx 351 rep movsl 352 352 353 353 /* Clear the 24th row */ 354 354 xorl %eax, %eax 355 movl $ 80, %ecx356 rep stos w355 movl $40, %ecx 356 rep stosl 357 357 358 358 /* Go to row 24 */ … … 463 463 movl $(PA2KA(0xb80a0)), %esi 464 464 movl $(PA2KA(0xb8000)), %edi 465 movl $ 1920, %ecx466 rep movs w465 movl $960, %ecx 466 rep movsl 467 467 468 468 /* Clear the 24th row */ 469 469 xorl %eax, %eax 470 movl $ 80, %ecx471 rep stos w470 movl $40, %ecx 471 rep stosl 472 472 473 473 /* Go to row 24 */ … … 514 514 page_directory: 515 515 .space 4096, 0 516 517 bootstrap_gdtr: 518 .word GDT_SELECTOR(GDT_ITEMS) 519 .long KA2PA(gdt) 516 520 517 521 grub_eax:
Note:
See TracChangeset
for help on using the changeset viewer.