[Top][All Lists]
[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
relocator.diff
Description: Text document
- [PATCH 1/2] Relocator framework, Vladimir 'phcoder' Serbinenko, 2009/08/03
- Re: [PATCH 1/2] Relocator framework,
Vladimir 'phcoder' Serbinenko <=
- Re: [PATCH 1/2] Relocator framework, Robert Millan, 2009/08/04
- Re: [PATCH 1/2] Relocator framework, Vladimir 'phcoder' Serbinenko, 2009/08/05
- Re: [PATCH 1/2] Relocator framework, Robert Millan, 2009/08/07
- Re: [PATCH 1/2] Relocator framework, Marco Gerards, 2009/08/07
- Re: [PATCH 1/2] Relocator framework, Vladimir 'phcoder' Serbinenko, 2009/08/07
- Re: [PATCH 1/2] Relocator framework, Pavel Roskin, 2009/08/07
- Re: [PATCH 1/2] Relocator framework, Vladimir 'phcoder' Serbinenko, 2009/08/08