Changeset 28a5ebd in mainline for kernel/arch/amd64/src/asm.S
- Timestamp:
- 2020-06-18T15:39:50Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce52c333
- Parents:
- 4f663f3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/asm.S
r4f663f3e r28a5ebd 409 409 * 410 410 */ 411 FUNCTION_BEGIN(early_put wchar)411 FUNCTION_BEGIN(early_putuchar) 412 412 413 413 #if (defined(CONFIG_L4RE_UVMM_EARLY_PRINT)) … … 447 447 /* Sanity check for the cursor on screen */ 448 448 cmp $2000, %ax 449 jb early_put wchar_cursor_ok449 jb early_putuchar_cursor_ok 450 450 451 451 movw $1998, %ax 452 452 453 early_put wchar_cursor_ok:453 early_putuchar_cursor_ok: 454 454 455 455 movw %ax, %bx … … 460 460 461 461 cmp $0x0a, %al 462 jne early_put wchar_backspace462 jne early_putuchar_backspace 463 463 464 464 /* Interpret newline */ … … 474 474 subw %dx, %bx 475 475 476 jmp early_put wchar_skip477 478 early_put wchar_backspace:476 jmp early_putuchar_skip 477 478 early_putuchar_backspace: 479 479 480 480 cmp $0x08, %al 481 jne early_put wchar_print481 jne early_putuchar_print 482 482 483 483 /* Interpret backspace */ 484 484 485 485 cmp $0x0000, %bx 486 je early_put wchar_skip486 je early_putuchar_skip 487 487 488 488 dec %bx 489 jmp early_put wchar_skip490 491 early_put wchar_print:489 jmp early_putuchar_skip 490 491 early_putuchar_print: 492 492 493 493 /* Print character */ … … 497 497 inc %bx 498 498 499 early_put wchar_skip:499 early_putuchar_skip: 500 500 501 501 /* Sanity check for the cursor on the last line */ 502 502 cmp $2000, %bx 503 jb early_put wchar_no_scroll503 jb early_putuchar_no_scroll 504 504 505 505 /* Scroll the screen (24 rows) */ … … 517 517 movw $1920, %bx 518 518 519 early_put wchar_no_scroll:519 early_putuchar_no_scroll: 520 520 521 521 /* Write bits 8 - 15 of the cursor address */ … … 544 544 545 545 ret 546 FUNCTION_END(early_put wchar)546 FUNCTION_END(early_putuchar)
Note:
See TracChangeset
for help on using the changeset viewer.