vdso
This commit is contained in:
+2
-2
@@ -101,7 +101,7 @@ zn_status_t vmo_copy(
|
||||
}
|
||||
|
||||
static zn_status_t paged_get_page(struct vmo* vmo, uintptr_t offset_idx, struct page** out) {
|
||||
struct paged_vmo* paged = CONTAINER_OF(vmo, struct paged_vmo, object);
|
||||
struct paged_vmo* paged = containerof(vmo, struct paged_vmo, object);
|
||||
|
||||
// Try to find the requested page in the cache.
|
||||
struct page_list* iter;
|
||||
@@ -177,7 +177,7 @@ struct phys_range_vmo {
|
||||
};
|
||||
|
||||
static zn_status_t phys_range_get_page(struct vmo* vmo, uintptr_t offset_idx, struct page** out) {
|
||||
struct phys_range_vmo* p = CONTAINER_OF(vmo, struct phys_range_vmo, object);
|
||||
struct phys_range_vmo* p = containerof(vmo, struct phys_range_vmo, object);
|
||||
*out = &vm_pfndb[(p->start / arch_mem_page_size()) + offset_idx];
|
||||
return ZN_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user