Index: boot/generic/include/align.h
===================================================================
--- boot/generic/include/align.h	(revision 4805495a910f793f8918c13f029a38a5bb548154)
+++ boot/generic/include/align.h	(revision db8568a349d4d49bb9a4c9b6a7f3bca32a223b4b)
@@ -49,4 +49,11 @@
 #define ALIGN_UP(s, a)  (((s) + ((a) - 1)) & ~((a) - 1))
 
+/** Check alignment.
+ *
+ * @param s Address or size to be checked for alignment.
+ * @param a Size of alignment, must be a power of 2.
+ */
+#define IS_ALIGNED(s, a)  (ALIGN_UP((s), (a)) == (s))
+
 #endif
 
