grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Move assembly code out of the kernel


From: Bean
Subject: Re: [PATCH] Move assembly code out of the kernel
Date: Mon, 18 Aug 2008 00:55:59 +0800

On Sun, Aug 17, 2008 at 7:31 PM, Vesa Jääskeläinen <address@hidden> wrote:
> address@hidden wrote:
>> I have made generic function that does basically the same thing for bios
>> service 0x10 (video). In that modification you prepare registers
>> structure that will be configured during real mode switching. I am yet
>> to commit it for review, but I think it would be more generic way to do
>> this. When I come back from my holiday I will commit the code for review.
>>
>> So please wait a bit before committing this :)

Hi,

I'm thinking perhaps we can make it more generic and support multiple
INT in one function. One way to do this is not use INT, but retrieve
the address from IVT and do a far call. On return, pop the flag on
stack. This would also make it easily to support far call, In that
case, we just don't pop the flag.

I also notice that you do the protected/real mode switch in
grub_bioscall_int10h, why not use the prot_to_real and real_to_prot ?
If you need to keep the value of %eax, you can store it in a structure
and pass it using other register like %ecx.

-- 
Bean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]