public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Use external header file for kernel space types
@ 2016-11-07 13:16 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-11-07 13:16 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=dcaf7fedb9a2aab91cd87d3fa9128c25fe8d2eb5
commit dcaf7fedb9a2aab91cd87d3fa9128c25fe8d2eb5
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Thu Oct 27 08:38:15 2016 +0200
Use external header file for kernel space types
The FreeBSD kernel types are not used in Newlib. Provide them via an
external header file to decouple Newlib and FreeBSD updates for RTEMS.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diff:
---
newlib/libc/sys/rtems/include/machine/_types.h | 7 -------
newlib/libc/sys/rtems/include/machine/types.h | 5 +++++
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/newlib/libc/sys/rtems/include/machine/_types.h b/newlib/libc/sys/rtems/include/machine/_types.h
index eaf162a..e1b4c64 100644
--- a/newlib/libc/sys/rtems/include/machine/_types.h
+++ b/newlib/libc/sys/rtems/include/machine/_types.h
@@ -35,11 +35,4 @@ typedef __int64_t __rlim_t; /* resource limit - intentionally */
/* signed, because of legacy code */
/* that uses -1 for RLIM_INFINITY */
-#ifdef _KERNEL
-typedef int boolean_t;
-typedef struct device *device_t;
-typedef char vm_memattr_t; /* memory attribute codes */
-typedef struct vm_page *vm_page_t;
-#endif /* _KERNEL */
-
#endif /* _MACHINE__TYPES_H */
diff --git a/newlib/libc/sys/rtems/include/machine/types.h b/newlib/libc/sys/rtems/include/machine/types.h
index 7977027..b28f923 100644
--- a/newlib/libc/sys/rtems/include/machine/types.h
+++ b/newlib/libc/sys/rtems/include/machine/types.h
@@ -77,4 +77,9 @@ typedef __uintptr_t vm_size_t;
typedef __uintmax_t rman_res_t;
+#ifdef _KERNEL
+/* Header file provided outside of Newlib */
+#include <machine/_kernel_types.h>
+#endif
+
#endif /* __BSD_VISIBLE */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-07 13:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-07 13:16 [newlib-cygwin] Use external header file for kernel space types Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).