summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis2016-08-31 15:13:37 -0500
committerTero Kristo2016-09-02 02:15:29 -0500
commit8096bf91545fefb2e9f9d8fd565b60e9f1f5b5d5 (patch)
tree43ff2c9ad58d31fc24f0eb64ad133e0822341708
parenta74249b54a6e6aa5a0f87fa71e9071f93bec506e (diff)
downloadks2-boot-monitor-8096bf91545fefb2e9f9d8fd565b60e9f1f5b5d5.tar.gz
ks2-boot-monitor-8096bf91545fefb2e9f9d8fd565b60e9f1f5b5d5.tar.xz
ks2-boot-monitor-8096bf91545fefb2e9f9d8fd565b60e9f1f5b5d5.zip
sec: skernel: Use correct number of cores for stack size calculation
When calculating the total size of the monitors stack, the stack size per core is multiplied by 4, for most Keystone 2 devices this is the correct number of cores, but not for all anymore, so we may over allocate stack space. Use the ARM_NUM_CORES macro instead. Signed-off-by: Andrew F. Davis <afd@ti.com>
-rw-r--r--sec/skernel.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sec/skernel.S b/sec/skernel.S
index 54df04373457..dd0aec8c8422 100644
--- a/sec/skernel.S
+++ b/sec/skernel.S
@@ -40,7 +40,7 @@
40#include "config.h" 40#include "config.h"
41 41
42#define MON_STACK_SIZE_PER_CORE RBL_MON_STACK_SIZE 42#define MON_STACK_SIZE_PER_CORE RBL_MON_STACK_SIZE
43#define MON_STACK_SIZE (MON_STACK_SIZE_PER_CORE * 4) 43#define MON_STACK_SIZE (MON_STACK_SIZE_PER_CORE * ARM_NUM_CORES)
44 44
45 .align 5 45 .align 5
46 .global skern_init 46 .global skern_init