John Baldwin
822d2d6ac9
Various fixes to TLS for MIPS.
...
- Clear the current thread's TLS pointer on exec. Previously the TLS
pointer (and register) remain unchanged.
- Explicitly clear the TLS pointer when new threads are created.
- Make md_tls_tcb_offset per-process instead of per-thread.
The layout of the TLS and TCB are identical for all threads in a
process, it is only the TLS pointer values themselves that vary by
thread. This also makes setting md_tls_tcb_offset in
cpu_set_user_tls() redundant with the setting in exec_setregs(), so
only set it in exec_setregs().
Submitted by: Alfredo Mazzinghi (1)
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24957
2020-06-12 21:21:18 +00:00
..
2017-11-20 19:43:44 +00:00
2019-12-04 16:56:11 +00:00
2017-11-27 15:07:26 +00:00
2017-11-20 19:43:44 +00:00
2017-11-27 15:07:26 +00:00
2018-02-23 04:04:25 +00:00
2018-01-31 17:36:39 +00:00
2018-01-31 17:36:39 +00:00
2020-01-02 23:20:37 +00:00
2017-11-27 15:07:26 +00:00
2017-11-27 15:07:26 +00:00
2017-11-27 15:07:26 +00:00
2017-11-27 15:07:26 +00:00
2017-11-27 15:07:26 +00:00
2017-11-27 15:07:26 +00:00
2018-08-01 18:35:17 +00:00
2017-11-30 15:48:35 +00:00
2018-07-06 02:06:03 +00:00
2018-11-05 21:34:17 +00:00
2020-04-17 18:24:47 +00:00
2018-08-01 18:35:17 +00:00
2018-04-16 13:52:23 +00:00
2019-12-04 16:56:11 +00:00
2017-11-20 19:43:44 +00:00
2017-11-20 19:43:44 +00:00
2017-11-27 15:07:26 +00:00
2017-11-20 19:43:44 +00:00
2017-11-20 19:43:44 +00:00
2017-11-27 15:07:26 +00:00
2018-03-06 14:28:37 +00:00
2018-04-12 17:43:19 +00:00
2017-11-20 19:43:44 +00:00
2017-11-20 19:43:44 +00:00
2017-11-27 15:07:26 +00:00
2017-11-21 23:15:20 +00:00
2017-11-27 15:07:26 +00:00
2017-11-20 19:43:44 +00:00
2020-05-20 21:16:54 +00:00
2017-11-27 15:07:26 +00:00
2017-11-27 15:07:26 +00:00
2017-11-27 15:07:26 +00:00
2017-11-20 19:43:44 +00:00
2017-11-27 15:07:26 +00:00
2017-11-27 15:07:26 +00:00
2018-03-12 22:10:06 +00:00
2017-11-20 19:43:44 +00:00
2019-08-29 07:25:27 +00:00
2020-02-14 20:25:04 +00:00
2019-12-10 18:14:50 +00:00
2020-06-12 21:21:18 +00:00
2019-03-16 11:44:33 +00:00
2019-11-21 18:49:54 +00:00
2017-11-27 15:07:26 +00:00
2017-11-20 19:43:44 +00:00
2018-04-06 17:35:35 +00:00
2017-11-20 19:43:44 +00:00
2019-08-22 21:43:21 +00:00
2017-11-27 15:07:26 +00:00
2017-11-27 15:07:26 +00:00
2017-11-30 15:48:35 +00:00
2017-11-27 15:07:26 +00:00
2018-04-06 17:35:35 +00:00
2017-11-20 19:43:44 +00:00
2018-02-12 14:48:05 +00:00
2017-11-20 19:43:44 +00:00
2017-11-27 15:07:26 +00:00
2018-04-06 17:35:35 +00:00
2017-11-20 19:43:44 +00:00
2018-04-06 17:35:35 +00:00
2017-11-27 15:07:26 +00:00
2018-08-01 18:35:17 +00:00
2018-01-19 17:46:31 +00:00