All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: linux-ppc-embedded <linuxppc-embedded@ozlabs.org>
Cc: Edson Seabra <edson.seabra@cyclades.com>
Subject: BDI and 85xx
Date: Mon, 7 Nov 2005 09:24:24 -0200	[thread overview]
Message-ID: <20051107112424.GE15522@logos.cnet> (raw)

FYI

Edson had to patch this in to get BDI to work on 85xx with 2.6.14.

--- /home/edson/linux-2.6.14/Makefile	2005-10-27 17:02:08.000000000 -0700
+++ Makefile	2005-11-02 10:32:00.000000000 -0800
@@ -524,7 +524,7 @@
 endif
 
 ifdef CONFIG_DEBUG_INFO
-CFLAGS		+= -g
+CFLAGS		+= -g -ggdb
 endif
 
 include $(srctree)/arch/$(ARCH)/Makefile
--- /home/edson/linux-2.6.14/arch/ppc/kernel/head_fsl_booke.S	2005-10-27 17:02:08.000000000 -0700
+++ arch/ppc/kernel/head_fsl_booke.S	2005-11-02 19:59:21.000000000 -0800
@@ -187,6 +187,10 @@
 
 	xori	r6,r4,1
 	slwi	r6,r6,5		/* setup new context with other address space */
+#if defined(CONFIG_BDI_SWITCH)
+	mfmsr   r9
+	rlwimi  r6,r9,0,22,22   /* preserve MSR[DE] */
+#endif
 	bl	1f		/* Find our address */
 1:	mflr	r9
 	rlwimi	r7,r9,0,20,31
@@ -238,6 +242,10 @@
 /* 7. Jump to KERNELBASE mapping */
 	lis	r7,MSR_KERNEL@h
 	ori	r7,r7,MSR_KERNEL@l
+#if defined(CONFIG_BDI_SWITCH)
+	mfmsr   r9
+	rlwimi  r7,r9,0,22,22   /* preserve MSR[DE] */
+#endif
 	bl	1f			/* Find our address */
 1:	mflr	r9
 	rlwimi	r6,r9,0,20,31
@@ -371,6 +379,10 @@
 	ori	r4,r4,start_kernel@l
 	lis	r3,MSR_KERNEL@h
 	ori	r3,r3,MSR_KERNEL@l
+#if defined(CONFIG_BDI_SWITCH)
+	mfmsr   r5
+	rlwimi  r3,r5,0,22,22   /* preserve MSR[DE] */
+#endif
 	mtspr	SPRN_SRR0,r4
 	mtspr	SPRN_SRR1,r3
 	rfi			/* change context and jump to start_kernel */
--- /home/edson/linux-2.6.14/arch/ppc/kernel/process.c	2005-10-27 17:02:08.000000000 -0700
+++ arch/ppc/kernel/process.c	2005-11-02 19:33:12.000000000 -0800
@@ -473,6 +473,10 @@
 	regs->nip = nip;
 	regs->gpr[1] = sp;
 	regs->msr = MSR_USER;
+#if (defined(CONFIG_BOOKE) && defined(CONFIG_BDI_SWITCH))
+	/* propagate the debug enable bit for BDI support */
+	regs->msr |= (mfmsr() & MSR_DE);
+#endif
 	if (last_task_used_math == current)
 		last_task_used_math = NULL;
 	if (last_task_used_altivec == current)

             reply	other threads:[~2005-11-07 16:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-07 11:24 Marcelo Tosatti [this message]
2005-11-07 17:17 ` BDI and 85xx Dan Malek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051107112424.GE15522@logos.cnet \
    --to=marcelo.tosatti@cyclades.com \
    --cc=edson.seabra@cyclades.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.