X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-kexec/blobdiff_plain/4e93cb000786b18ffd9929f33055cad2a7cebbcf..HEAD:/copypage-v6.c diff --git a/copypage-v6.c b/copypage-v6.c index 9cc8485..a9ace4e 100644 --- a/copypage-v6.c +++ b/copypage-v6.c @@ -1,13 +1,3 @@ -/* - * linux/arch/arm/mm/copypage-v6.c - * - * Copyright (C) 2002 Deep Blue Solutions Ltd, All Rights Reserved. - * This Edition is maintained by Matthew Veety (aliasxerog) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ #include #include #include @@ -21,43 +11,5 @@ #include "mm.h" -#if SHMLBA > 16384 -#error FIX ME -#endif - -#define from_address (0xffff8000) -#define to_address (0xffffc000) - -/* - * Copy the user page. No aliasing to deal with so we can just - * attack the kernel's existing mapping of these pages. - */ - -static void v6_copy_user_highpage_nonaliasing(struct page *to, - struct page *from, unsigned long vaddr) -{ - void *kto, *kfrom; - - kfrom = kmap_atomic(from, KM_USER0); - kto = kmap_atomic(to, KM_USER1); - copy_page(kto, kfrom); - kunmap_atomic(kto, KM_USER1); - kunmap_atomic(kfrom, KM_USER0); -} - -/* - * Clear the user page. No aliasing to deal with so we can just - * attack the kernel's existing mapping of this page. - */ -static void v6_clear_user_highpage_nonaliasing(struct page *page, unsigned long vaddr) -{ - void *kaddr = kmap_atomic(page, KM_USER0); - clear_page(kaddr); - kunmap_atomic(kaddr, KM_USER0); -} - - struct cpu_user_fns v6_user_fns __initdata = { - .cpu_clear_user_highpage = v6_clear_user_highpage_nonaliasing, - .cpu_copy_user_highpage = v6_copy_user_highpage_nonaliasing, };