diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-06 13:36:53 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-06 13:36:53 +0000 |
commit | dce408d18a14842aa7836a626a151e98665f04e7 (patch) | |
tree | a3ddb948fd94211a9af9df05d8de6c60a2081605 /sys/uvm/uvm_page.c | |
parent | 789e8c48d1472795faa6a959068b32a1749b315d (diff) |
More sync to NetBSD.
- Use malloc/free instead of MALLOC/FREE for variable sized allocations.
- Move the memory inheritance code to sys/mman.h and rename from VM_* to MAP_*
- various cleanups and simplifications.
Diffstat (limited to 'sys/uvm/uvm_page.c')
-rw-r--r-- | sys/uvm/uvm_page.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index 56ff88e56fa..1c2e7157baf 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -1,5 +1,5 @@ -/* $OpenBSD: uvm_page.c,v 1.26 2001/11/06 01:35:04 art Exp $ */ -/* $NetBSD: uvm_page.c,v 1.39 2000/06/27 17:29:31 mrg Exp $ */ +/* $OpenBSD: uvm_page.c,v 1.27 2001/11/06 13:36:52 art Exp $ */ +/* $NetBSD: uvm_page.c,v 1.40 2000/08/02 20:25:11 thorpej Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -645,8 +645,8 @@ uvm_page_physload(start, end, avail_start, avail_end, free_list) /* XXXCDC: need some sort of lockout for this case */ paddr_t paddr; npages = end - start; /* # of pages */ - MALLOC(pgs, struct vm_page *, sizeof(struct vm_page) * npages, - M_VMPAGE, M_NOWAIT); + pgs = malloc(sizeof(struct vm_page) * npages, + M_VMPAGE, M_NOWAIT); if (pgs == NULL) { printf("uvm_page_physload: can not malloc vm_page " "structs for segment\n"); |