Changeset 1bfe311 in rtems-libbsd


Ignore:
Timestamp:
May 31, 2012, 7:50:48 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, 46b3858b27d78e14a220f8d251fd7ab28a5244f4, freebsd-9.3, 792d56bd33346adadf8b95dea2d2ed09f9e347e7
Children:
8e4f82c
Parents:
b049b40
Message:

Added an initialization method for minimal vm initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/src/rtems-bsd-vm_glue.c

    rb049b40 r1bfe311  
    3333 * SUCH DAMAGE.
    3434 */
    35 
    36 #include <sys/cdefs.h>
    37 __FBSDID("$FreeBSD$");
     35#include <freebsd/machine/rtems-bsd-config.h>
    3836
    3937#include <sys/param.h>
    4038#include <sys/lock.h>
    4139#include <sys/sched.h>
     40
     41#include <freebsd/sys/cdefs.h>
     42__FBSDID("$FreeBSD$");
     43#include <freebsd/sys/kernel.h>
     44#include <freebsd/vm/uma.h>
     45#include <freebsd/vm/uma_int.h>
     46#include <freebsd/sys/systm.h>
     47
     48/*
     49 * System initialization
     50 */
     51static int boot_pages = UMA_BOOT_PAGES;
     52static void vm_mem_init(void *);
     53SYSINIT(vm_mem, SI_SUB_VM, SI_ORDER_FIRST, vm_mem_init, NULL);
     54
     55static void
     56vm_mem_init(dummy)
     57        void *dummy;
     58{
     59  void *mapped;
     60
     61  /*
     62   * The values for mapped came from the freeBSD method
     63   * vm_page_startup() in the freeBSD file vm_page.c.
     64   * XXX - This may need to be adjusted for our system.
     65   */
     66  mapped = calloc( boot_pages * UMA_SLAB_SIZE, 1 );
     67  uma_startup((void *)mapped, boot_pages);
     68  kern_timeout_callwheel_init();
     69}
    4270
    4371/*
Note: See TracChangeset for help on using the changeset viewer.