[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1181616342.2282.8.camel@shani-win>
Date: Tue, 12 Jun 2007 08:15:41 +0530
From: Shani Moideen <shani.moideen@...ro.com>
To: ebiederm@...ssion.com
Cc: kexec@...ts.infradead.org, linux-kernel@...r.kernel.org,
kernel-janitors@...ts.osdl.org
Subject: [KJ PATCH] Replacing memcpy(dest,src,PAGE_SIZE) with
copy_page(dest,src) in arch/i386/kernel/machine_kexec.c
Hi,
Replacing memcpy(dest,src,PAGE_SIZE) with copy_page(dest,src) in arch/i386/kernel/machine_kexec.c.
Signed-off-by: Shani Moideen <shani.moideen@...ro.com>
----
diff --git a/arch/i386/kernel/machine_kexec.c b/arch/i386/kernel/machine_kexec.c
index 91966ba..ce79a44 100644
--- a/arch/i386/kernel/machine_kexec.c
+++ b/arch/i386/kernel/machine_kexec.c
@@ -110,7 +110,7 @@ NORET_TYPE void machine_kexec(struct kimage *image)
local_irq_disable();
control_page = page_address(image->control_code_page);
- memcpy(control_page, relocate_kernel, PAGE_SIZE);
+ copy_page(control_page, relocate_kernel);
page_list[PA_CONTROL_PAGE] = __pa(control_page);
page_list[VA_CONTROL_PAGE] = (unsigned long)relocate_kernel;
--
Shani
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists