diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-12-12 12:31:33 +0100 |
---|---|---|
committer | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2017-01-17 12:50:57 +0100 |
commit | efc782bd1cf91e5441935c5f3a990c340c9660df (patch) | |
tree | 3444f7ce1ae60584501e86805c90d3675ff8c9fb /rtemsbsd/include/rtems | |
parent | Import IEEE 802.11 from FreeBSD. (diff) | |
download | rtems-libbsd-efc782bd1cf91e5441935c5f3a990c340c9660df.tar.bz2 |
Port IEEE 802.11.
Diffstat (limited to 'rtemsbsd/include/rtems')
-rw-r--r-- | rtemsbsd/include/rtems/bsd/local/opt_platform.h | 0 | ||||
-rw-r--r-- | rtemsbsd/include/rtems/bsd/sys/param.h | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/local/opt_platform.h b/rtemsbsd/include/rtems/bsd/local/opt_platform.h new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/rtemsbsd/include/rtems/bsd/local/opt_platform.h diff --git a/rtemsbsd/include/rtems/bsd/sys/param.h b/rtemsbsd/include/rtems/bsd/sys/param.h index fb9b80cc..8042746c 100644 --- a/rtemsbsd/include/rtems/bsd/sys/param.h +++ b/rtemsbsd/include/rtems/bsd/sys/param.h @@ -177,6 +177,14 @@ #endif /* + * ALIGNED_POINTER is a boolean macro that checks whether an address + * is valid to fetch data elements of type t from on this architecture. + * This does not reflect the optimal alignment, just the possibility + * (within reasonable limits). + */ +#define ALIGNED_POINTER(p, t) ((((u_long)(p)) & (sizeof(t) - 1)) == 0) + +/* * Some macros for units conversion */ |