Changeset 09b859c in mainline for kernel/arch/amd64/src
- Timestamp:
- 2010-07-07T18:37:44Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77385fe
- Parents:
- e2ea4ab1 (diff), 22c3444 (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. - Location:
- kernel/arch/amd64/src
- Files:
-
- 2 edited
-
asm.S (modified) (5 diffs)
-
boot/boot.S (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/asm.S
re2ea4ab1 r09b859c 347 347 * Since the EGA can only display Extended ASCII (usually 348 348 * ISO Latin 1) characters, some of the Unicode characters 349 * can be displayed in a wrong way. Only the newline character350 * isinterpreted, all other characters (even unprintable) are349 * can be displayed in a wrong way. Only newline and backspace 350 * are interpreted, all other characters (even unprintable) are 351 351 * printed verbatim. 352 352 * … … 399 399 400 400 cmp $0x0a, %al 401 jne early_putchar_ print401 jne early_putchar_backspace 402 402 403 403 /* Interpret newline */ … … 413 413 subw %dx, %bx 414 414 415 jmp early_putchar_newline 415 jmp early_putchar_skip 416 417 early_putchar_backspace: 418 419 cmp $0x08, %al 420 jne early_putchar_print 421 422 /* Interpret backspace */ 423 424 cmp $0x0000, %bx 425 je early_putchar_skip 426 427 dec %bx 428 jmp early_putchar_skip 416 429 417 430 early_putchar_print: … … 423 436 inc %bx 424 437 425 early_putchar_ newline:438 early_putchar_skip: 426 439 427 440 /* Sanity check for the cursor on the last line */ … … 432 445 movq $(PA2KA(0xb80a0)), %rsi 433 446 movq $(PA2KA(0xb8000)), %rdi 434 movq $ 1920, %rcx435 rep movs w447 movq $480, %rcx 448 rep movsq 436 449 437 450 /* Clear the 24th row */ 438 451 xorq %rax, %rax 439 movq $ 80, %rcx440 rep stos w452 movq $20, %rcx 453 rep stosq 441 454 442 455 /* Go to row 24 */ -
kernel/arch/amd64/src/boot/boot.S
re2ea4ab1 r09b859c 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 movq $ 1920, %rcx519 rep movs w518 movq $480, %rcx 519 rep movsq 520 520 521 521 /* Clear the 24th row */ 522 522 xorq %rax, %rax 523 movq $ 80, %rcx524 rep stos w523 movq $20, %rcx 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
Note:
See TracChangeset
for help on using the changeset viewer.
