<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/m68k/kernel/head.S, branch linux-5.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-08-28T14:21:30Z</updated>
<entry>
<title>m68k: Fix lost column on framebuffer debug console</title>
<updated>2025-08-28T14:21:30Z</updated>
<author>
<name>Finn Thain</name>
</author>
<published>2025-03-27T22:39:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d1401dee656af19e63a7892783c4bc1954389742'/>
<id>urn:sha1:d1401dee656af19e63a7892783c4bc1954389742</id>
<content type='text'>
commit 210a1ce8ed4391b64a888b3fb4b5611a13f5ccc7 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: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Signed-off-by: Finn Thain &lt;fthain@linux-m68k.org&gt;
Tested-by: Stan Johnson &lt;userm57@yahoo.com&gt;
Reviewed-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Link: https://lore.kernel.org/9d4e8c68a456d5f2bc254ac6f87a472d066ebd5e.1743115195.git.fthain@linux-m68k.org
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>m68k: Don't unregister boot console needlessly</title>
<updated>2025-08-28T14:21:19Z</updated>
<author>
<name>Finn Thain</name>
</author>
<published>2025-04-01T00:26:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aec49221d08c52b60dda9c54eea3698dcb0b4a19'/>
<id>urn:sha1:aec49221d08c52b60dda9c54eea3698dcb0b4a19</id>
<content type='text'>
[ Upstream commit 83f672a7f69ec38b1bbb27221e342937f68c11c7 ]

When MACH_IS_MVME147, the boot console calls mvme147_scc_write() to
generate console output. That will continue to work even after
debug_cons_nputs() becomes unavailable so there's no need to
unregister the boot console.

Take the opportunity to remove a repeated MACH_IS_* test. Use the
actual .write method (instead of a wrapper) and test that pointer
instead. This means adding an unused parameter to debug_cons_nputs() for
consistency with the struct console API.

early_printk.c is only built when CONFIG_EARLY_PRINTK=y. As of late,
head.S is only built when CONFIG_MMU_MOTOROLA=y. So let the former symbol
depend on the latter, to obviate some ifdef conditionals.

