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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [arch-shark/] [memory.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 * linux/include/asm-arm/arch-shark/memory.h
3
 *
4
 * by Alexander Schulz
5
 *
6
 * derived from:
7
 * linux/include/asm-arm/arch-ebsa110/memory.h
8
 * Copyright (c) 1996-1999 Russell King.
9
 */
10
#ifndef __ASM_ARCH_MEMORY_H
11
#define __ASM_ARCH_MEMORY_H
12
 
13
/*
14
 * Task size: 3GB
15
 */
16
#define TASK_SIZE       (0xc0000000UL)
17
#define TASK_SIZE_26    (0x04000000UL)
18
 
19
/*
20
 * This decides where the kernel will search for a free chunk of vm
21
 * space during mmap's.
22
 */
23
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
24
 
25
/*
26
 * Page offset: = 3GB
27
 */
28
#define PAGE_OFFSET     (0xC0000000UL)
29
#define PHYS_OFFSET     (0x08000000UL)
30
 
31
#define __virt_to_phys__is_a_macro
32
#define __phys_to_virt__is_a_macro
33
#define __virt_to_phys(vpage) (vpage - PAGE_OFFSET + PHYS_OFFSET)
34
#define __phys_to_virt(ppage) (ppage - PHYS_OFFSET + PAGE_OFFSET)
35
 
36
#define __virt_to_bus__is_a_macro
37
#define __virt_to_bus(x)        __virt_to_phys(x)
38
#define __bus_to_virt__is_a_macro
39
#define __bus_to_virt(x)        __phys_to_virt(x)
40
 
41
#endif

powered by: WebSVN 2.1.0

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