aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2020-04-27 21:08:06 +1000
committerOliver O'Halloran <oohall@gmail.com>2020-06-11 12:52:55 +1000
commitac08f4aa9c772eb03b2460500c64b77822f05bf4 (patch)
tree1346a35b20323c91e052db4680b9276c8267edf4 /include
parente40441198832e8fd69ddca9e75c466085b6ddf6c (diff)
downloadskiboot-ac08f4aa9c772eb03b2460500c64b77822f05bf4.zip
skiboot-ac08f4aa9c772eb03b2460500c64b77822f05bf4.tar.gz
skiboot-ac08f4aa9c772eb03b2460500c64b77822f05bf4.tar.bz2
skiboot.lds.S: introduce PAGE_SIZE, use it to lay out sections
Separate code, data, read-only data, and other significant sections with PAGE_SIZE alignment. This enables memory protection for these sections with a later patch. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index cb88edb..fd9521f 100644
--- a/include/config.h
+++ b/include/config.h
@@ -4,6 +4,9 @@
#ifndef __CONFIG_H
#define __CONFIG_H
+/* Alignment to which skiboot lays out memory. */
+#define PAGE_SIZE 0x10000
+
#define HAVE_TYPEOF 1
#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1