From 83f5e2a258afeadc132a59c1723821bfffba62a7 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Tue, 2 Sep 2014 17:01:27 +0200 Subject: [PATCH] Fix stack alignment for bootloader. The ARM SP is pointing to the top item of the stack, not the first free byte. This was confusing dprintf making it fail to print 64bit integers. --- headers/private/kernel/arch/arm/omap3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/private/kernel/arch/arm/omap3.h b/headers/private/kernel/arch/arm/omap3.h index 44a832566c..8e44035fa1 100644 --- a/headers/private/kernel/arch/arm/omap3.h +++ b/headers/private/kernel/arch/arm/omap3.h @@ -25,7 +25,7 @@ #define SDRAM_BASE 0x80000000 // Offset of stack top defined with respect to SDRAM_BASE -#define KSTACK_TOP 0x27fffff +#define KSTACK_TOP 0x2800000 #define VECT_BASE 0x00000000 #define VECT_SIZE 0x1000