[PATCH] ARM: cleanup vmalloc start/offset macros
VMALLOC_START and VMALLOC_OFFSET are common between all ARM machine classes. Move them into include/asm-arm/pgtable.h, but allow a machine class to override them if required. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
This commit is contained in:
@@ -1,15 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* linux/include/asm-arm/arch-cl7500/vmalloc.h
|
* linux/include/asm-arm/arch-cl7500/vmalloc.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x1c000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x1c000000)
|
||||||
|
@@ -17,15 +17,4 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
||||||
|
@@ -7,15 +7,4 @@
|
|||||||
* it under the terms of the GNU General Public License version 2 as
|
* it under the terms of the GNU General Public License version 2 as
|
||||||
* published by the Free Software Foundation.
|
* published by the Free Software Foundation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x1f000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x1f000000)
|
||||||
|
@@ -8,17 +8,6 @@
|
|||||||
|
|
||||||
#include <linux/config.h>
|
#include <linux/config.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_FOOTBRIDGE
|
#ifdef CONFIG_ARCH_FOOTBRIDGE
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x30000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x30000000)
|
||||||
#else
|
#else
|
||||||
|
@@ -17,15 +17,4 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
||||||
|
@@ -5,17 +5,6 @@
|
|||||||
#ifndef __ARCH_ARM_VMALLOC_H
|
#ifndef __ARCH_ARM_VMALLOC_H
|
||||||
#define __ARCH_ARM_VMALLOC_H
|
#define __ARCH_ARM_VMALLOC_H
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_VMADDR(x) ((unsigned long)(x))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -17,16 +17,4 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_VMADDR(x) ((unsigned long)(x))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
||||||
|
@@ -17,15 +17,4 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
||||||
|
@@ -10,9 +10,6 @@
|
|||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
||||||
* area for the same reason. ;)
|
* area for the same reason. ;)
|
||||||
*/
|
*/
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_VMADDR(x) ((unsigned long)(x))
|
|
||||||
//#define VMALLOC_END (0xe8000000)
|
//#define VMALLOC_END (0xe8000000)
|
||||||
/* increase usable physical RAM to ~992M per RMK */
|
/* increase usable physical RAM to ~992M per RMK */
|
||||||
#define VMALLOC_END (0xfe000000)
|
#define VMALLOC_END (0xfe000000)
|
||||||
|
@@ -17,7 +17,4 @@
|
|||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
||||||
* area for the same reason. ;)
|
* area for the same reason. ;)
|
||||||
*/
|
*/
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_VMADDR(x) ((unsigned long)(x))
|
|
||||||
#define VMALLOC_END 0xfaffefff
|
#define VMALLOC_END 0xfaffefff
|
||||||
|
@@ -1,17 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* linux/include/asm-arm/arch-ixp4xx/vmalloc.h
|
* linux/include/asm-arm/arch-ixp4xx/vmalloc.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_VMADDR(x) ((unsigned long)(x))
|
|
||||||
#define VMALLOC_END (0xFF000000)
|
#define VMALLOC_END (0xFF000000)
|
||||||
|
|
||||||
|
@@ -1,15 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* linux/include/asm-arm/arch-l7200/vmalloc.h
|
* linux/include/asm-arm/arch-l7200/vmalloc.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
||||||
|
@@ -7,15 +7,4 @@
|
|||||||
* version 2 as published by the Free Software Foundation.
|
* version 2 as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after
|
|
||||||
* the physical memory until the kernel virtual memory starts. That
|
|
||||||
* means that any out-of-bounds memory accesses will hopefully be
|
|
||||||
* caught. The vmalloc() routines leaves a hole of 4kB (one page)
|
|
||||||
* between each vmalloced area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (0xe8000000)
|
#define VMALLOC_END (0xe8000000)
|
||||||
|
@@ -17,17 +17,5 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_VMADDR(x) ((unsigned long)(x))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
||||||
|
|
||||||
|
@@ -8,15 +8,4 @@
|
|||||||
* it under the terms of the GNU General Public License version 2 as
|
* it under the terms of the GNU General Public License version 2 as
|
||||||
* published by the Free Software Foundation.
|
* published by the Free Software Foundation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (0xe8000000)
|
#define VMALLOC_END (0xe8000000)
|
||||||
|
@@ -7,15 +7,4 @@
|
|||||||
* it under the terms of the GNU General Public License version 2 as
|
* it under the terms of the GNU General Public License version 2 as
|
||||||
* published by the Free Software Foundation.
|
* published by the Free Software Foundation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x1c000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x1c000000)
|
||||||
|
@@ -19,18 +19,6 @@
|
|||||||
#ifndef __ASM_ARCH_VMALLOC_H
|
#ifndef __ASM_ARCH_VMALLOC_H
|
||||||
#define __ASM_ARCH_VMALLOC_H
|
#define __ASM_ARCH_VMALLOC_H
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_VMADDR(x) ((unsigned long)(x))
|
|
||||||
#define VMALLOC_END (0xE0000000)
|
#define VMALLOC_END (0xE0000000)
|
||||||
|
|
||||||
#endif /* __ASM_ARCH_VMALLOC_H */
|
#endif /* __ASM_ARCH_VMALLOC_H */
|
||||||
|
@@ -1,15 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* linux/include/asm-arm/arch-sa1100/vmalloc.h
|
* linux/include/asm-arm/arch-sa1100/vmalloc.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (0xe8000000)
|
#define VMALLOC_END (0xe8000000)
|
||||||
|
@@ -1,15 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* linux/include/asm-arm/arch-rpc/vmalloc.h
|
* linux/include/asm-arm/arch-rpc/vmalloc.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
|
||||||
|
@@ -18,16 +18,4 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
|
||||||
* current 8MB value just means that there will be a 8MB "hole" after the
|
|
||||||
* physical memory until the kernel virtual memory starts. That means that
|
|
||||||
* any out-of-bounds memory accesses will hopefully be caught.
|
|
||||||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
|
||||||
* area for the same reason. ;)
|
|
||||||
*/
|
|
||||||
#define VMALLOC_OFFSET (8*1024*1024)
|
|
||||||
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
|
||||||
#define VMALLOC_VMADDR(x) ((unsigned long)(x))
|
|
||||||
#define VMALLOC_END (PAGE_OFFSET + 0x18000000)
|
#define VMALLOC_END (PAGE_OFFSET + 0x18000000)
|
||||||
|
@@ -16,6 +16,23 @@
|
|||||||
#include <asm/proc-fns.h>
|
#include <asm/proc-fns.h>
|
||||||
#include <asm/arch/vmalloc.h>
|
#include <asm/arch/vmalloc.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Just any arbitrary offset to the start of the vmalloc VM area: the
|
||||||
|
* current 8MB value just means that there will be a 8MB "hole" after the
|
||||||
|
* physical memory until the kernel virtual memory starts. That means that
|
||||||
|
* any out-of-bounds memory accesses will hopefully be caught.
|
||||||
|
* The vmalloc() routines leaves a hole of 4kB between each vmalloced
|
||||||
|
* area for the same reason. ;)
|
||||||
|
*
|
||||||
|
* Note that platforms may override VMALLOC_START, but they must provide
|
||||||
|
* VMALLOC_END. VMALLOC_END defines the (exclusive) limit of this space,
|
||||||
|
* which may not overlap IO space.
|
||||||
|
*/
|
||||||
|
#ifndef VMALLOC_START
|
||||||
|
#define VMALLOC_OFFSET (8*1024*1024)
|
||||||
|
#define VMALLOC_START (((unsigned long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hardware-wise, we have a two level page table structure, where the first
|
* Hardware-wise, we have a two level page table structure, where the first
|
||||||
* level has 4096 entries, and the second level has 256 entries. Each entry
|
* level has 4096 entries, and the second level has 256 entries. Each entry
|
||||||
|
Reference in New Issue
Block a user