From f53e4ff8f5813cbe42737a14146a5a608c61b68a Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Wed, 7 May 2014 18:28:22 +0200 Subject: [PATCH] hw: align kernel stack appropriately fix #1161 --- repos/base-hw/src/core/kernel/kernel.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/base-hw/src/core/kernel/kernel.cc b/repos/base-hw/src/core/kernel/kernel.cc index 15778ae355..691e625979 100644 --- a/repos/base-hw/src/core/kernel/kernel.cc +++ b/repos/base-hw/src/core/kernel/kernel.cc @@ -212,8 +212,9 @@ namespace Kernel /** * Enable kernel-entry assembly to get an exclusive stack at every processor */ -char kernel_stack[PROCESSORS][Kernel::STACK_SIZE] __attribute__((aligned())); unsigned kernel_stack_size = Kernel::STACK_SIZE; +char kernel_stack[PROCESSORS][Kernel::STACK_SIZE] + __attribute__((aligned(16))); /**