XTLDR Rewrite #7

Merged
belliash merged 184 commits from xtldr_rewrite into master 2024-01-09 18:51:04 +01:00
Showing only changes of commit e686b6f342 - Show all commits

View File

@ -40,9 +40,10 @@
#define MAXLONG 0x7FFFFFFF
#define MAXULONG 0xFFFFFFFF
/* Preprocessor macros for defining a structure alignment and packing */
/* Preprocessor macros for defining a structure alignment, packing and segment */
#define ALIGN(x) __attribute__((aligned(x)))
#define PACK __attribute__((packed))
#define SEGMENT(segment) __attribute__((section(segment)))
/* Macro for calculating size of an array */
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))