Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b5382d4f in mainline


Ignore:
Timestamp:
2010-07-02T11:02:45Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
e3ee9b9
Parents:
da52547
Message:

fix off-by-one mistake when interpreting newline

Location:
kernel/arch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/asm.S

    rda52547 rb5382d4f  
    421421                movb $0x0e, %ah  /* black background, yellow foreground */
    422422                stosw
     423                inc %bx
    423424       
    424425        early_putchar_newline:
    425426       
    426427        /* Sanity check for the cursor on the last line */
    427         inc %bx
    428428        cmp $2000, %bx
    429429        jb early_putchar_no_scroll
  • kernel/arch/ia32/src/asm.S

    rda52547 rb5382d4f  
    503503                movb $0x0e, %ah  /* black background, yellow foreground */
    504504                stosw
     505                inc %bx
    505506       
    506507        early_putchar_newline:
    507508       
    508509        /* Sanity check for the cursor on the last line */
    509         inc %bx
    510510        cmp $2000, %bx
    511511        jb early_putchar_no_scroll
Note: See TracChangeset for help on using the changeset viewer.