Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/link_elf_obj.c
Show First 20 Lines • Show All 768 Lines • ▼ Show 20 Lines | #endif | ||||
} | } | ||||
} | } | ||||
/* | /* | ||||
* We know how much space we need for the text/data/bss/etc. | * We know how much space we need for the text/data/bss/etc. | ||||
* This stuff needs to be in a single chunk so that profiling etc | * This stuff needs to be in a single chunk so that profiling etc | ||||
* can get the bounds and gdb can associate offsets with modules | * can get the bounds and gdb can associate offsets with modules | ||||
*/ | */ | ||||
ef->object = vm_object_allocate(OBJT_DEFAULT, | ef->object = vm_object_allocate(OBJT_PHYS, atop(round_page(mapsize))); | ||||
round_page(mapsize) >> PAGE_SHIFT); | |||||
if (ef->object == NULL) { | if (ef->object == NULL) { | ||||
error = ENOMEM; | error = ENOMEM; | ||||
goto out; | goto out; | ||||
} | } | ||||
ef->address = (caddr_t) vm_map_min(kernel_map); | ef->address = (caddr_t) vm_map_min(kernel_map); | ||||
/* | /* | ||||
* In order to satisfy amd64's architectural requirements on the | * In order to satisfy amd64's architectural requirements on the | ||||
▲ Show 20 Lines • Show All 820 Lines • Show Last 20 Lines |