summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys
diff options
context:
space:
mode:
authorKevin Kirspel <kevin-kirspel@idexx.com>2017-05-04 08:27:58 -0400
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-05-11 11:15:41 +0200
commit4a8f953f62f38be118a9aa3cdce87743ec898015 (patch)
tree94a04711f0ff484bdb8a9c7893408b7b17999ec8 /freebsd/sys/sys
parentUpdating STTY command for use in RTEMS shell (diff)
downloadrtems-libbsd-4a8f953f62f38be118a9aa3cdce87743ec898015.tar.bz2
Updating FREEBSD for tty support
Diffstat (limited to 'freebsd/sys/sys')
-rw-r--r--freebsd/sys/sys/conf.h2
-rw-r--r--freebsd/sys/sys/file.h4
-rw-r--r--freebsd/sys/sys/proc.h2
3 files changed, 8 insertions, 0 deletions
diff --git a/freebsd/sys/sys/conf.h b/freebsd/sys/sys/conf.h
index 8d39c629..d5ced5c0 100644
--- a/freebsd/sys/sys/conf.h
+++ b/freebsd/sys/sys/conf.h
@@ -84,9 +84,11 @@ struct cdev {
LIST_ENTRY(cdev) si_list;
#ifndef __rtems__
LIST_ENTRY(cdev) si_clone;
+#endif /* __rtems__ */
LIST_HEAD(, cdev) si_children;
LIST_ENTRY(cdev) si_siblings;
struct cdev *si_parent;
+#ifndef __rtems__
struct mount *si_mountpt;
#endif /* __rtems__ */
void *si_drv1, *si_drv2;
diff --git a/freebsd/sys/sys/file.h b/freebsd/sys/sys/file.h
index 092362b4..8f91f52c 100644
--- a/freebsd/sys/sys/file.h
+++ b/freebsd/sys/sys/file.h
@@ -199,6 +199,10 @@ struct file {
void *f_label; /* Place-holder for MAC label. */
#else /* __rtems__ */
rtems_libio_t f_io;
+ union {
+ struct cdev_privdata *fvn_cdevpriv;
+ /* (d) Private data for the cdev. */
+ } f_vnun;
#endif /* __rtems__ */
};
#ifdef __rtems__
diff --git a/freebsd/sys/sys/proc.h b/freebsd/sys/sys/proc.h
index 7af3dc2e..2b58ffe6 100644
--- a/freebsd/sys/sys/proc.h
+++ b/freebsd/sys/sys/proc.h
@@ -301,7 +301,9 @@ struct thread {
u_long td_profil_addr; /* (k) Temporary addr until AST. */
u_int td_profil_ticks; /* (k) Temporary ticks until AST. */
char td_name[MAXCOMLEN + 1]; /* (*) Thread name. */
+#endif /* __rtems__ */
struct file *td_fpop; /* (k) file referencing cdev under op */
+#ifndef __rtems__
int td_dbgflags; /* (c) Userland debugger flags */
siginfo_t td_si; /* (c) For debugger or core file */
int td_ng_outbound; /* (k) Thread entered ng from above. */