opnsense-src/sys/mips/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
..
autoconf.c
bcopy.S Make memmove an alias for memcpy 2018-05-24 21:11:24 +00:00
bus_space_generic.c Remove support for the now very old SiByte MIPS platform. It's not 2018-12-19 22:54:03 +00:00
busdma_machdep.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
cache.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
cache_mipsNN.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
cpu.c Print CPU informtion later in boot. 2020-05-20 21:16:54 +00:00
db_disasm.c
db_interface.c Remove mips MD atomic_load_64 and atomic_store_64. 2017-12-22 23:27:03 +00:00
db_trace.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
dump_machdep.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
elf_machdep.c [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic(). 2020-03-18 02:58:18 +00:00
elf_trampoline.c Delete unneeded #include <sys/inflate.h> from sys/mips. 2019-05-23 05:17:18 +00:00
exception.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
fp.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
freebsd32_machdep.c Merge freebsd32_exec_setregs() into exec_setregs() on MIPS. 2020-05-20 19:51:39 +00:00
gdb_machdep.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
genassym.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
in_cksum.c
inckern.S
intr_machdep.c follow-up to r336635, update TAILQ to CK_SLIST for ie_handlers 2018-07-23 15:36:55 +00:00
libkern_machdep.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
locore.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
machdep.c Print CPU informtion later in boot. 2020-05-20 21:16:54 +00:00
mem.c
minidump_machdep.c Display the approximate space needed when a minidump fails due to lack 2019-06-30 03:14:04 +00:00
mips_pic.c
mp_machdep.c Eliminate kmem_malloc()'s unused arena parameter. (The arena parameter 2018-08-21 16:43:46 +00:00
mpboot.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
nexus.c
octeon_cop2.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_cop2_swtch.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
ofw_machdep.c
pm_machdep.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
pmap.c Fix a race in pmap_emulate_modified(). 2020-04-24 21:21:49 +00:00
ptrace_machdep.c Regularize my copyright notice 2019-12-04 16:56:11 +00:00
sc_machdep.c sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
stack_machdep.c Reimplement stack capture of running threads on i386 and amd64. 2020-01-31 15:43:33 +00:00
stdatomic.c In __sync_bool_compare_and_swap(), return true if the returned value is the 2018-03-23 17:25:19 +00:00
support.S copystr(9): Move to deprecate (attempt #2) 2020-05-25 16:40:48 +00:00
swtch.S Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
sys_machdep.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
tick.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
tlb.c [mips] remove check that is always false (unsinged < 0) 2019-01-25 19:58:56 +00:00
trap.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
uio_machdep.c
uma_machdep.c vm_wait() rework. 2018-02-20 10:13:13 +00:00
vm_machdep.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00