Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/uma_machdep.c
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | uma_small_alloc(uma_zone_t zone, vm_size_t bytes, u_int8_t *flags, int wait) | ||||
*flags = UMA_SLAB_PRIV; | *flags = UMA_SLAB_PRIV; | ||||
pflags = malloc2vm_flags(wait) | VM_ALLOC_NOOBJ | VM_ALLOC_WIRED; | pflags = malloc2vm_flags(wait) | VM_ALLOC_NOOBJ | VM_ALLOC_WIRED; | ||||
for (;;) { | for (;;) { | ||||
m = vm_page_alloc(NULL, 0, pflags); | m = vm_page_alloc(NULL, 0, pflags); | ||||
if (m == NULL) { | if (m == NULL) { | ||||
if (wait & M_NOWAIT) | if (wait & M_NOWAIT) | ||||
return (NULL); | return (NULL); | ||||
else | else | ||||
VM_WAIT; | VM_WAIT_FLAGS(wait); | ||||
kib: Why did you only handled amd64 ? At least arm64 also needs this change. | |||||
avgAuthorUnsubmitted Not Done Inline ActionsWhen I wrote this code there was no arm64. avg: When I wrote this code there was no arm64.
I'll handle it. | |||||
} else | } else | ||||
break; | break; | ||||
} | } | ||||
pa = m->phys_addr; | pa = m->phys_addr; | ||||
if ((wait & M_NODUMP) == 0) | if ((wait & M_NODUMP) == 0) | ||||
dump_add_page(pa); | dump_add_page(pa); | ||||
va = (void *)PHYS_TO_DMAP(pa); | va = (void *)PHYS_TO_DMAP(pa); | ||||
if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) | if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) | ||||
Show All 17 Lines |
Why did you only handled amd64 ? At least arm64 also needs this change.