Page 1 of 1

what's best?

Posted: Tue Apr 23, 2002 11:00 pm
by blito
hello out there :-)
i'm writing a modular kernel, the problem is how to make the modules comunicate (a function in a
module call another function in another module).
the options are :
1- define a segment descriptor in the gdt or ldt.
this segment contains an array of function pointers.
2 - define call gates in the gdt or ldt.
3 - define interrupt gates in the idt
have you any other idea.
or some link's that can help me.

RE:what's best?

Posted: Wed Apr 24, 2002 11:00 pm
by K.J.
>On 2002-04-24 10:35:12, blito wrote:
>hello out there :-)
>i'm writing a modular kernel, the problem is how to make the modules comunicate (a function in a
>module call another function in another module).
>the options are :
>1- define a segment descriptor in the gdt or ldt.
>this segment contains an array of function pointers.
>2 - define call gates in the gdt or ldt.
>3 - define interrupt gates in the idt
>have you any other idea.
>or some link's that can help me.

I'd go with interrupt gates. Have them do IPC(inter process communication).

K.J.

RE:what's best?

Posted: Wed Apr 24, 2002 11:00 pm
by Chase
>On 2002-04-25 11:40:56, K.J. wrote:
>>On 2002-04-24 10:35:12, blito wrote:
>>hello out there :-)
>>i'm writing a modular kernel, the problem is how to make the modules comunicate (a function in a
>>module call another function in another module).
>>the options are :
>>1- define a segment descriptor in the gdt or ldt.
>>this segment contains an array of function pointers.
>>2 - define call gates in the gdt or ldt.
>>3 - define interrupt gates in the idt
>>have you any other idea.
>>or some link's that can help me.
>
>I'd go with interrupt gates. Have them do IPC(inter process communication).
>
>K.J.

I would go with a interrupt modular rather than and interrupt, it will allow to occupy the irq's and i/o allot better

RE:what's best?

Posted: Thu Apr 25, 2002 11:00 pm
by blito
>On 2002-04-25 14:53:41, Chase wrote:
>>On 2002-04-25 11:40:56, K.J. wrote:
>>>On 2002-04-24 10:35:12, blito wrote:
>>>hello out there :-)
>>>i'm writing a modular kernel, the problem is how to make the modules comunicate (a function in a
>>>module call another function in another module).
>>>the options are :
>>>1- define a segment descriptor in the gdt or ldt.
>>>this segment contains an array of function pointers.
>>>2 - define call gates in the gdt or ldt.
>>>3 - define interrupt gates in the idt
>>>have you any other idea.
>>>or some link's that can help me.
>>
>>I'd go with interrupt gates. Have them do IPC(inter process communication).
>>
>>K.J.
>
>I would go with a interrupt modular rather than and interrupt, it will allow to occupy the irq's and i/o allot better

Thank's guys.
But i don't know how implement IPC (that's my problem).
and i don't know what do you mean with interrupt modular.
i'm new in this guys sorry.
could you explain it to me, please
thank's

RE:what's best?

Posted: Mon Apr 29, 2002 11:00 pm
by Guest
>On 2002-04-26 13:40:39, blito wrote:
>>On 2002-04-25 14:53:41, Chase wrote:
>>>On 2002-04-25 11:40:56, K.J. wrote:
>>>>On 2002-04-24 10:35:12, blito wrote:
[...]
>>>I'd go with interrupt gates. Have them do IPC(inter process communication).
>>I would go with a interrupt modular rather than and interrupt, it will allow to occupy the irq's and i/o allot better
>Thank's guys.

I'd say that interrupts are the wrong solution for a modular kernel, assuming
your whole kernel shares one address space.
Interrupts are always slower than direct near calls.

RE:what's best?

Posted: Mon Apr 29, 2002 11:00 pm
by Tim Robinson
>On 2002-04-26 13:40:39, blito wrote:
>>On 2002-04-25 14:53:41, Chase wrote:
>>>On 2002-04-25 11:40:56, K.J. wrote:
>>>>On 2002-04-24 10:35:12, blito wrote:
[...]
>>>I'd go with interrupt gates. Have them do IPC(inter process communication).
>>I would go with a interrupt modular rather than and interrupt, it will allow to occupy the irq's and i/o allot better
>Thank's guys.

I'd say that interrupts are the wrong solution for a modular kernel, assuming
your whole kernel shares one address space.
Interrupts are always slower than direct near calls.