grub-devel
[Top][All Lists]
Advanced

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

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


From: Vladimir 'phcoder' Serbinenko
Subject: Re: [PATCH 2/2] Use relocator framework for multiboot1
Date: Wed, 5 Aug 2009 12:20:35 +0200

On Tue, Aug 4, 2009 at 10:56 PM, Robert Millan<address@hidden> 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_length + sizeof (struct 
>> grub_multiboot_info) + mmap_length + GRUB_MULTIBOOT_STACK_SIZE))
>
> What's this stack used for?
Only to set %esp to something that can be used by OS for small things
before they setup their own stack. By multiboot specification OS is
required to setup its stack itself but I suppose many OSes may have
done a mistake of having few push'es before real stack setup
>
> --
> Robert Millan
>
>  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
>  how) you may access your data; but nobody's threatening your freedom: we
>  still allow you to remove your data and not access it at all."
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>



-- 
Regards
Vladimir 'phcoder' Serbinenko

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




reply via email to

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