summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-02-28 16:37:22 +0000
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-02-28 16:37:22 +0000
commit458dc17aa5485e90ede863a753c0bef2edb5dba7 (patch)
treeb98f60fd264d2bd7f7081eb5ed3fc79f22d8c511 /framework
parent7c7d1a486005c3742d4da1a65ab1f0c153906cb2 (diff)
Replace magic numbers in linkerscripts by PAGE_SIZE
This way it is easier to understand the code and it is still valid even if the page size changes. Change-Id: I731ad0aa99a012eae4990ea95f507661a35ab818 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/tftf.ld.S7
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/tftf.ld.S b/framework/tftf.ld.S
index 50d98aa..cf97e83 100644
--- a/framework/tftf.ld.S
+++ b/framework/tftf.ld.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -29,6 +29,7 @@
*/
#include <platform_def.h>
+#include <xlat_tables.h>
OUTPUT_FORMAT(PLATFORM_LINKER_FORMAT)
OUTPUT_ARCH(PLATFORM_LINKER_ARCH)
@@ -97,7 +98,7 @@ SECTIONS
* are not mixed with normal data. This is required to set up the correct
* memory attributes for the coherent data page tables.
*/
- coherent_ram (NOLOAD) : ALIGN(4096) {
+ coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) {
__COHERENT_RAM_START__ = .;
*(tftf_coherent_stacks)
*(tftf_coherent_mem)
@@ -107,7 +108,7 @@ SECTIONS
* as device memory. No other unexpected data must creep in.
* Ensure the rest of the current memory page is unused.
*/
- . = NEXT(4096);
+ . = NEXT(PAGE_SIZE);
__COHERENT_RAM_END__ = .;
} >RAM