public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] register initialization error on test9 ?
@ 2000-10-17  6:13 Hiro Fujita
  2000-10-17  7:18 ` David Mosberger
  0 siblings, 1 reply; 2+ messages in thread
From: Hiro Fujita @ 2000-10-17  6:13 UTC (permalink / raw)
  To: linux-ia64

Hi,

there seems to be a register initialization error on test9 kernel.

--- linux-2.4.0-test9-ia64-001004/arch/ia64/kernel/head.S.org	Fri Oct  6 09:20:34 2000
+++ linux-2.4.0-test9-ia64-001004/arch/ia64/kernel/head.S	Mon Oct 16 20:50:07 2000
@@ -73,15 +73,13 @@
 	mov ar.fpsr=r2
 	;;
 
-#ifdef CONFIG_IA64_EARLY_PRINTK
-	mov r2=6
-	mov r3=(8<<8) | (28<<2)
+	movl r2=6<<61
+	mov r3=(6<<8) | (28<<2)
 	;;
 	mov rr[r2]=r3
 	;;
 	srlz.i
 	;;
-#endif
 
 #define isAP	p2	// are we booting an Application Processor (not the BSP)?
 
----------------
In the original code, RR[0] is initialized instead of RR[6].
I don't know whether the RID value should be 8 or 6,
but it is later re-initialized to 6 in ia64_rid_init().

And, this initialization should be done for all application 
processors (APs) even if CONFIG_IA64_EARLY_PRINTK is not defined, 
because RR[6] is used for translation when printk() is called by AP.

When AP calls printk(), writes to VGA region (0xc0000000000bxxxx) is
occured because console_drivers is already initialized by BSP.

Is this right ?
I don't know the detail of address translation.

--
Hiro Fujita
Hitachi, Ltd.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Linux-ia64] register initialization error on test9 ?
  2000-10-17  6:13 [Linux-ia64] register initialization error on test9 ? Hiro Fujita
@ 2000-10-17  7:18 ` David Mosberger
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2000-10-17  7:18 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Tue, 17 Oct 2000 15:13:46 +0900, Hiro Fujita <fujita@kanagawa.hitachi.co.jp> said:

  Hiro> And, this initialization should be done for all application
  Hiro> processors (APs) even if CONFIG_IA64_EARLY_PRINTK is not
  Hiro> defined, because RR[6] is used for translation when printk()
  Hiro> is called by AP.

No, printk normally doesn't write to the console until the memory
subsystem (and PCI) has been initialized, so this code isn't needed
unless EARLY_PRINTK is set.

Aside from that, your patch looks fine.

Thanks,

	--david


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-17  7:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-17  6:13 [Linux-ia64] register initialization error on test9 ? Hiro Fujita
2000-10-17  7:18 ` David Mosberger

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