Module Name: src Committed By: drochner Date: Fri Feb 18 10:43:53 UTC 2011
Modified Files: src/sys/uvm: uvm_glue.c Log Message: make this build w/o HAVE_CPU_UAREA_ROUTINES To generate a diff of this commit: cvs rdiff -u -r1.148 -r1.149 src/sys/uvm/uvm_glue.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_glue.c diff -u src/sys/uvm/uvm_glue.c:1.148 src/sys/uvm/uvm_glue.c:1.149 --- src/sys/uvm/uvm_glue.c:1.148 Thu Feb 17 19:27:13 2011 +++ src/sys/uvm/uvm_glue.c Fri Feb 18 10:43:52 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_glue.c,v 1.148 2011/02/17 19:27:13 matt Exp $ */ +/* $NetBSD: uvm_glue.c,v 1.149 2011/02/18 10:43:52 drochner Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.148 2011/02/17 19:27:13 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.149 2011/02/18 10:43:52 drochner Exp $"); #include "opt_kgdb.h" #include "opt_kstack.h" @@ -341,11 +341,11 @@ uvm_uarea_cache = pool_cache_init(USPACE, USPACE_ALIGN, 0, flags, "uarea", &uvm_uarea_allocator, IPL_NONE, NULL, NULL, NULL); - if (uvm_uarea_system_cache != uvm_uarea_cache) { - uvm_uarea_system_cache = pool_cache_init(USPACE, USPACE_ALIGN, - 0, flags, "uareasys", &uvm_uarea_system_allocator, - IPL_NONE, NULL, NULL, NULL); - } +#if defined(__HAVE_CPU_UAREA_ROUTINES) + uvm_uarea_system_cache = pool_cache_init(USPACE, USPACE_ALIGN, + 0, flags, "uareasys", &uvm_uarea_system_allocator, + IPL_NONE, NULL, NULL, NULL); +#endif } /*