OpenCores
URL https://opencores.org/ocsvn/or1k_soc_on_altera_embedded_dev_kit/or1k_soc_on_altera_embedded_dev_kit/trunk

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [arch/] [sh/] [mm/] [pg-nommu.c] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 xianfeng
/*
2
 * arch/sh/mm/pg-nommu.c
3
 *
4
 * clear_page()/copy_page() implementation for MMUless SH.
5
 *
6
 * Copyright (C) 2003  Paul Mundt
7
 *
8
 * This file is subject to the terms and conditions of the GNU General Public
9
 * License.  See the file "COPYING" in the main directory of this archive
10
 * for more details.
11
 */
12
#include <linux/init.h>
13
#include <linux/kernel.h>
14
#include <linux/string.h>
15
#include <asm/page.h>
16
 
17
void copy_page_nommu(void *to, void *from)
18
{
19
        memcpy(to, from, PAGE_SIZE);
20
}
21
 
22
void clear_page_nommu(void *to)
23
{
24
        memset(to, 0, PAGE_SIZE);
25
}
26
 
27
__kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n)
28
{
29
        memcpy(to, from, n);
30
        return 0;
31
}
32
 
33
__kernel_size_t __clear_user(void *to, __kernel_size_t n)
34
{
35
        memset(to, 0, n);
36
        return 0;
37
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.