commit | f623571a735f02d3bfd61aa6168c8e02eef9d7de | [log] [tgz] |
---|---|---|
author | Keith Packard <keithp@keithp.com> | Tue Apr 19 17:33:03 2022 -0700 |
committer | Stephanos Ioannidis <root@stephanos.io> | Thu Apr 28 11:09:01 2022 +0900 |
tree | 7c4ff65230507b55a5cd1151384bc3f61a569e85 | |
parent | 8b55af51db34ff712382a3f37ad359f5bb87fa3a [diff] |
riscv: Initialize TP register when starting threads Set TP in exception context so that it gets loaded into the CPU when first running the thread. Set TP for secondary cores to related idle TLS area. Signed-off-by: Keith Packard <keithp@keithp.com>