Subject: Re: [[email-masked]: Re: BDI and 85xx]

From: Marcelo Tosatti <[email-masked]>
Date: Mon, 14 Nov 2005 13:53:13 -0200

On Mon, Nov 14, 2005 at 02:45:46PM -0600, Kumar Gala wrote:
> It doesn't look very good since nothing appears to be attached :)

Doh my bad. Attached it is.

--- /opt/montavista/pro/devkit/lsp/linux-2.6.14/Makefile	2005-10-27 17:02:08.000000000 -0700
+++ Makefile	2005-11-10 11:32:10.000000000 -0800
@@ -524,7 +524,7 @@
 endif
 
 ifdef CONFIG_DEBUG_INFO
-CFLAGS		+= -g
+CFLAGS		+= -g -ggdb
 endif
 
 include $(srctree)/arch/$(ARCH)/Makefile
--- /opt/montavista/pro/devkit/lsp/linux-2.6.14/include/asm-ppc/reg.h	2005-10-27 17:02:08.000000000 -0700
+++ include/asm-ppc/reg.h	2005-11-10 11:32:10.000000000 -0800
@@ -49,8 +49,12 @@
 #endif
 
 #ifndef MSR_KERNEL
+#ifdef CONFIG_BDI_SWITCH
+#define MSR_KERNEL	(MSR_DE|MSR_ME|MSR_RI|MSR_IR|MSR_DR)
+#else
 #define MSR_KERNEL	(MSR_ME|MSR_RI|MSR_IR|MSR_DR)
 #endif
+#endif
 
 #define MSR_USER	(MSR_KERNEL|MSR_PR|MSR_EE)