mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 01:29:19 +08:00
34 lines
801 B
C
34 lines
801 B
C
/**
|
|
* @file
|
|
*
|
|
* @ingroup rtems_bsd_machine
|
|
*
|
|
* @brief TODO.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2009, 2010 embedded brains GmbH. All rights reserved.
|
|
*
|
|
* embedded brains GmbH
|
|
* Obere Lagerstr. 30
|
|
* 82178 Puchheim
|
|
* Germany
|
|
* <rtems@embedded-brains.de>
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*/
|
|
|
|
#ifndef _RTEMS_BSD_MACHINE__ALIGN_H_
|
|
#define _RTEMS_BSD_MACHINE__ALIGN_H_
|
|
|
|
#ifndef _RTEMS_BSD_MACHINE_RTEMS_BSD_CONFIG_H_
|
|
#error "the header file <freebsd/machine/rtems-bsd-config.h> must be included first"
|
|
#endif
|
|
|
|
#define _ALIGNBYTES ((uintptr_t) (CPU_ALIGNMENT - 1))
|
|
#define _ALIGN(p) (((uintptr_t) (p) + _ALIGNBYTES) & ~_ALIGNBYTES)
|
|
|
|
#endif /* _RTEMS_BSD_MACHINE__ALIGN_H_ */
|