public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] PATCH: fix CONFIG_IA64_EARLY_PRINTK
@ 2001-11-09  0:54 Luck, Tony
  0 siblings, 0 replies; only message in thread
From: Luck, Tony @ 2001-11-09  0:54 UTC (permalink / raw)
  To: linux-ia64

This was broken in 2.4.10 when "early_printk()" was given
an extra argument to specify the length of the string to
print, but head.S wasn't updated to pass such an argument.
(Oddly enough the "alloc" call in head.S sets up two 'out'
registers already).

Here is the patch:

diff -ru ../../REF/2.4.14-ia64-011105/arch/ia64/config.in
linux/arch/ia64/config.in
--- ../../REF/2.4.14-ia64-011105/arch/ia64/config.in	Tue Nov  6 11:34:13
2001
+++ linux/arch/ia64/config.in	Thu Nov  8 16:41:15 2001
@@ -266,8 +266,7 @@
    bool '  Disable VHPT' CONFIG_DISABLE_VHPT
    bool '  Magic SysRq key' CONFIG_MAGIC_SYSRQ
 
-# early printk is currently broken for SMP: the secondary processors get
stuck...
-#   bool '  Early printk support (requires VGA!)' CONFIG_IA64_EARLY_PRINTK
+   bool '  Early printk support (requires VGA!)' CONFIG_IA64_EARLY_PRINTK
 
    bool '  Debug memory allocations' CONFIG_DEBUG_SLAB
    bool '  Spinlock debugging' CONFIG_DEBUG_SPINLOCK
diff -ru ../../REF/2.4.14-ia64-011105/arch/ia64/kernel/head.S
linux/arch/ia64/kernel/head.S
--- ../../REF/2.4.14-ia64-011105/arch/ia64/kernel/head.S	Tue Nov  6
11:34:13 2001
+++ linux/arch/ia64/kernel/head.S	Thu Nov  8 16:29:34 2001
@@ -180,10 +180,12 @@
 	.rodata
 alive_msg:
 	stringz "I'm alive and well\n"
+alive_msg_end:
 	.previous
 
 	alloc r2=ar.pfs,0,0,2,0
 	movl out0=alive_msg
+	movl out1=alive_msg_end-alive_msg-1
 	;;
 	br.call.sptk.many rpêrly_printk
 1:	// force new bundle


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-09  0:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-09  0:54 [Linux-ia64] PATCH: fix CONFIG_IA64_EARLY_PRINTK Luck, Tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox