freebsd-dev/sys/powerpc
Brandon Bergren 3d4217bc0f [PowerPC] Initialize ELFv1 as a secondary sysvec to ELFv2.
In order to enable VDSO timekeeping, it is necessary that there be exactly
one primary FreeBSD sysvec for each of the host and (optionally) compat32.

So, switch ELFv1 to being a secondary sysvec of ELFv2, so it does not get
double-allocated in the shared page.

Since secondary sysvecs use the same sigcode allocation as the primary,
define both to use the main sigcode64, and adjust the sv_sigcode_base on
ELFv2 after initialization to point to the correct offset.

This has the desirable side effect of avoiding having a separate copy of
the signal trampoline in the shared page. Our sigcode64 was already written
to take advantage of trampoline sharing, it was just not being allocated
that way until now.

Submitted by:	jhibbits
Sponsored by:	Tag1 Consulting, Inc.
2020-09-07 20:25:54 +00:00
..
aim Include the psind in data returned by mincore(2). 2020-09-02 18:16:43 +00:00
amigaone powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
booke powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
conf Include TMPFS in all the GENERIC kernel configs 2020-07-24 08:40:04 +00:00
cpufreq powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
fpu powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
include Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. 2020-09-02 18:12:47 +00:00
mambo powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mikrotik powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mpc85xx powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
ofw powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powermac powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powernv powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powerpc [PowerPC] Initialize ELFv1 as a secondary sysvec to ELFv2. 2020-09-07 20:25:54 +00:00
ps3 powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
pseries powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
psim powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00