]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix problems booting large kernels on alphas. The symptom is that the kernel
authorgallatin <gallatin@FreeBSD.org>
Mon, 16 Oct 2000 20:15:43 +0000 (20:15 +0000)
committergallatin <gallatin@FreeBSD.org>
Mon, 16 Oct 2000 20:15:43 +0000 (20:15 +0000)
commit3ef73aae7e921343491d8ec3686cd465e190652f
tree9d487ff97ed87cf5172d395fe738f8690cd30bb9
parentb0c15b2eaedc92c77692f59f2977f021dd839d45
Fix problems booting large kernels on alphas.   The symptom is that the kernel
loads, prints the copyright, and either hangs or locks solid.  The
PC tends to be in the data segment and the RA is in XentMM

Doug really came up with the fix, I'm just the monkey typing.  Doug says:
The alpha can only support 64k of globals with $gp pointing at
base+32k so that the code can use 16bit signed offsets from $gp to
access it. ....  it is possible to have multiple .got subsections
and the linker handles this with the relocations for 'ldgp' pseudo
instructions.  [Without this patch] the code in exception.s has been
linked  to use a different gp from locore.s (where pal_kgp is set).

Reviewed by: dfr
sys/alpha/alpha/exception.s
sys/alpha/include/asm.h