summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/memlayout.h3
-rw-r--r--src/lib/timestamp.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/include/memlayout.h b/src/include/memlayout.h
index 43a1caca75..a68b21f4d6 100644
--- a/src/include/memlayout.h
+++ b/src/include/memlayout.h
@@ -75,7 +75,8 @@
#define DRAM_START(addr) SYMBOL(dram, addr)
#define TIMESTAMP(addr, size) \
- REGION(timestamp, addr, size, 8)
+ REGION(timestamp, addr, size, 8) \
+ _ = ASSERT(size >= 212, "Timestamp region must fit timestamp_cache!");
#define PRERAM_CBMEM_CONSOLE(addr, size) \
REGION(preram_cbmem_console, addr, size, 4)
diff --git a/src/lib/timestamp.c b/src/lib/timestamp.c
index d8b93f9755..2f2a5d8752 100644
--- a/src/lib/timestamp.c
+++ b/src/lib/timestamp.c
@@ -27,6 +27,7 @@
#define MAX_TIMESTAMPS 84
+/* When changing this number, adjust TIMESTAMP() size ASSERT() in memlayout.h */
#define MAX_BSS_TIMESTAMP_CACHE 16
struct __attribute__((__packed__)) timestamp_cache {