-
- int proct = param->proct;
- int attr = PG_ALLOW_USER;
- if ((proct & REGION_WRITE)) {
- attr |= PG_WRITE;
- }
- if ((proct & REGION_KERNEL)) {
- attr &= ~PG_ALLOW_USER;
- }
-
- for (size_t i = 0; i < param->mlen; i += PG_SIZE) {
- vmm_set_mapping(param->vms_mnt, found_loc + i, 0, attr, 0);
- }
-