|
@@ -30,14 +30,15 @@
|
|
*/
|
|
*/
|
|
#define UL(x) _AC(x, UL)
|
|
#define UL(x) _AC(x, UL)
|
|
|
|
|
|
|
|
+/* PAGE_OFFSET - the virtual address of the start of the kernel image */
|
|
|
|
+#define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
|
|
|
|
+
|
|
#ifdef CONFIG_MMU
|
|
#ifdef CONFIG_MMU
|
|
|
|
|
|
/*
|
|
/*
|
|
- * PAGE_OFFSET - the virtual address of the start of the kernel image
|
|
|
|
* TASK_SIZE - the maximum size of a user space task.
|
|
* TASK_SIZE - the maximum size of a user space task.
|
|
* TASK_UNMAPPED_BASE - the lower boundary of the mmap VM area
|
|
* TASK_UNMAPPED_BASE - the lower boundary of the mmap VM area
|
|
*/
|
|
*/
|
|
-#define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
|
|
|
|
#define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) - UL(SZ_16M))
|
|
#define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) - UL(SZ_16M))
|
|
#define TASK_UNMAPPED_BASE ALIGN(TASK_SIZE / 3, SZ_16M)
|
|
#define TASK_UNMAPPED_BASE ALIGN(TASK_SIZE / 3, SZ_16M)
|
|
|
|
|
|
@@ -104,10 +105,6 @@
|
|
#define END_MEM (UL(CONFIG_DRAM_BASE) + CONFIG_DRAM_SIZE)
|
|
#define END_MEM (UL(CONFIG_DRAM_BASE) + CONFIG_DRAM_SIZE)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifndef PAGE_OFFSET
|
|
|
|
-#define PAGE_OFFSET PLAT_PHYS_OFFSET
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* The module can be at any place in ram in nommu mode.
|
|
* The module can be at any place in ram in nommu mode.
|
|
*/
|
|
*/
|