linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Boottime allocated GDTs and doublefault handler
@ 2004-12-20  0:48 Zwane Mwaikambo
  2004-12-20  2:28 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: Zwane Mwaikambo @ 2004-12-20  0:48 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Linus Torvalds

GDTs on SMP tend to be above the current ptr_ok limits since they are 
boottime allocated. How does the following new arbitrary limit look?

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>

Index: linux-2.6.10-rc3-mm1/arch/i386/kernel/doublefault.c
===================================================================
RCS file: /home/cvsroot/linux-2.6.10-rc3-mm1/arch/i386/kernel/doublefault.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 doublefault.c
--- linux-2.6.10-rc3-mm1/arch/i386/kernel/doublefault.c	13 Dec 2004 14:26:45 -0000	1.1.1.1
+++ linux-2.6.10-rc3-mm1/arch/i386/kernel/doublefault.c	20 Dec 2004 00:21:31 -0000
@@ -13,7 +13,7 @@
 static unsigned long doublefault_stack[DOUBLEFAULT_STACKSIZE];
 #define STACK_START (unsigned long)(doublefault_stack+DOUBLEFAULT_STACKSIZE)
 
-#define ptr_ok(x) ((x) > PAGE_OFFSET && (x) < PAGE_OFFSET + 0x1000000)
+#define ptr_ok(x) ((x) > PAGE_OFFSET && (x) < PAGE_OFFSET + 0x2000000)
 
 static void doublefault_fn(void)
 {

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

end of thread, other threads:[~2005-01-09  4:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-20  0:48 [PATCH] Boottime allocated GDTs and doublefault handler Zwane Mwaikambo
2004-12-20  2:28 ` Linus Torvalds
2004-12-20  7:21   ` Zwane Mwaikambo
2004-12-20 15:12     ` Zwane Mwaikambo
2005-01-09  4:55       ` Zwane Mwaikambo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).