Changeset 432 for trunk/hal/generic
- Timestamp:
- Feb 14, 2018, 3:39:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_gpt.h
r408 r432 214 214 215 215 /**************************************************************************************** 216 * This function atomically flip the COW flag andWRITABLE flag for all PTEs216 * This function atomically set the COW flag and reset the WRITABLE flag for all PTEs 217 217 * of a remote GPT identified by the <gpt_xp>, <vpn_base>, and <vpn_size arguments. 218 * - it set COW and reset WRITABLE when <set_cow> argument is true and PTE is WRITABLE.219 * - it set WRITABLE and reset COW when <set_cow> is false and PTE is COW.220 218 * It does nothing if the remote PTE is not MAPPED and SMALL. 221 * It is called when a fork is executed, or when a COW must be resolved. 222 **************************************************************************************** 223 * @ set_cow : [in] set COW & reset WRITABLE if true / do the opposite if false. 219 **************************************************************************************** 224 220 * @ gpt_xp : [in] extended pointer on the remote GPT. 225 221 * @ vpn_base : [in] first virtual page. 226 222 * @ vpn_size : [in] number of pages. 227 223 ***************************************************************************************/ 228 void hal_gpt_flip_cow( bool_t set_cow, 229 xptr_t gpt_xp, 230 vpn_t vpn_base, 231 vpn_t vpn_size ); 224 void hal_gpt_set_cow( xptr_t gpt_xp, 225 vpn_t vpn_base, 226 vpn_t vpn_size ); 232 227 233 228 /****************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.