All of lore.kernel.org
 help / color / mirror / Atom feed
From: phcoder <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Move loader.c out of the kernel
Date: Wed, 15 Apr 2009 14:46:03 +0200	[thread overview]
Message-ID: <49E5D70B.5030801@gmail.com> (raw)
In-Reply-To: <49D8CBF7.2000705@gmail.com>

Commited
phcoder wrote:
> On the IRC Yoshinori K. Okuji agreed that this move can be useful in 
> cases like lvm+raid and luks. Any further oppositions?
> phcoder wrote:
>> I was thinking about something more finished like the possibility of 
>> handling multiple preboot and to undo the operations in case of failed 
>> or returned boot. Potentially it could be moved to a separate module 
>> but it results in a reverse dependency and somewhat ugly code
>> Vesa Jääskeläinen wrote:
>>> phcoder wrote:
>>>> This usage case isn't the main target case. If you embed the loader
>>>> (which tend to be quite big) then you already have an overhead from
>>>> loader module. Why are you so concerned with overhead of boot.mod?
>>>> But on the other hand this forces all the people in other cases to have
>>>> boot code in core.img. I want to add preboot hooks and don't want
>>>> increment size of kernel. multiboot.mod currently increases the size by
>>>> around 11KB. And my patch doesn't restrict you from putting loader in
>>>> core.img in any way
>>>
>>> Even if you add the preboot hooks there, it should only cause size
>>> affect in couple of bytes for uncompressed image.
>>>
>>> Like in following "sketch":
>>>
>>> ...
>>>
>>> preboot_handler_address: dd 0
>>>
>>> ...
>>>
>>> cmp [preboot_handler_address], 0
>>>
>>> je no_preboot_handler
>>>
>>> call [preboot_handler_address]
>>>
>>> no_preboot_handler:
>>>
>>>
>>> _______________________________________________
>>> Grub-devel mailing list
>>> Grub-devel@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
> 
> 


-- 

Regards
Vladimir 'phcoder' Serbinenko



      reply	other threads:[~2009-04-15 12:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-22 12:48 Move loader.c out of the kernel phcoder
2009-03-22 12:57 ` Yoshinori K. Okuji
2009-03-22 13:06   ` phcoder
2009-03-22 13:12     ` Yoshinori K. Okuji
2009-03-22 13:30       ` phcoder
2009-03-22 14:01         ` Yoshinori K. Okuji
2009-03-22 14:19           ` phcoder
2009-03-22 14:59             ` Yoshinori K. Okuji
2009-03-22 14:54           ` Robert Millan
2009-03-31  8:56 ` phcoder
2009-04-01 13:52   ` Yoshinori K. Okuji
2009-04-01 14:19     ` Robert Millan
2009-04-01 14:42       ` Yoshinori K. Okuji
2009-04-01 15:12         ` phcoder
2009-04-01 15:21           ` Vesa Jääskeläinen
2009-04-01 15:46             ` phcoder
2009-04-05 15:19               ` phcoder
2009-04-15 12:46                 ` phcoder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49E5D70B.5030801@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.