Changes in kernel/arch/amd64/src/asm.S [b5382d4f:22c3444] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/asm.S
rb5382d4f r22c3444 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 */
Note:
See TracChangeset
for help on using the changeset viewer.