xiaoxiang781216 commented on code in PR #13486:
URL: https://github.com/apache/nuttx/pull/13486#discussion_r1762232235
##########
arch/arm64/src/common/arm64_arch.h:
##########
@@ -466,7 +465,7 @@ static inline int arch_get_exception_depth(void)
static inline uint64_t arch_get_current_tcb(void)
{
- return read_sysreg(tpidr_el1);
+ return read_sysreg(tpidr_el0);
Review Comment:
@pussuw kernel space use tpidr_el1 here:
https://github.com/apache/nuttx/pull/13486/files#diff-a696b8576fe26629d886f8b4d2d3224143dc83018435ec1787300b2ba9fa6b73R404
tpidr_el0 will be used as userspace tls later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]