freebsd-skq/sys/powerpc/aim
Justin Hibbits 0499e9c619 powerpc64: Use medium code model in asm files for TOC references
Summary:
With a sufficiently large TOC, it's possible to index out of range, as
the immediate load instructions only permit 16-bit indices, allowing up
to 64kB range (signed) from the base pointer.  Allow +/- 2GB range, with
the medium code model TOC accesses in asm.

Patch originally by Brandon Bergren.  The issue appears to impact ELFv2
more than ELFv1.

Reviewed by:	luporl
Differential Revision: https://reviews.freebsd.org/D19708
2019-03-29 02:38:30 +00:00
..
aim_machdep.c powerpc: Re-merge isa3 HPT with moea64 native HPT 2019-03-22 22:14:14 +00:00
locore32.S powerpc64: Add a trap stack area 2019-02-04 16:02:03 +00:00
locore64.S powerpc64: Add a trap stack area 2019-02-04 16:02:03 +00:00
locore.S Add a kdb show command to print arbitrary SPRs on PowerPC 2016-08-13 18:46:49 +00:00
mmu_oea64.c [ppc64] prevent infinite loop on icache sync 2019-02-12 11:29:03 +00:00
mmu_oea64.h Final fix for alignment issues with the page table first patched with 2018-05-14 04:00:52 +00:00
mmu_oea.c vm_wait() rework. 2018-02-20 10:13:13 +00:00
moea64_if.m
moea64_native.c powerpc64: Micro-optimize moea64 native pmap tlbie 2019-03-26 02:53:35 +00:00
mp_cpudep.c Add support for the XIVE XICS emulation mode for POWER9 systems 2018-05-20 03:23:17 +00:00
slb.c Move the powerpc64 direct map base address from zero to high memory. This 2018-03-07 17:08:07 +00:00
trap_subr32.S powerpc64: Add a trap stack area 2019-02-04 16:02:03 +00:00
trap_subr64.S powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00