summaryrefslogblamecommitdiffstats
path: root/rtemsbsd/freebsd/machine/_align.h
blob: a307acaa855b625a29224e56b8c6da44dabc60a4 (plain) (tree)

























                                                                       
                                                                                    





                                                                  
/**
 * @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_ */