linux/arch/m68k
Finn Thain 6ce95df245 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>
History 2025-08-28 16:26:05 +02:00
..
68000 m68k: Check syscall_trace_enter() return code 2023-03-10 09:33:51 +01:00
amiga m68k: amiga: Turn off Warp1260 interrupts during boot 2024-08-03 08:49:34 +02:00
apollo m68k: Add asm/config.h 2022-02-21 12:00:20 +01:00
atari m68k: atari: Fix TT bootup freeze / unexpected (SCU) interrupt messages 2024-08-03 08:49:02 +02:00
bvme6000 for-5.18/block-2022-03-18 2022-03-21 16:48:55 -07:00
coldfire m68k: coldfire/device.c: only build FEC when HW macros are defined 2024-12-14 19:53:46 +01:00
configs m68knommu: updates and fixes for v6.1 2022-10-10 14:19:05 -07:00
emu block: remove blk_cleanup_disk 2022-06-28 06:33:15 -06:00
fpsp040 m68k: Fix invalid .section syntax 2023-09-13 09:42:21 +02:00
hp300 m68k: removed unused "mach_get_ss" 2022-05-25 00:04:11 +10:00
ifpsp060 m68k: Fix invalid .section syntax 2023-09-13 09:42:21 +02:00
include m68k: vga: Fix I/O defines 2025-02-21 13:49:38 +01:00
kernel m68k: Fix lost column on framebuffer debug console 2025-08-28 16:26:05 +02:00
lib net: unexport csum_and_copy_{from,to}_user 2022-04-29 14:37:59 -07:00
mac m68k: mac: Fix macintosh_config for Mac II 2025-06-27 11:07:08 +01:00
math-emu m68k: math-emu: Fix typos in comments 2022-05-09 13:13:59 +02:00
mm mm: always expand the stack with the mmap write lock held 2023-07-01 13:16:25 +02:00
mvme16x m68k: mvme16x: Add and use "mvme16x.h" 2024-12-14 19:53:15 +01:00
mvme147 m68k: mvme147: Reinstate early console 2024-12-14 19:53:15 +01:00
q40 This was a moderately busy cycle for documentation, but nothing all that 2022-08-02 19:24:24 -07:00
sun3 m68k: sun3: Use __func__ to get function's name in an output message 2022-06-20 14:16:43 +02:00
sun3x m68k: Remove set_fs() 2021-09-24 13:35:07 +02:00
tools/amiga m68k: tools: Replace zero-length array with flexible-array member 2020-05-25 10:55:56 +02:00
virt m68k: Rework BI_VIRT_RNG_SEED as BI_RNG_SEED 2022-09-28 22:16:44 +02:00
install.sh kbuild: factor out the common installation code into scripts/install.sh 2022-05-11 21:45:53 +09:00
Kbuild m68k: Introduce a virtual m68k machine 2022-04-11 11:48:01 +02:00
Kconfig m68k/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:03:46 +02:00
Kconfig.bus m68k: coldfire: drop ISA_DMA_API support 2022-05-16 13:18:30 +10:00
Kconfig.cpu - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
Kconfig.debug m68k: Don't unregister boot console needlessly 2025-08-15 12:04:57 +02:00
Kconfig.devices m68k: /proc/hardware should depend on PROC_FS 2023-03-10 09:33:03 +01:00
Kconfig.machine m68k: Kconfig.machine: Add endif comment 2022-07-06 14:07:04 +02:00
Makefile kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00