linux-yocto/arch/m68k
Finn Thain c8e9601863 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:34:12 +02:00
..
68000
amiga treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
apollo
atari m68k: atari: Use str_on_off() helper in atari_nvram_proc_read() 2025-01-08 18:04:36 +01:00
bvme6000
coldfire m68knommu: updates and fixes for v6.16 2025-06-02 12:16:17 -07:00
configs Networking changes for 6.16. 2025-05-28 15:24:36 -07:00
emu m68k updates for v6.11 2024-07-16 11:30:32 -07:00
fpsp040
hp300
ifpsp060
include mm: pgtable: fix pte_swp_exclusive 2025-06-11 14:52:08 -07:00
kernel m68k: Fix lost column on framebuffer debug console 2025-08-28 16:34:12 +02:00
lib m68k: Use kernel's generic muldi3 libgcc function 2024-12-09 13:29:17 +01:00
mac m68k: mac: Fix macintosh_config for Mac II 2025-04-28 22:16:52 +02:00
math-emu
mm m68k: remove use of page->index 2025-05-31 22:46:06 -07:00
mvme16x m68k: mvme147, mvme16x: Adopt rtc-m48t59 platform driver 2024-11-22 20:59:40 +01:00
mvme147 RTC for 6.13 2024-11-30 11:18:16 -08:00
q40 treewide: Fix wrong singular form of jiffies in comments 2024-09-08 20:47:40 +02:00
sun3 m68k: sun3: Fix DEBUG_MMU_EMU build 2025-02-03 14:32:51 +01:00
sun3x
tools/amiga
virt
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
Kbuild
Kconfig m68k: coldfire: select PCI_IOMAP for PCI 2025-03-24 15:41:07 +01:00
Kconfig.bus
Kconfig.cpu m68k: Select M68020 as fallback for classic 2024-11-06 15:10:14 +01:00
Kconfig.debug m68k: Don't unregister boot console needlessly 2025-08-15 16:38:42 +02:00
Kconfig.devices
Kconfig.machine m68k: Move Sun 3 into a top-level platform option 2024-11-06 15:10:14 +01:00
Makefile