freebsd-dev/sys/powerpc
Brandon Bergren ee628685e8 D23057: [PowerPC] Fix offset calculations in bridge mode
In rS354701, I replaced text relocations with offsets from &generictrap.

Unfortunately, the magic variable I was using doesn't actually mean the
address of &generictrap, in bridge mode it actually means &generictrap64.

So, for bridge mode to work, it is necessary to differentiate between
"where do we need to branch to to handle a trap" and "where is &generictrap
for purposes of doing relative math".

Introduce a new TRAP_ENTRY and use it instead of TRAP_GENTRAP for doing
actual calls to the generic trap handler.

Reported by:	Mark Millard <marklmi@yahoo.com>
Reviewed by:	jhibbits
Sponsored by:	Tag1 Consulting, Inc.
Differential Revision:	https://reviews.freebsd.org/D23057
2020-01-18 04:12:41 +00:00
..
aim D23057: [PowerPC] Fix offset calculations in bridge mode 2020-01-18 04:12:41 +00:00
amigaone powerpc: Add AmigaOne platform, a subclass of MPC85xx 2019-10-16 00:38:50 +00:00
booke [PowerPC] Fix Book-E direct map for >=16G ram on e5500 2020-01-18 01:22:54 +00:00
conf [PowerPC64] Enable virtio drivers 2020-01-16 11:33:15 +00:00
cpufreq powerpc: Fix cpufreq statement scoping 2019-03-08 03:59:53 +00:00
fpu powerpc: Apply r178139 from sparc64 to powerpc's fpu_sqrt 2019-04-03 03:54:30 +00:00
include D23057: [PowerPC] Fix offset calculations in bridge mode 2020-01-18 04:12:41 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx powerpc/mpc85xx: Partially revert r356640 2020-01-13 23:09:00 +00:00
ofw powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
powermac Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
powernv powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
powerpc Add a 'SINGLETON' directive to kobj interface definition 2020-01-18 02:39:38 +00:00
ps3 Convert to if_foreach_llmaddr() KPI. 2019-10-21 18:13:33 +00:00
pseries Enable use of ofwcons for early debug 2019-12-09 13:40:23 +00:00
psim Remove more needless <sys/tty.h> includes 2019-12-01 20:43:37 +00:00