/* * 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/ptrace.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>void*high_memory;structpage*mem_map;unsignedlongmax_mapnr;unsignedlongnum_physpages;unsignedlongaskedalloc,realalloc;atomic_long_tvm_committed_space=ATOMIC_LONG_INIT(0);intsysctl_overcommit_memory=OVERCOMMIT_GUESS;/* heuristic overcommit */intsysctl_overcommit_ratio=50;/* default is 50% */intsysctl_max_map_count=DEFAULT_MAX_MAP_COUNT;intheap_stack_gap=0;EXPORT_SYMBOL(mem_map);EXPORT_SYMBOL(num_physpages);/* list of shareable VMAs */structrb_rootnommu_vma_tree=