/* * linux/mm/nommu.c * * Replacement code for mm functions to support CPU's that don't * have any form of memory management unit (thus no virtual memory). * * See Documentation/nommu-mmap.txt * * Copyright (c) 2004-2005 David Howells <dhowells@redhat.com> * Copyright (c) 2000-2003 David McCullough <davidm@snapgear.com> * Copyright (c) 2000-2001 D Jeff Dionne <jeff@uClinux.org> * Copyright (c) 2002 Greg Ungerer <gerg@snapgear.com> * Copyright (c) 2007 Paul Mundt <lethal@linux-sh.org> */#include<linux/module.h>#include<linux/mm.h>#include<linux/mman.h>#include<linux/swap.h>#include<linux/file.h>#include<linux/highmem.h>#include<linux/pagemap.h>#include<linux/slab.h>#include<linux/vmalloc.h>#include<linux/tracehook.h>#include<linux/blkdev.h>#include<linux/backing-dev.h>#include<linux/mount.h>#include<linux/personality.h>#include<linux/security.h>#include<linux/syscalls.h>#include<asm/uaccess.h>#include<asm/tlb.h>#include<asm/tlbflush.h>#include"internal.h"void*high_memory;structpage*mem_map;unsignedlongmax_mapnr;unsignedlongnum_physpages;unsignedlongaskedalloc,realalloc;atomic_long_tvm_committed_space=ATOMIC_LONG_INIT(0