parameter passing

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:parameter passing

Post 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
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
Ozguxxx

Re:parameter passing

Post 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...
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:parameter passing

Post by Pype.Clicker »

makes more sense this way ...
Post Reply