kern_exec.c (f535380cb6129e205bfa36db821a10ef3c1ac7e2) kern_exec.c (9ff5ce6baf165aeb3cb45dd7dd5a8dc9da4fc9d4)
1/*
2 * Copyright (c) 1993, David Greenman
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 387 unchanged lines hidden (view full) ---

396 vm_page_t ma[VM_INITIAL_PAGEIN];
397 vm_object_t object;
398
399
400 if (imgp->firstpage) {
401 exec_unmap_first_page(imgp);
402 }
403
1/*
2 * Copyright (c) 1993, David Greenman
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 387 unchanged lines hidden (view full) ---

396 vm_page_t ma[VM_INITIAL_PAGEIN];
397 vm_object_t object;
398
399
400 if (imgp->firstpage) {
401 exec_unmap_first_page(imgp);
402 }
403
404 object = imgp->vp->v_object;
404 VOP_GETVOBJECT(imgp->vp, &object);
405 s = splvm();
406
407 ma[0] = vm_page_grab(object, 0, VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
408
409 if ((ma[0]->valid & VM_PAGE_BITS_ALL) != VM_PAGE_BITS_ALL) {
410 initial_pagein = VM_INITIAL_PAGEIN;
411 if (initial_pagein > object->size)
412 initial_pagein = object->size;

--- 395 unchanged lines hidden ---
405 s = splvm();
406
407 ma[0] = vm_page_grab(object, 0, VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
408
409 if ((ma[0]->valid & VM_PAGE_BITS_ALL) != VM_PAGE_BITS_ALL) {
410 initial_pagein = VM_INITIAL_PAGEIN;
411 if (initial_pagein > object->size)
412 initial_pagein = object->size;

--- 395 unchanged lines hidden ---