/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* Micro-assembler generated clear_page/copy_page functions.6*7* Copyright (C) 2012 MIPS Technologies, Inc.8* Copyright (C) 2012 Ralf Baechle <[email protected]>9*/10#include <linux/export.h>11#include <asm/asm.h>12#include <asm/regdef.h>1314#ifdef CONFIG_SIBYTE_DMA_PAGEOPS15#define cpu_clear_page_function_name clear_page_cpu16#define cpu_copy_page_function_name copy_page_cpu17#else18#define cpu_clear_page_function_name clear_page19#define cpu_copy_page_function_name copy_page20#endif2122/*23* Maximum sizes:24*25* R4000 128 bytes S-cache: 0x058 bytes26* R4600 v1.7: 0x05c bytes27* R4600 v2.0: 0x060 bytes28* With prefetching, 16 word strides 0x120 bytes29*/30EXPORT(__clear_page_start)31LEAF(cpu_clear_page_function_name)32EXPORT_SYMBOL(cpu_clear_page_function_name)331: j 1b /* Dummy, will be replaced. */34.space 28835END(cpu_clear_page_function_name)36EXPORT(__clear_page_end)3738/*39* Maximum sizes:40*41* R4000 128 bytes S-cache: 0x11c bytes42* R4600 v1.7: 0x080 bytes43* R4600 v2.0: 0x07c bytes44* With prefetching, 16 word strides 0x540 bytes45*/46EXPORT(__copy_page_start)47LEAF(cpu_copy_page_function_name)48EXPORT_SYMBOL(cpu_copy_page_function_name)491: j 1b /* Dummy, will be replaced. */50.space 134451END(cpu_copy_page_function_name)52EXPORT(__copy_page_end)535455