The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/vm/vm_init.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * Mach Operating System
    3  * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
    4  * All Rights Reserved.
    5  * 
    6  * Permission to use, copy, modify and distribute this software and its
    7  * documentation is hereby granted, provided that both the copyright
    8  * notice and this permission notice appear in all copies of the
    9  * software, derivative works or modified versions, and any portions
   10  * thereof, and that both notices appear in supporting documentation.
   11  * 
   12  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
   13  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
   14  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   15  * 
   16  * Carnegie Mellon requests users of this software to return to
   17  * 
   18  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   19  *  School of Computer Science
   20  *  Carnegie Mellon University
   21  *  Pittsburgh PA 15213-3890
   22  * 
   23  * any improvements or extensions that they make and grant Carnegie Mellon
   24  * the rights to redistribute these changes.
   25  */
   26 /*
   27  * HISTORY
   28  * $Log:        vm_init.c,v $
   29  * Revision 2.10  92/08/03  18:00:35  jfriedl
   30  *      removed silly prototypes
   31  *      [92/08/02            jfriedl]
   32  * 
   33  * Revision 2.9  92/05/21  17:25:56  jfriedl
   34  *      tried prototypes.
   35  *      [92/05/20            jfriedl]
   36  * 
   37  * Revision 2.8  92/01/14  16:47:54  rpd
   38  *      Split vm_mem_init into vm_mem_bootstrap and vm_mem_init.
   39  *      [91/12/29            rpd]
   40  * 
   41  * Revision 2.7  91/05/18  14:40:21  rpd
   42  *      Replaced vm_page_startup with vm_page_bootstrap.
   43  *      [91/04/10            rpd]
   44  * 
   45  * Revision 2.6  91/05/14  17:49:05  mrt
   46  *      Correcting copyright
   47  * 
   48  * Revision 2.5  91/03/16  15:05:10  rpd
   49  *      Added vm_fault_init.
   50  *      [91/02/16            rpd]
   51  * 
   52  * Revision 2.4  91/02/05  17:58:17  mrt
   53  *      Changed to new Mach copyright
   54  *      [91/02/01  16:32:11  mrt]
   55  * 
   56  * Revision 2.3  90/02/22  20:05:35  dbg
   57  *      Reduce lint.
   58  *      [90/01/29            dbg]
   59  * 
   60  * Revision 2.2  89/09/08  11:28:15  dbg
   61  *      Initialize kalloc package here.
   62  *      [89/09/06            dbg]
   63  * 
   64  *      Removed non-XP code.
   65  *      [89/04/28            dbg]
   66  * 
   67  * Revision 2.10  89/04/22  15:35:20  gm0w
   68  *      Removed MACH_VFS code.
   69  *      [89/04/14            gm0w]
   70  * 
   71  * Revision 2.9  89/04/18  21:25:30  mwyoung
   72  *      Recent history:
   73  *              Add memory_manager_default_init(), vm_page_module_init().
   74  * 
   75  *      Older history has been integrated into the documentation for
   76  *      this module.
   77  *      [89/04/18            mwyoung]
   78  * 
   79  */
   80 /*
   81  *      File:   vm/vm_init.c
   82  *      Author: Avadis Tevanian, Jr., Michael Wayne Young
   83  *      Date:   1985
   84  *
   85  *      Initialize the Virtual Memory subsystem.
   86  */
   87 
   88 #include <mach/machine/vm_types.h>
   89 #include <kern/zalloc.h>
   90 #include <kern/kalloc.h>
   91 #include <vm/vm_object.h>
   92 #include <vm/vm_map.h>
   93 #include <vm/vm_page.h>
   94 #include <vm/vm_kern.h>
   95 #include <vm/memory_object.h>
   96 
   97 
   98 
   99 /*
  100  *      vm_mem_bootstrap initializes the virtual memory system.
  101  *      This is done only by the first cpu up.
  102  */
  103 
  104 void vm_mem_bootstrap()
  105 {
  106         vm_offset_t     start, end;
  107 
  108         /*
  109          *      Initializes resident memory structures.
  110          *      From here on, all physical memory is accounted for,
  111          *      and we use only virtual addresses.
  112          */
  113 
  114         vm_page_bootstrap(&start, &end);
  115 
  116         /*
  117          *      Initialize other VM packages
  118          */
  119 
  120         zone_bootstrap();
  121         vm_object_bootstrap();
  122         vm_map_init();
  123         kmem_init(start, end);
  124         pmap_init();
  125         zone_init();
  126         kalloc_init();
  127         vm_fault_init();
  128         vm_page_module_init();
  129         memory_manager_default_init();
  130 }
  131 
  132 void vm_mem_init()
  133 {
  134         vm_object_init();
  135 }

Cache object: 0ec05027c8ae617a4bde8d45c2755fba


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.