freebsd-dev/sys/mips
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
..
atheros Print CPU informtion later in boot. 2020-05-20 21:16:54 +00:00
beri beri: correct kernel printf typo 2020-02-05 19:15:36 +00:00
broadcom Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
cavium Add some default cases for unreachable code to silence compiler warnings. 2020-06-10 00:09:31 +00:00
conf Add 'gpio' since mmc now requires gpio_if.h. 2020-04-16 20:45:54 +00:00
include Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
ingenic Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
malta Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
mediatek Print CPU informtion later in boot. 2020-05-20 21:16:54 +00:00
mips Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
nlm Add some default cases for unreachable code to silence compiler warnings. 2020-06-10 00:09:31 +00:00