Re: [PATCH 2/2] Use relocator framework for multiboot1

2009-08-07 Thread Robert Millan
On Wed, Aug 05, 2009 at 12:20:35PM +0200, Vladimir 'phcoder' Serbinenko wrote: > On Tue, Aug 4, 2009 at 10:56 PM, Robert Millan wrote: > > On Mon, Aug 03, 2009 at 02:10:18PM +0200, Vladimir 'phcoder' Serbinenko > > wrote: > >> +#define GRUB_MULTIBOOT_STACK_SIZE 4096 > >> [...] > >> +#define stack_

Re: [PATCH 2/2] Use relocator framework for multiboot1

2009-08-05 Thread Vladimir 'phcoder' Serbinenko
On Tue, Aug 4, 2009 at 10:56 PM, Robert Millan wrote: > On Mon, Aug 03, 2009 at 02:10:18PM +0200, Vladimir 'phcoder' Serbinenko wrote: >> +#define GRUB_MULTIBOOT_STACK_SIZE 4096 >> [...] >> +#define stack_addr(x)                ((void *) ((x) + code_size + >> cmdline_length + boot_loader_name_leng

Re: [PATCH 2/2] Use relocator framework for multiboot1

2009-08-04 Thread Robert Millan
On Mon, Aug 03, 2009 at 02:10:18PM +0200, Vladimir 'phcoder' Serbinenko wrote: > +#define GRUB_MULTIBOOT_STACK_SIZE 4096 > [...] > +#define stack_addr(x)((void *) ((x) + code_size + > cmdline_length + boot_loader_name_length + sizeof (struct > grub_multiboot_info) + mmap_length +

[PATCH 2/2] Use relocator framework for multiboot1

2009-08-03 Thread Vladimir 'phcoder' Serbinenko
For now modules aren't in relocated buffer because memory management is unable to handle realloc with big size efficiently which may cause module command to fail -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/include/grub/i386