Subversion Repositories HelenOS

Rev

Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2465
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
-
 
29
/** @addtogroup generic
-
 
30
 * @{
-
 
31
 */
-
 
32
/** @file
-
 
33
 */
-
 
34
 
29
#ifndef BOOT_ALIGN_H_
35
#ifndef BOOT_ALIGN_H_
30
#define BOOT_ALIGN_H_
36
#define BOOT_ALIGN_H_
31
 
37
 
32
/** Align to the nearest higher address.
38
/** Align to the nearest higher address.
33
 *
39
 *
Line 35... Line 41...
35
 * @param align Size of alignment, must be power of 2.
41
 * @param align Size of alignment, must be power of 2.
36
 */
42
 */
37
#define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1))
43
#define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1))
38
 
44
 
39
#endif
45
#endif
-
 
46
 
-
 
47
/** @}
-
 
48
 */