Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: gcc48, drmkms issues with i386
On Mon, Apr 14, 2014 at 11:45:27PM +0900, Masao Uebayashi wrote:
> On Thu, Apr 10, 2014 at 3:40 AM, David Laight <david%l8s.co.uk@localhost>
> wrote:
> > On Wed, Apr 09, 2014 at 09:10:42AM -0500, John D. Baker wrote:
> >> On Wed, 9 Apr 2014, John D. Baker wrote:
> >>
> >> > disk, the last part of the display actually looked like:
> >> >
> >> > prot_to_real: can't return to 0001296DFn: Diskn
...
> > All the calls to 'prot_to_real' have to reside in the first 64k of
> > the code area.
> > The code them bombs out back to the outer loader.
>
> s/prot_to_real/real_to_prot/
Doesn't matter, they always appear as a pair.
> http://nxr.netbsd.org/xref/src/sys/arch/i386/stand/boot/Makefile.boot#131
>
> This is quite a hack...
And one I'm proud of :-)
An alternative would be to put all the functions that call prot_to_real
into a separate code section, and then arrange for that to get placed
before the normal .code section.
Trouble is, that probably requires a linker script.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index