lkml.org 
[lkml]   [2002]   [Sep]   [19]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateThu, 19 Sep 2002 10:02:40 +0300
FromKari Hameenaho <>
Subject[PATCH] to fix 2.5.36 MTRR for X (Was: X freezes and input problems)
This patch fixes MTRR for me, restoring the mtrr_add_page() old return value behaviour that X seems to need.

The input problem (mouse pointer jumping) seems to be in sylpheed only, so it is application problem. 

diff -urN linux-2.5.36/arch/i386/kernel/cpu/mtrr/main.c linux-2.5.36-kjh/arch/i386/kernel/cpu/mtrr/main.c
--- linux-2.5.36/arch/i386/kernel/cpu/mtrr/main.c	Wed Sep 18 03:58:43 2002+++ linux-2.5.36-kjh/arch/i386/kernel/cpu/mtrr/main.c	Thu Sep 19 09:33:06 2002@@ -348,6 +348,7 @@
 			       "mtrr: 0x%lx000,0x%lx000 overlaps existing"
 			       " 0x%lx000,0x%lx000\n", base, size, lbase,
 			       lsize);
+			error = -EINVAL;
 			goto out;
 		}
 		/*  New region is enclosed by an existing region  */
@@ -357,6 +358,7 @@
 			printk ("mtrr: type mismatch for %lx000,%lx000 old: %s new: %s\n",
 			     base, size, attrib_to_str(ltype),
 			     attrib_to_str(type));
+			error = -EINVAL;
 			goto out;
 		}
 		if (increment)
---
Kari Hämeenaho
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:29    [W:0.181 / U:0.190 seconds]
©2003-2008 Jasper Spaans