Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81278?usp=email )
Change subject: include/imd{,_private}.h: Move define LIMIT_ALIGN to <imd.h> ......................................................................
include/imd{,_private}.h: Move define LIMIT_ALIGN to <imd.h>
Change-Id: I583cbd1d20f8f0a70e246eebc085477852d77d39 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/include/imd.h M src/include/imd_private.h 2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/78/81278/1
diff --git a/src/include/imd.h b/src/include/imd.h index df669fd..ccbb5a5 100644 --- a/src/include/imd.h +++ b/src/include/imd.h @@ -6,6 +6,8 @@ #include <stdint.h> #include <stddef.h>
+#define LIMIT_ALIGN 4096 + /* * imd is an in-memory database/directory/datastore (whatever d word you * desire). It grows downwards in memory from provided upper limit and @@ -40,8 +42,6 @@ struct imd_entry; struct imd;
-static const size_t LIMIT_ALIGN = 4096; - /* * Initialize handle to use for working with an imd. Upper limit is the * exclusive address (aligned down to LIMIT_ALIGN) to start allocating down diff --git a/src/include/imd_private.h b/src/include/imd_private.h index 3ff6a51..c565d2b 100644 --- a/src/include/imd_private.h +++ b/src/include/imd_private.h @@ -5,6 +5,7 @@
#include <cbmem.h> #include <commonlib/bsd/helpers.h> +#include <imd.h>
/* In-memory data structures. */ struct imd_root_pointer { @@ -34,7 +35,6 @@ #define IMD_ROOT_PTR_MAGIC 0xc0389481 #define IMD_ENTRY_MAGIC (~0xc0389481) #define SMALL_REGION_ID CBMEM_ID_IMD_SMALL -#define LIMIT_ALIGN 4096
#define IMD_FLAG_LOCKED 1