2 * include/asm-arm/arch-s3c24a0/memory.h
4 * $Id: memory.h,v 1.2 2005/11/28 03:55:11 gerg Exp $
6 * Copyright (C) Heechul Yun <heechul.yun@samsung.com>
7 * Copyright (C) Hyok S. Choi <hyok.choi@samsung.com>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
14 #ifndef __ASM_ARCH_MEMORY_H_
15 #define __ASM_ARCH_MEMORY_H_
20 #define TASK_SIZE END_MEM
21 #define TASK_SIZE_26 TASK_SIZE
24 #define PAGE_OFFSET (PHYS_OFFSET)
27 #define __virt_to_phys(vpage) ((unsigned long) (vpage))
28 #define __phys_to_virt(ppage) ((unsigned long) (ppage))
30 #endif /* !CONFIG_MMU */
32 #ifndef CONFIG_DRAM_BASE
33 #define PHYS_OFFSET (0x10000000UL)
34 #define END_MEM (0x13000000UL)
36 #define PHYS_OFFSET (CONFIG_DRAM_BASE)
37 #define END_MEM (CONFIG_DRAM_BASE + CONFIG_DRAM_SIZE)
40 #define __virt_to_bus(x) __virt_to_phys(x)
41 #define __bus_to_virt(x) __phys_to_virt(x)
44 #endif /* __ASM_ARCH_MEMORY_H_ */