MOS Source Code
Loading...
Searching...
No Matches
do_mask.c
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
4
6
7static void pml1e_do_mask_callback(pml1_t pml1, pml1e_t *e, ptr_t vaddr, void *data)
8{
9 MOS_UNUSED(pml1);
10 MOS_UNUSED(vaddr);
12 {
13 struct pagetable_do_mask_data *mask_data = data;
15 flags &= ~mask_data->mask;
18 }
19}
20
vm_flags platform_pml1e_get_flags(const pml1e_t *pml1e)
Definition mm.c:101
void platform_invalidate_tlb(ptr_t vaddr)
Definition mm.c:72
void platform_pml1e_set_flags(pml1e_t *pml1, vm_flags flags)
Definition mm.c:95
bool platform_pml1e_get_present(const pml1e_t *pml1)
Definition mm.c:90
const pagetable_walk_options_t pagetable_do_mask_callbacks
Definition do_mask.c:21
static void pml1e_do_mask_callback(pml1_t pml1, pml1e_t *e, ptr_t vaddr, void *data)
Definition do_mask.c:7
#define MOS_UNUSED(x)
Definition mos_global.h:64
vm_flags
Definition platform.h:40
unsigned long ptr_t
Definition types.h:25