All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vesa Jääskeläinen" <chaac@nic.fi>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Replacing the legacy "map" command
Date: Sun, 01 Jun 2008 10:18:18 +0300	[thread overview]
Message-ID: <48424D3A.7090109@nic.fi> (raw)
In-Reply-To: <bda1cfca0805311615p6870b2fkd2d77682a7a8c852@mail.gmail.com>

Javier Martín wrote:
> Bit a bit, progress continues: I have some crappy UI semi-ready, to
> improve on later, and I'm now battling with the INT13h handler to
> perform the actual mapping - had to rescue the big old "Architecture
> Programmer's Manual" in order to do PIC code without the amd64
> rip-relative addressing. However, I haven't yet found a way to install
> some kind of "hook" so that it will be called when the boot command is
> issued, preferable just before calling grub_X_real_boot. However, I
> didn't go to great lengths to find it... Anyone here willing to
> enlighten me or should I find my own way through the darkness (again
> ¬¬)? I'd like to change/add the smallest amount of code possible, but
> for the sake of modularity I prefer a pre-boot hook system rather than
> a one-time solution.

Hi Javier,

There is no existing hook for this kind of stuff. So why not make one 
pointer to boot area where you can register one?. Code would then check 
if it is non-zero and call it before starting OS. Pointer would reside 
on same asm module as low level boot code is to keep it close by and 
helper on C-level to modify that pointer. You may want to support also 
multiple callbacks some way.

Thanks,
Vesa Jääskeläinen



  reply	other threads:[~2008-06-01  7:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-27  1:36 Replacing the legacy "map" command Javier Martín
2008-05-27 15:59 ` Pavel Roskin
2008-05-27 16:15   ` Urja Rannikko
2008-05-28 14:24   ` Robert Millan
2008-05-30  0:55     ` Pavel Roskin
2008-05-30  2:13       ` Javier Martín
2008-05-30  3:48         ` Pavel Roskin
2008-05-30  7:19           ` Robert Millan
     [not found]         ` <-5961521231976305315@unknownmsgid>
2008-05-31 23:15           ` Javier Martín
2008-06-01  7:18             ` Vesa Jääskeläinen [this message]
2008-05-27 16:04 ` Vesa Jääskeläinen
2008-05-27 16:18   ` Urja Rannikko
     [not found] <483c317b.0c1e640a.2bd9.7c7eSMTPIN_ADDED@mx.google.com>
2008-05-27 21:47 ` Javier Martín
2008-05-28  0:19   ` Replacing the legacy 'map' command Tomáš Ebenlendr
  -- strict thread matches above, loose matches on Subject: below --
2008-05-28 13:17 Javier Martín
2008-05-28 16:23 ` Vesa Jääskeläinen

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=48424D3A.7090109@nic.fi \
    --to=chaac@nic.fi \
    --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.