]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make 64-bit AIM trap handlers relocatable by changing all absolute branch
authornwhitehorn <nwhitehorn@FreeBSD.org>
Wed, 21 Jan 2015 19:07:45 +0000 (19:07 +0000)
committernwhitehorn <nwhitehorn@FreeBSD.org>
Wed, 21 Jan 2015 19:07:45 +0000 (19:07 +0000)
commitcfd22197a35711b1807a4d462e503b6c92899204
tree0ccc9f025462a7fc7867078d59eded0a022531f0
parentb56314b5da7669b2c2e1b0b0baf5e294a5e35eb4
Make 64-bit AIM trap handlers relocatable by changing all absolute branch
instructions to call through pointers instead. In general, these are set
implicitly through relocation processing. One has to be set explicitly in
machdep.c, however, to fit one handler in the tiny (8 instruction) space
available.

Reviewed by: andreast
Differential revision: D1554
Tested on: UP and SMP G5, Cell, POWER5+
sys/powerpc/aim/machdep.c
sys/powerpc/aim/trap_subr64.S
sys/powerpc/include/trap.h