All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] general-usage real-mode loader
@ 2008-09-05 17:27 phcoder
  2008-09-05 17:41 ` phcoder
  2008-09-06 11:20 ` Robert Millan
  0 siblings, 2 replies; 9+ messages in thread
From: phcoder @ 2008-09-05 17:27 UTC (permalink / raw)
  To: The development of GRUB 2

Hello. A long time ago I written a C+asm code which loads any given code
at any real-mode location, then puts machine in correct state and then
launches the kernel. I can modify this code to suit GRUB2. Then loading
realmode kernel would work like this:
1) copy helper asm to last kb of lower memory
2) jump to the helper
3) helper copies from upper memory the kernel
4) turn A10 bug back on if necessary
5) go to RM
6) prepare registers
7) jump to the kernel

This protocol is very flexible and as such could be used by all loaders
which load kernel in realmode or even in PM (skip step 5, do steps 6-7
in 32-bit mode) except for changing page tables. Such a helper can be
easily implemented as module and so help us removing asm-parts of
loaders from the kernel. If I recieve greenlight for it, I implement it.
Vladimir 'phcoder' Serbinenko



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-09-07 15:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 17:27 [RFC] general-usage real-mode loader phcoder
2008-09-05 17:41 ` phcoder
2008-09-06 11:20 ` Robert Millan
2008-09-07  0:25   ` phcoder
2008-09-07  7:25     ` Vesa Jääskeläinen
2008-09-07 11:09       ` phcoder
2008-09-07 11:38         ` Vesa Jääskeläinen
2008-09-07 12:22           ` phcoder
2008-09-07 15:55             ` Robert Millan

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.