From f693e73061d182677ca8efb67957f9f059b38cdb Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Tue, 17 Feb 2009 23:54:24 +0000 Subject: [PATCH] User memory probe. --- linux-2.6-590-chopstix-intern.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-2.6-590-chopstix-intern.patch b/linux-2.6-590-chopstix-intern.patch index a70f76ee3..6eb5a8994 100644 --- a/linux-2.6-590-chopstix-intern.patch +++ b/linux-2.6-590-chopstix-intern.patch @@ -725,8 +725,8 @@ diff -Nurb linux-2.6.22-580/mm/slab.c linux-2.6.22-590/mm/slab.c local_irq_restore(flags); } EXPORT_SYMBOL(kfree); ---- mm/memory.c.orig 2008-02-25 18:59:40.000000000 -0500 -+++ mm/memory.c 2009-02-17 17:14:01.000000000 -0500 +--- linux-2.6.22.19-chopstix/mm/memory.c.orig 2008-02-25 18:59:40.000000000 -0500 ++++ linux-2.6.22.19-chopstix/mm/memory.c 2009-02-17 18:34:55.000000000 -0500 @@ -59,6 +59,7 @@ #include @@ -762,7 +762,7 @@ diff -Nurb linux-2.6.22-580/mm/slab.c linux-2.6.22-590/mm/slab.c + struct pt_regs *regs; + unsigned int pc; + regs = task_pt_regs(current); -+ pc = regs->eip & 4095; ++ pc = regs->eip & (unsigned int) ~4095; + + espec.reason = 0; /* alloc */ + event.event_data=&espec; -- 2.47.0