From: Sergiu Moga Date: Thu, 23 Nov 2023 12:55:19 +0000 (+0200) Subject: plat/common/arm: Init `TPIDR_EL1` in `lcpu_arch_init` X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1314c17904f736e1430921c6a2626a44d4a043d5;p=unikraft%2Funikraft.git plat/common/arm: Init `TPIDR_EL1` in `lcpu_arch_init` Every LCPU shall have their `TPIDR_EL1` system register assigned the value of the address of their own `struct lcpu` element in the global `lcpus` array. Co-authored-by: Michalis Pappas Signed-off-by: Michalis Pappas Signed-off-by: Sergiu Moga --- diff --git a/plat/common/arm/lcpu.c b/plat/common/arm/lcpu.c index 2d4021bd1..037b1c1ee 100644 --- a/plat/common/arm/lcpu.c +++ b/plat/common/arm/lcpu.c @@ -90,6 +90,8 @@ int lcpu_arch_init(struct lcpu *this_lcpu) return ret; } + SYSREG_WRITE64(tpidr_el1, (__uptr)this_lcpu); + return ret; }