freebsd-dev/sys/powerpc/ofw
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
..
ofw_initrd.c ofw: Load initrd file 2018-07-24 16:52:52 +00:00
ofw_machdep.c powerpc: Blacklist the top 64kB range of the lower 4GB PA space 2018-09-25 02:34:28 +00:00
ofw_pcib_pci.c Sprinkle EARLY_DRIVER_MODULE around the tree 2018-12-04 04:55:49 +00:00
ofw_pcibus.c Sprinkle EARLY_DRIVER_MODULE around the tree 2018-12-04 04:55:49 +00:00
ofw_pcibus.h sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
ofw_real.c powerpc/ofw: Fix malloc inside lock 2018-04-08 16:43:56 +00:00
ofw_syscons.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
ofw_syscons.h sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
ofwcall32.S
ofwcall64.S powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
openpic_ofw.c powerpc: Bind IRQs to only one interrupt on QorIQ SoCs 2019-02-06 03:52:14 +00:00
rtas.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00