Re: [RFC] general-usage real-mode loader

2008-09-07 Thread Robert Millan
On Sun, Sep 07, 2008 at 02:22:57PM +0200, phcoder wrote: > 4) DOS/Win9x and freedos. Especially the second one. They use extended > chainloader functionality found in grub4dos. With rmkern loading freedos > kernel should be really easy. Since FreeDOS is free software, we could fix it to use Multib

Re: [RFC] general-usage real-mode loader

2008-09-07 Thread phcoder
Vesa Jääskeläinen wrote: > It is true that code is withing grub's i386 kernel. But other than that > same mechanism can be used to load kernel. After all kernel will take > over the computer after it has started and it is not returning back > anymore (eg. stack is not anymore there to be restored)

Re: [RFC] general-usage real-mode loader

2008-09-07 Thread Vesa Jääskeläinen
phcoder wrote: > Well sometimes it's similar but most of the time isn't because your code > runs a code in RM but with hope returning back to PM and normal grub > operation. And it also loads to quite fixed place. My code would load a > kernel, that means that it will not return and so code can be

Re: [RFC] general-usage real-mode loader

2008-09-07 Thread phcoder
Well sometimes it's similar but most of the time isn't because your code runs a code in RM but with hope returning back to PM and normal grub operation. And it also loads to quite fixed place. My code would load a kernel, that means that it will not return and so code can be loaded to any place not

Re: [RFC] general-usage real-mode loader

2008-09-07 Thread Vesa Jääskeläinen
phcoder wrote: > I checked the archive found the thread "Idea: Move kernel to upper > memory". But what is discussed there is much more general about general > memory layout. Here I wanted to speak about just one function. > Vladimir 'phcoder' Serbinenko Try: [PATCH] Move assembly code out of the

Re: [RFC] general-usage real-mode loader

2008-09-06 Thread phcoder
I checked the archive found the thread "Idea: Move kernel to upper memory". But what is discussed there is much more general about general memory layout. Here I wanted to speak about just one function. Vladimir 'phcoder' Serbinenko Robert Millan wrote: > On Fri, Sep 05, 2008 at 07:27:51PM +0200, ph

Re: [RFC] general-usage real-mode loader

2008-09-06 Thread Robert Millan
On Fri, Sep 05, 2008 at 07:27:51PM +0200, phcoder wrote: > 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 wo

Re: [RFC] general-usage real-mode loader

2008-09-05 Thread phcoder
BTW. This helper would allow easy addition of many different kernels (freedos, haiku, ntldr, ...) Vladimir 'phcoder' Serbinenko phcoder wrote: > 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 > launch