linux-stable/arch/m68k
Finn Thain 5e5ccfdbe4 m68k: Fix lost column on framebuffer debug console
commit 210a1ce8ed upstream.

Move the cursor position rightward after rendering the character,
not before. This avoids complications that arise when the recursive
console_putc call has to wrap the line and/or scroll the display.
This also fixes the linewrap bug that crops off the rightmost column.

When the cursor is at the bottom of the display, a linefeed will not
move the cursor position further downward. Instead, the display scrolls
upward. Avoid the repeated add/subtract sequence by way of a single
subtraction at the initialization of console_struct_num_rows.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
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/9d4e8c68a456d5f2bc254ac6f87a472d066ebd5e.1743115195.git.fthain@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:24:27 +02:00
..
68000
amiga m68k: amiga: Turn off Warp1260 interrupts during boot 2024-08-19 05:45:13 +02:00
apollo
atari m68k: atari: Fix TT bootup freeze / unexpected (SCU) interrupt messages 2024-08-19 05:44:54 +02:00
bvme6000
coldfire m68k: coldfire/device.c: only build FEC when HW macros are defined 2024-12-14 19:51:06 +01:00
configs
emu
fpsp040
hp300
ifpsp060
include sched: Add wrapper for get_wchan() to keep task blocked 2025-08-28 16:24:03 +02:00
kernel m68k: Fix lost column on framebuffer debug console 2025-08-28 16:24:27 +02:00
lib
mac m68k: mac: Fix macintosh_config for Mac II 2025-06-27 11:05:11 +01:00
math-emu
mm
mvme16x m68k: mvme16x: Add and use "mvme16x.h" 2024-12-14 19:50:43 +01:00
mvme147 m68k: mvme147: Reinstate early console 2024-12-14 19:50:43 +01:00
q40
sun3
sun3x
tools/amiga
install.sh
Kbuild
Kconfig
Kconfig.bus
Kconfig.cpu
Kconfig.debug m68k: Don't unregister boot console needlessly 2025-08-28 16:24:08 +02:00
Kconfig.devices
Kconfig.machine
Makefile