grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] Relocator framework


From: Vladimir 'phcoder' Serbinenko
Subject: Re: [PATCH 1/2] Relocator framework
Date: Mon, 3 Aug 2009 14:39:08 +0200

On Mon, Aug 3, 2009 at 2:06 PM, Vladimir 'phcoder'
Serbinenko<address@hidden> wrote:
> Hello. As discussed on IRC it would be preferable if all loaders use
> flexible technics for loading kernels using relocators as currently
> multiboot and xnu does. Here is a relocator framework based on
> multiboot and xnu relocator. As an advantage it switches from x86-64
> to i386 if necessary. With it and some more patches I was able to load
> mbtest on qemu64 with tianocore
Small update: new function for increasing relocatable space
Can someone test it with situations requiring backward allocator? (dest > src)
A problem which is perhaps currently present is if abs(desc-src) <
RELOCATOR_SIZE then relocator may overwrite itself and fail. A
possible solution is to allocate a bit more space in relocatable
buffer to be able to change src by at most RELOCATOR_SIZE - this will
be enough to set dest=src in these situations and use a "null"
relocator (to be implemented)

>
> --
> Regards
> Vladimir 'phcoder' Serbinenko
>
> Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
>



-- 
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git

Attachment: relocator.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]