From 0796441a53050f2dd92f7dbad47dfbe5a103d53d Mon Sep 17 00:00:00 2001 From: Sho Nakatani Date: Sun, 9 Feb 2020 01:52:40 +0900 Subject: Solves https://github.com/riscv/riscv-tests/issues/241 : Each mhartid has the same size of stack & TLS. (#242) --- benchmarks/common/crt.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmarks') diff --git a/benchmarks/common/crt.S b/benchmarks/common/crt.S index f97c589..018f929 100644 --- a/benchmarks/common/crt.S +++ b/benchmarks/common/crt.S @@ -127,11 +127,11 @@ _start: # give each core 128KB of stack + TLS #define STKSHIFT 17 - sll a2, a0, STKSHIFT - add tp, tp, a2 add sp, a0, 1 sll sp, sp, STKSHIFT add sp, sp, tp + sll a2, a0, STKSHIFT + add tp, tp, a2 j _init -- cgit v1.1