summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/vm
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-09 22:52:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-10 09:08:23 +0200
commite599318e912d8836c59d8b5202e3e31a6b8dcae9 (patch)
tree1172b8b830a1c3236e45c834c2b80e01325ea144 /freebsd/sys/vm
parentMove files to match FreeBSD layout (diff)
downloadrtems-libbsd-e599318e912d8836c59d8b5202e3e31a6b8dcae9.tar.bz2
Update files to match FreeBSD layout
Add compatibility with Newlib header files. Some FreeBSD header files are mapped by the translation script: o rtems/bsd/sys/_types.h o rtems/bsd/sys/errno.h o rtems/bsd/sys/lock.h o rtems/bsd/sys/param.h o rtems/bsd/sys/resource.h o rtems/bsd/sys/time.h o rtems/bsd/sys/timespec.h o rtems/bsd/sys/types.h o rtems/bsd/sys/unistd.h It is now possible to include <sys/socket.h> directly for example. Generate one Makefile which builds everything including tests.
Diffstat (limited to 'freebsd/sys/vm')
-rw-r--r--freebsd/sys/vm/uma.h4
-rw-r--r--freebsd/sys/vm/uma_core.c67
-rw-r--r--freebsd/sys/vm/vm.h2
3 files changed, 36 insertions, 37 deletions
diff --git a/freebsd/sys/vm/uma.h b/freebsd/sys/vm/uma.h
index b23ad453..62a0ca79 100644
--- a/freebsd/sys/vm/uma.h
+++ b/freebsd/sys/vm/uma.h
@@ -36,8 +36,8 @@
#ifndef VM_UMA_H
#define VM_UMA_H
-#include <freebsd/sys/param.h> /* For NULL */
-#include <freebsd/sys/malloc.h> /* For M_* */
+#include <rtems/bsd/sys/param.h> /* For NULL */
+#include <sys/malloc.h> /* For M_* */
/* User visible parameters */
#define UMA_SMALLEST_UNIT (PAGE_SIZE / 256) /* Smallest item allocated */
diff --git a/freebsd/sys/vm/uma_core.c b/freebsd/sys/vm/uma_core.c
index a53fceb9..8d62d559 100644
--- a/freebsd/sys/vm/uma_core.c
+++ b/freebsd/sys/vm/uma_core.c
@@ -1,4 +1,4 @@
-#include <freebsd/machine/rtems-bsd-config.h>
+#include <machine/rtems-bsd-config.h>
/*-
* Copyright (c) 2002-2005, 2009 Jeffrey Roberson <jeff@FreeBSD.org>
@@ -49,7 +49,7 @@
* - Investigate cache size adjustments
*/
-#include <freebsd/sys/cdefs.h>
+#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
/* I should really use ktr.. */
@@ -59,45 +59,44 @@ __FBSDID("$FreeBSD$");
#define UMA_DEBUG_ALLOC_1 1
*/
-#include <freebsd/local/opt_ddb.h>
-#include <freebsd/local/opt_param.h>
-
-#include <freebsd/sys/param.h>
-#include <freebsd/sys/systm.h>
-#include <freebsd/sys/kernel.h>
-#include <freebsd/sys/types.h>
-#include <freebsd/sys/queue.h>
-#include <freebsd/sys/malloc.h>
-#include <freebsd/sys/ktr.h>
-#include <freebsd/sys/lock.h>
-#include <freebsd/sys/sysctl.h>
-#include <freebsd/sys/mutex.h>
-#include <freebsd/sys/proc.h>
-#include <freebsd/sys/sbuf.h>
-#include <freebsd/sys/smp.h>
-#include <freebsd/sys/vmmeter.h>
-
-#include <freebsd/vm/vm.h>
-#ifndef __rtems__
-#include <freebsd/vm/vm_object.h>
-#include <freebsd/vm/vm_page.h>
-#include <freebsd/vm/vm_param.h>
-#include <freebsd/vm/vm_map.h>
-#include <freebsd/vm/vm_kern.h>
-#include <freebsd/vm/vm_extern.h>
-#else
+#include <rtems/bsd/local/opt_ddb.h>
+#include <rtems/bsd/local/opt_param.h>
+
+#include <rtems/bsd/sys/param.h>
+#include <sys/systm.h>
+#include <sys/kernel.h>
+#include <rtems/bsd/sys/types.h>
+#include <sys/queue.h>
+#include <sys/malloc.h>
+#include <sys/ktr.h>
+#include <rtems/bsd/sys/lock.h>
+#include <sys/sysctl.h>
+#include <sys/mutex.h>
+#include <sys/proc.h>
+#include <sys/sbuf.h>
+#include <sys/smp.h>
+#include <sys/vmmeter.h>
+
+#include <vm/vm.h>
+#include <vm/vm_object.h>
+#include <vm/vm_page.h>
+#include <vm/vm_param.h>
+#include <vm/vm_map.h>
+#include <vm/vm_kern.h>
+#include <vm/vm_extern.h>
+#ifdef __rtems__
void *rtems_page_alloc(int bytes);
void *rtems_page_find( void *address );
void rtems_page_free( void *address );
#endif /* __rtems__ */
-#include <freebsd/vm/uma.h>
-#include <freebsd/vm/uma_int.h>
-#include <freebsd/vm/uma_dbg.h>
+#include <vm/uma.h>
+#include <vm/uma_int.h>
+#include <vm/uma_dbg.h>
#ifndef __rtems__
-#include <freebsd/machine/vmparam.h>
+#include <machine/vmparam.h>
-#include <freebsd/ddb/ddb.h>
+#include <ddb/ddb.h>
#endif /* __rtems__ */
/*
diff --git a/freebsd/sys/vm/vm.h b/freebsd/sys/vm/vm.h
index 037ac838..941300a0 100644
--- a/freebsd/sys/vm/vm.h
+++ b/freebsd/sys/vm/vm.h
@@ -61,7 +61,7 @@
#ifndef VM_H
#define VM_H
-#include <freebsd/machine/vm.h>
+#include <machine/vm.h>
typedef char vm_inherit_t; /* inheritance codes */