Subject: RE: Do LKMs work *at*all* on powerpc platforms?
To: None <greg@evertz.com>
From: Wolfgang Solfrank <ws@tools.de>
List: port-macppc
Date: 08/08/2000 16:43:58
Hi,

> The calling convention is identical.  The normal function call mechanism
> uses a relative branch instruction which has a 26 bit offset with the two
> LSBs forced to zero, hence you can only jump forwards or backwards up to 16
> MB (which leads to people saying that programs under 32 MB are not affected,
> which is not precisely correct).

Well, one might argue about the "precisely correct", but with a 26 bit offset
(that the 2 LSBs are forced to zero doesn't matter, since the PC must always
be word aligned) the PowerPC can reach a range of 32 MB below and 32 MB above
the current address.

Ciao,
Wolfgang
-- 
ws@TooLs.DE     Wolfgang Solfrank, TooLs GmbH 	+49-228-985800