diff mbox

[14/15] arm64: prepare for 64k pages

Message ID 1418241608-13966-15-git-send-email-drjones@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Jones Dec. 10, 2014, 8 p.m. UTC
This changes the layout for arm too, but that's fine. The only
thing to keep in mind is that while arm64 will have a single
64k page for its stack, arm will have 16 4k pages. If the number
of stack pages matters, then unit tests that want to work for
both arm and arm64, may need to avoid using more than one page,
even though the memory is there.

Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 arm/flat.lds | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/arm/flat.lds b/arm/flat.lds
index ee9fc0ab79abc..89a55720d728f 100644
--- a/arm/flat.lds
+++ b/arm/flat.lds
@@ -2,10 +2,10 @@ 
 SECTIONS
 {
     .text : { *(.init) *(.text) *(.text.*) }
-    . = ALIGN(4K);
+    . = ALIGN(64K);
     .data : {
         exception_stacks = .;
-        . += 4K;
+        . += 64K;
         exception_stacks_end = .;
         *(.data)
     }
@@ -13,10 +13,10 @@  SECTIONS
     .rodata : { *(.rodata) }
     . = ALIGN(16);
     .bss : { *(.bss) }
-    . = ALIGN(4K);
+    . = ALIGN(64K);
     edata = .;
-    . += 8K;
-    . = ALIGN(4K);
+    . += 64K;
+    . = ALIGN(64K);
     stacktop = .;
 }