Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MYdbw-0005qR-Oo for mharc-grub-devel@gnu.org; Wed, 05 Aug 2009 06:20:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYdbt-0005q3-VK for grub-devel@gnu.org; Wed, 05 Aug 2009 06:20:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYdbp-0005pk-Eh for grub-devel@gnu.org; Wed, 05 Aug 2009 06:20:41 -0400 Received: from [199.232.76.173] (port=41530 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYdbp-0005ph-7y for grub-devel@gnu.org; Wed, 05 Aug 2009 06:20:37 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:62090) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYdbo-0002cj-UC for grub-devel@gnu.org; Wed, 05 Aug 2009 06:20:37 -0400 Received: by bwz22 with SMTP id 22so4577133bwz.42 for ; Wed, 05 Aug 2009 03:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=aarjkFZakllGy2tobLgachN6Is2no0bZW0rzzN2iWH0=; b=lDQHVwQfXVbZVdLnypRj+69UsilTSPidNffbYaXSxDlmjdWnrJ+7i/XXvPM+tok7un yka9SHs675Ha9POAaGQy4i2bGOxSwv6+L8mHa/TTmOKBuKlf0jHWtmF++KLFap/5LdKR XIq8IvA7qfcTZJE4ka7bCW9S37jwM7pTXR0QA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=FaSBkryVfyiXgmS1YIWHrcwXSwP5TOxIDFHMvn6VwkMAEtKgWPCzIeB0cbr2y0Kz84 0s0aS0XPpf57vwk3Gz686z+YLZ2T2guws1vjKtqqRtgd+EJe4OEZg5I/W1rkTB0MF2qq SU6sKWiwiP+riR9oSs8Ep3XPGa0fyYj0BUpg8= MIME-Version: 1.0 Received: by 10.204.119.71 with SMTP id y7mr769918bkq.24.1249467635958; Wed, 05 Aug 2009 03:20:35 -0700 (PDT) In-Reply-To: <20090804205615.GF15811@thorin> References: <20090804205615.GF15811@thorin> Date: Wed, 5 Aug 2009 12:20:35 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH 2/2] Use relocator framework for multiboot1 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 10:20:42 -0000 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 w= rote: >> +#define GRUB_MULTIBOOT_STACK_SIZE 4096 >> [...] >> +#define stack_addr(x) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0((void *) ((x) + c= ode_size + cmdline_length + boot_loader_name_length + sizeof (struct grub_m= ultiboot_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 > > =A0The DRM opt-in fallacy: "Your data belongs to us. We will decide when = (and > =A0how) you may access your data; but nobody's threatening your freedom: = we > =A0still allow you to remove your data and not access it at all." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git