Re: System calls triggered by page faults
Posted: Tue Jul 16, 2013 1:55 pm
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.Combuster wrote:And then what? Add an additional argument to every possible function in the app so you can pass it through?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.