diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-02 16:29:11 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-08 09:04:18 +0100 |
commit | c1205ee81e0a3c78ef687fa7c58639d5b7d04784 (patch) | |
tree | 2b9affd38109db8a403f992fe6d4c41793d8e64d /freebsd/sys/dev/ofw/ofw_fdt.c | |
parent | FDT(4): Import from FreeBSD (diff) | |
download | rtems-libbsd-c1205ee81e0a3c78ef687fa7c58639d5b7d04784.tar.bz2 |
FDT(4): Port to RTEMS
Diffstat (limited to 'freebsd/sys/dev/ofw/ofw_fdt.c')
-rw-r--r-- | freebsd/sys/dev/ofw/ofw_fdt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/dev/ofw/ofw_fdt.c b/freebsd/sys/dev/ofw/ofw_fdt.c index 6bdaf89b..ae3da8e4 100644 --- a/freebsd/sys/dev/ofw/ofw_fdt.c +++ b/freebsd/sys/dev/ofw/ofw_fdt.c @@ -97,12 +97,18 @@ static ofw_method_t ofw_fdt_methods[] = { { 0, 0 } }; +#ifndef __rtems__ static ofw_def_t ofw_fdt = { +#else /* __rtems__ */ +ofw_def_t ofw_fdt = { +#endif /* __rtems__ */ OFW_FDT, ofw_fdt_methods, 0 }; +#ifndef __rtems__ OFW_DEF(ofw_fdt); +#endif /* __rtems__ */ static void *fdtp = NULL; |