System calls triggered by page faults

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.
User avatar
skeen
Member
Member
Posts: 59
Joined: Tue Sep 27, 2011 6:45 am
Location: Denmark

Re: System calls triggered by page faults

Post by skeen »

Combuster wrote:
skeen wrote:Assuming you get the first one, when creating a process, it's just a matter of implementing the allocation of a sys call page-fault address as a part of the create thread method, I guess.
And then what? Add an additional argument to every possible function in the app so you can pass it through?
I was more thinking about adding it to a process wide pool of sys call addresses, and have the c lib use one of these whenever a sys call is needed. This pool will obviously need concurrent protection, such that each sys call address will only be used for one sys call at a time.
// Skeen
// Developing a yet unnamed microkernel in C++14.
Post Reply