Changeset 1bfe311 in rtems-libbsd
- Timestamp:
- 05/31/12 19:50:48 (11 years ago)
- Branches:
- 4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
- Children:
- 8e4f82c
- Parents:
- b049b40
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtemsbsd/src/rtems-bsd-vm_glue.c
rb049b40 r1bfe311 33 33 * SUCH DAMAGE. 34 34 */ 35 36 #include <sys/cdefs.h> 37 __FBSDID("$FreeBSD$"); 35 #include <freebsd/machine/rtems-bsd-config.h> 38 36 39 37 #include <sys/param.h> 40 38 #include <sys/lock.h> 41 39 #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 */ 51 static int boot_pages = UMA_BOOT_PAGES; 52 static void vm_mem_init(void *); 53 SYSINIT(vm_mem, SI_SUB_VM, SI_ORDER_FIRST, vm_mem_init, NULL); 54 55 static void 56 vm_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 } 42 70 43 71 /*
Note: See TracChangeset
for help on using the changeset viewer.