mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
m68k: Remove unused "cursor home" code from debug console
The cursor home operation is unused and seems undesirable for logging. Remove it. The console_not_cr label actually means "not line feed and not carriage return either" so take the opportunity to replace it with something less confusing. Rectify some inconsistent whitespace while we're here. Signed-off-by: Finn Thain <fthain@linux-m68k.org> Tested-by: Stan Johnson <userm57@yahoo.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/ec2d443d3c3213028bbbab7c2e0382cd53db75fe.1743115195.git.fthain@linux-m68k.org Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
committed by
Geert Uytterhoeven
parent
0da6458417
commit
e911044c28
@@ -3555,28 +3555,21 @@ func_start console_putc,%a0/%a1/%d0-%d7
|
||||
jra L(console_exit)
|
||||
|
||||
L(console_not_lf):
|
||||
cmpib #13,%d7
|
||||
jne L(console_not_cr)
|
||||
cmpib #'\r',%d7
|
||||
jne L(console_not_lf_not_cr)
|
||||
clrl %a0@(Lconsole_struct_cur_column)
|
||||
jra L(console_exit)
|
||||
|
||||
L(console_not_cr):
|
||||
cmpib #1,%d7
|
||||
jne L(console_not_home)
|
||||
clrl %a0@(Lconsole_struct_cur_row)
|
||||
clrl %a0@(Lconsole_struct_cur_column)
|
||||
jra L(console_exit)
|
||||
|
||||
/*
|
||||
* At this point we know that the %d7 character is going to be
|
||||
* rendered on the screen. Register usage is -
|
||||
* a0 = pointer to console globals
|
||||
* a1 = font data
|
||||
* d0 = cursor column
|
||||
* d1 = cursor row to draw the character
|
||||
* d7 = character number
|
||||
*/
|
||||
L(console_not_home):
|
||||
/*
|
||||
* At this point we know that the %d7 character is going to be
|
||||
* rendered on the screen. Register usage is -
|
||||
* a0 = pointer to console globals
|
||||
* a1 = font data
|
||||
* d0 = cursor column
|
||||
* d1 = cursor row to draw the character
|
||||
* d7 = character number
|
||||
*/
|
||||
L(console_not_lf_not_cr):
|
||||
movel %a0@(Lconsole_struct_cur_column),%d0
|
||||
movel %a0@(Lconsole_struct_cur_row),%d1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user