virtual memory mapping algorithm
Posted: Wed Aug 31, 2016 11:17 am
Hi.
I think I have now pretty good understanding on how paging works (including reverse directory mapping ).
I'm now designing how the mapping algorithm should be.
I've got several questions I'm trying to answer before I start implementing.
1. Is there any guidelines to the mapping page function ?
Should consecutive calls to the mapping page function result in linear address mapping ? (next call to function will map: last mapping + PAGE_SIZE).
Is there any logic to not doing so ?
2. Is there any requirement to give API for mapping into a specific virtual address ?
Will glad to hear your thoughts regarding this.
Thanks !
Ramon.
I think I have now pretty good understanding on how paging works (including reverse directory mapping ).
I'm now designing how the mapping algorithm should be.
I've got several questions I'm trying to answer before I start implementing.
1. Is there any guidelines to the mapping page function ?
Should consecutive calls to the mapping page function result in linear address mapping ? (next call to function will map: last mapping + PAGE_SIZE).
Is there any logic to not doing so ?
2. Is there any requirement to give API for mapping into a specific virtual address ?
Will glad to hear your thoughts regarding this.
Thanks !
Ramon.