@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
parameter passing
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:parameter passing
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
BlueillusionOS iso image
Re:parameter passing
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...
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...
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact: