Changeset 8e4f82c in rtems-libbsd


Ignore:
Timestamp:
Jun 1, 2012, 6:51:41 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, a8f29d695e152575479ad1a97fa354f661bebd4d, freebsd-9.3, d892051f37c2c4ad7f345f6a817ea3d38e56a431
Children:
19955e7
Parents:
1bfe311
Message:

Add some of the initialization from freeBSD vm_init.c needed for Nic.

File:
1 edited

Legend:

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

    r1bfe311 r8e4f82c  
    5353SYSINIT(vm_mem, SI_SUB_VM, SI_ORDER_FIRST, vm_mem_init, NULL);
    5454
     55
    5556static void
    5657vm_mem_init(dummy)
    5758        void *dummy;
    5859{
    59   void *mapped;
     60  void        *mapped;
     61  static void *callwheel_array[270];
     62  caddr_t      c;
     63  caddr_t      p;
    6064
    6165  /*
     
    6670  mapped = calloc( boot_pages * UMA_SLAB_SIZE, 1 );
    6771  uma_startup((void *)mapped, boot_pages);
     72
     73  /*
     74   * The following is doing a minimal amount of work from
     75   * the method vm_ksubmap_init() in freeBSD vm_init.c.
     76   */
     77  c = (caddr_t) callwheel_array;
     78  p = kern_timeout_callwheel_alloc(c);
     79  printf( "*** callwheel 0x%x 0x%x 0x%x\n", c, p,  (c + sizeof(callwheel_array)) );
     80  if ( p > (c + sizeof(callwheel_array)) )
     81    panic( "*** not enough memory for callwheel_array ***" );
    6882  kern_timeout_callwheel_init();
    6983}
Note: See TracChangeset for help on using the changeset viewer.