mod               545 sys/kern/device.c 	struct module *mod;
mod               550 sys/kern/device.c 	mod = &bi->driver;
mod               551 sys/kern/device.c 	if (mod == NULL) {
mod               555 sys/kern/device.c 	entry = (void (*)(const dkifn_t *))mod->entry;
mod               475 sys/kern/task.c 	struct module *mod;
mod               483 sys/kern/task.c 	mod = &bi->tasks[0];
mod               491 sys/kern/task.c 		if ((error = vm_load(task->map, mod, &stack)) != 0)
mod               493 sys/kern/task.c 		task_setname(task, mod->name);
mod               509 sys/kern/task.c 		error = thread_load(t, (void (*)(void))mod->entry, sp);
mod               516 sys/kern/task.c 		mod++;
mod               674 sys/mem/vm.c   vm_load(vm_map_t map, struct module *mod, void **stack)
mod               680 sys/mem/vm.c   	DPRINTF(("Loading task: %s\n", mod->name));
mod               688 sys/mem/vm.c   	src = ptokv(mod->phys);
mod               689 sys/mem/vm.c   	text = (void *)mod->text;
mod               690 sys/mem/vm.c   	data = (void *)mod->data;
mod               695 sys/mem/vm.c   	error = do_allocate(map, &text, mod->textsz, 0);
mod               698 sys/mem/vm.c   	memcpy(text, src, mod->textsz);
mod               706 sys/mem/vm.c   	if (mod->datasz + mod->bsssz != 0) {
mod               707 sys/mem/vm.c   		error = do_allocate(map, &data, mod->datasz + mod->bsssz, 0);
mod               710 sys/mem/vm.c   		if (mod->datasz > 0) {
mod               711 sys/mem/vm.c   			src = src + (mod->data - mod->text);
mod               712 sys/mem/vm.c   			memcpy(data, src, mod->datasz);
mod               724 sys/mem/vm.c   	page_free(mod->phys, mod->size);
mod               454 sys/mem/vm_nommu.c vm_load(vm_map_t map, struct module *mod, void **stack)
mod               460 sys/mem/vm_nommu.c 	DPRINTF(("Loading task:\'%s\'\n", mod->name));
mod               465 sys/mem/vm_nommu.c 	base = mod->text;
mod               466 sys/mem/vm_nommu.c 	size = mod->textsz + mod->datasz + mod->bsssz;
mod               479 sys/mem/vm_nommu.c 	if (mod->bsssz != 0)
mod               480 sys/mem/vm_nommu.c 		memset((void *)(mod->data + mod->datasz), 0, mod->bsssz);