[OpenBIOS] [PATCH] arch/ppc/qemu: Moved exception handlers from beginning of RAM

Laurent Vivier laurent at vivier.eu
Wed May 28 10:51:20 CEST 2014


> Le 28 mai 2014 à 10:02, Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk> a
> écrit :
>
>
> On 28/05/14 00:59, Alexander Graf wrote:
>
> > On 26.05.14 23:24, BALATON Zoltan wrote:
> >> Do not put exception handler routines between 0x00-0xff as some OSes
> >> use this area for their own purposes and can corrupt them. (In
> >> particular MorphOS writes to 0x80 during boot). This patch frees up
> >> this area by moving the routines that were there higher.
> >>
> >> Signed-off-by: BALATON Zoltan <balaton at eik.bme.hu>
> >
> > So do you happen to have any idea why the code was written the way it
> > was written? I don't feel very confident that I grasp why the original
> > author did it that way.
>
> +1.

I think arch/ppc/qemu/start.S is coming from Mac-On-Linux. The MOL module is
patching the host exception table to manage the virtual CPU. So I think this is
the reason why it is written as it is.
But Alexander I think you know better than me how MOL is working.

Regards,
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.openfirmware.info/pipermail/openbios/attachments/20140528/45ff6ff1/attachment.html>


More information about the OpenBIOS mailing list