Date: Thu, 1 Sep 2011 21:46:43 +0200 From: Robert Millan <rmh@debian.org> To: John Baldwin <jhb@freebsd.org> Cc: freebsd-current@freebsd.org Subject: [PATCH] Fix NKPT kernel config option Message-ID: <CAOfDtXPDAyeZX7adW5Hixa2XwyOFgic=FRU6ipUHZcY15JVQaQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi John, Thanks for adding an NKPT kernel config option (r225194), but this doesn't seem to work unless opt_pmap.h is included, see attached patch. Without this include, there's no garantee that the NKPT definition code: #ifndef NKPT #define NKPT 32 #endif will use the value specified in config. Or worse, it may even use different values for different .c files. -- Robert Millan [-- Attachment #2 --] Index: kfreebsd-9/sys/amd64/include/pmap.h =================================================================== --- kfreebsd-9.orig/sys/amd64/include/pmap.h 2011-08-31 22:26:06.000000000 +0200 +++ kfreebsd-9/sys/amd64/include/pmap.h 2011-09-01 21:31:41.650902274 +0200 @@ -45,6 +45,8 @@ #ifndef _MACHINE_PMAP_H_ #define _MACHINE_PMAP_H_ +#include "opt_pmap.h" + /* * Page-directory and page-table entries follow this format, with a few * of the fields not present here and there, depending on a lot of things.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfDtXPDAyeZX7adW5Hixa2XwyOFgic=FRU6ipUHZcY15JVQaQ>
