]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Refactor 'clear_page' and 'copy_page' functions.
authorSteven J. Hill <sjhill@mips.com>
Fri, 6 Jul 2012 19:56:01 +0000 (21:56 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 Jul 2012 09:23:43 +0000 (11:23 +0200)
commitff0c61de46a77fee610a26440a095c8fcb030a5b
treeef2f21c01a55962e5e2157e7eaf6e0e49f5e5585
parent67ee14ccfa1a6ca2da68a8f7f0c886d2559298e3
MIPS: Refactor 'clear_page' and 'copy_page' functions.

Remove usage of the '__attribute__((alias("...")))' hack that aliased
to integer arrays containing micro-assembled instructions. This hack
breaks when building a microMIPS kernel. It also makes the code much
easier to understand.

[ralf@linux-mips.org: Added back export of the clear_page and copy_page
symbols so certain modules will work again.  Also fixed build with
CONFIG_SIBYTE_DMA_PAGEOPS enabled.]

Signed-off-by: Steven J. Hill <sjhill@mips.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3866/
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/mips_ksyms.c
arch/mips/mm/Makefile
arch/mips/mm/page-funcs.S [new file with mode: 0644]
arch/mips/mm/page.c