Page 2 of 2

Re:parameter passing

Posted: Tue Apr 13, 2004 7:46 am
by distantvoices
@pype: maybe 'cat ozgunh.msg|punctuation_placer>/dev/brain' helps more *biggrin*

@ozgunh: It is an OT remark: Could you be so kind and provide us some more than only basic punctuation?

And try to keep the sentences short. It is way hard to follow a sentence with three or four subthoughts woven into it.

/dev/brain is genious at decoding most written stuff povided the decoding software is present, but at least some common minimum shall be present to *ease* reading :-))

stay safe

Re:parameter passing

Posted: Tue Apr 13, 2004 9:17 am
by Ozguxxx
Beyond Infinity: I did not understand what you are telling Pype about what I am doing ugly, or whatever. I mean I think I could not make myself clear enough.

Pype:
Previously I assumed that cpu reloaded cr3 while handling an interrupt that occured in user realm. If cpu loaded cr3 on handling interrupt, since kernel and user spaces are separated, I could not handle parameters of a system call, right? But there is no way that cpu can load cr3 on a priviledge transition without a task switch...

Thanks to my stupidity, this afternoon I realized that cpu does not load cr3 on an interrupt with priviledge transition. So while handling interrupts with priviledge change -i.e. a system call- cpu just uses cr3 of user to do page translation, so that if I map kernel into user space then I can handle system calls just as you are telling, so in fact are talking about same scenario.

As a result, this whole debate was nonsense, I was just talking rubbish... os stuff is not good for brain if you are trying to get school projects right...

Re:parameter passing

Posted: Tue Apr 13, 2004 9:32 am
by Pype.Clicker
makes more sense this way ...