Cc: Daniel Palmer &lt;daniel@0x0f.com&gt;
Fixes: 077b33b9e283 ("m68k: mvme147: Reinstate early console")
Signed-off-by: Finn Thain &lt;fthain@linux-m68k.org&gt;
Reviewed-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Link: https://lore.kernel.org/d1d4328e5aa9a87bd8352529ce62b767731c0530.1743467205.git.fthain@linux-m68k.org
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>m68k: Fix boot regression on machines with RAM at non-zero</title>
<updated>2014-07-10T07:58:26Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2014-07-08T07:17:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1a1b63529986d0c8970da182f0935eae059421b'/>
<id>urn:sha1:f1a1b63529986d0c8970da182f0935eae059421b</id>
<content type='text'>
My enhancement to store the initial mapping size for later reuse in commit
486df8bc4627bdfc032d11bedcd056cc5343ee62 ("m68k: Increase initial mapping
to 8 or 16 MiB if possible") broke booting on machines where RAM doesn't
start at address zero.

Use pc-relative addressing to fix this.

Reported-by: Andreas Schwab &lt;schwab@linux-m68k.org&gt;
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Tested-by: Andreas Schwab &lt;schwab@linux-m68k.org&gt;
</content>
</entry>
<entry>
<title>m68k: Increase initial mapping to 8 or 16 MiB if possible</title>
<updated>2014-05-28T08:11:54Z</updated>
<author>
<name>Andreas Schwab</name>
</author>
<published>2014-04-24T10:24:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=486df8bc4627bdfc032d11bedcd056cc5343ee62'/>
<id>urn:sha1:486df8bc4627bdfc032d11bedcd056cc5343ee62</id>
<content type='text'>
If the size of the first memory chunk is at least 8 or 16 MiB increase the
initial mapping to 8 resp. 16 MiB instead of 4 MiB.
This makes it possible to
  1. Map more memory in the first node without running out of space for the
     page tables,
  2. Boot kernels that don't fit in 4 MiB (e.g. multi_defconfig).

Signed-off-by: Andreas Schwab &lt;schwab@linux-m68k.org&gt;

  - Add support for 8 MiB,
  - Store initial mapping size in head.S for later reuse,
  - Add comment about large kernels.

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
</content>
</entry>
<entry>
<title>m68k/atari: fix SCC initialization for debug console</title>
<updated>2014-05-28T08:11:53Z</updated>
<author>
<name>Finn Thain</name>
</author>
<published>2014-05-26T13:29:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=83adc18110d632eebefb5c2a1dd27b58ae843d64'/>
<id>urn:sha1:83adc18110d632eebefb5c2a1dd27b58ae843d64</id>
<content type='text'>
Fix SCC initialization for Atari as was previously fixed for Mac. It's
probably not practical to share more code but some attempt is made to
align the Mac and Atari variants.

Signed-off-by: Finn Thain &lt;fthain@telegraphics.com.au&gt;
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
</content>
</entry>
<entry>
<title>m68k/mvme16x: Adopt common boot console</title>
<updated>2014-05-28T08:11:53Z</updated>
<author>
<name>Finn Thain</name>
</author>
<published>2014-04-12T13:49:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c46f46d02c90959b82b99badfadc575081666aae'/>
<id>urn:sha1:c46f46d02c90959b82b99badfadc575081666aae</id>
<content type='text'>
In a multi-platform kernel binary we only need one early console instance.

The difficulty here is that the common early console is started by
early_param(), whereas the MVME16x instance is started later by
config_mvme16x(). That means some interrupt setup must be done earlier.

Signed-off-by: Finn Thain &lt;fthain@telegraphics.com.au&gt;
Tested-by: Stephen N Chivers &lt;schivers@csc.com.au&gt;
[Geert] Tag debug_cons_write() with __ref to kill section mismatch warning
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
</content>
</entry>
<entry>
<title>m68k: Multi-platform EARLY_PRINTK</title>
<updated>2014-05-28T08:10:04Z</updated>
<author>
<name>Finn Thain</name>
</author>
<published>2014-04-12T13:48:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7913ad1ad83409e7f9ed5758bb4324bf64c95a73'/>
<id>urn:sha1:7913ad1ad83409e7f9ed5758bb4324bf64c95a73</id>
<content type='text'>
Make the boot console available to more m68k platforms by leveraging
the head.S debug console.

The boot console is enabled by the "earlyprintk" command line argument
which is how most other architectures do this.

This is a change of behaviour for the Mac but does not negatively impact
the common use-case which is not debugging.

This is also a change of behaviour for other platforms because it means
the serial port stays quiet when CONFIG_EARLY_PRINTK is not enabled. This
is also an improvement for the common use-case.

Signed-off-by: Finn Thain &lt;fthain@telegraphics.com.au&gt;
Tested-by: Stephen N Chivers &lt;schivers@csc.com.au&gt;
[Geert: CONSOLE_DEBUG should depend on CONFIG_FONT_SUPPORT]
Reported-by: kbuild test robot &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
</content>
</entry>
<entry>
<title>m68k: Toward platform agnostic framebuffer debug logging</title>
<updated>2014-05-26T20:41:25Z</updated>
<author>
<name>Finn Thain</name>
</author>
<published>2014-04-11T05:27:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97f3f68c21fb5edaf4503b9aef6beefddf316d76'/>
<id>urn:sha1:97f3f68c21fb5edaf4503b9aef6beefddf316d76</id>
<content type='text'>
Code subject to #ifdef CONSOLE is made more generic, as was apparently
intended by the original author.

Remove console_put_stats() routine. If it should be somehow useful, it
should also be useful on platforms without framebuffer debug logging. The
present implementation is only built #if defined CONFIG_MAC &amp;&amp; defined
CONSOLE even though puts() works everywhere.

Signed-off-by: Finn Thain &lt;fthain@telegraphics.com.au&gt;
Tested-by: Stephen N Chivers &lt;schivers@csc.com.au&gt;
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
</content>
</entry>
<entry>
<title>m68k: head.S - Remove bogus L prefix in comment</title>
<updated>2014-03-10T20:15:08Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2014-02-16T10:49:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ecc79d4964c4154b8bc2de2a8ffed108f009c405'/>
<id>urn:sha1:ecc79d4964c4154b8bc2de2a8ffed108f009c405</id>
<content type='text'>
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
</content>
</entry>
<entry>
<title>m68k: Remove dead code</title>
<updated>2014-03-10T20:15:07Z</updated>
<author>
<name>Finn Thain</name>
</author>
<published>2014-02-15T04:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7ce0526a6c2681f8edd1f9940c3d668e4cde4cf2'/>
<id>urn:sha1:7ce0526a6c2681f8edd1f9940c3d668e4cde4cf2</id>
<content type='text'>
Signed-off-by: Finn Thain &lt;fthain@telegraphics.com.au&gt;
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
</content>
</entry>
</feed>
