aboutsummaryrefslogtreecommitdiff
path: root/aarch64/el3/el3_init.S
diff options
context:
space:
mode:
Diffstat (limited to 'aarch64/el3/el3_init.S')
-rw-r--r--aarch64/el3/el3_init.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/aarch64/el3/el3_init.S b/aarch64/el3/el3_init.S
index 3de4566..c075972 100644
--- a/aarch64/el3/el3_init.S
+++ b/aarch64/el3/el3_init.S
@@ -22,11 +22,11 @@ init_uart:
/* The stack still needs to be allocated and mapped so we set up a
* temporary stack for the time being.
*/
- ldr x10, =RAM_BASE+0x2000
+ ldr x10, =RAM_BASE + (2 * PAGE_SIZE)
mov sp, x10
/* Use the top of the stack to track our PA pool pointer */
- ldr x10, =PT_BASE+0x1000
+ ldr x10, =PT_BASE + (PAGE_SIZE)
str x10, [sp]
/* Enable floating point register usage as printf uses it */
@@ -87,7 +87,7 @@ el3_map_data:
el3_map_stack:
/* Map the first page of the stack so we can get off the ground */
- ldr x0, =EL3_STACK_BASE-0x1000
+ ldr x0, =EL3_STACK_BASE - PAGE_SIZE
mov x1, #(PTE_PAGE|PTE_ACCESS|PTE_PRIV_RW)
bl map_va