From owner-freebsd-current@FreeBSD.ORG Thu Sep 1 20:17:29 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06E20106564A; Thu, 1 Sep 2011 20:17:29 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id A68748FC08; Thu, 1 Sep 2011 20:17:28 +0000 (UTC) Received: by ywo32 with SMTP id 32so2151668ywo.13 for ; Thu, 01 Sep 2011 13:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=BZfAj96xMO3IHCjTduMwEP60k0zVzB1bOw6FnrqbAyU=; b=IeXEVI1cmA6uS0Ah45oakdDRVS34TBW2zCkHkOo4dHc4lXD5gVnihwOoEO0niwoAho 6kAKIiRAS3iU7WbzBzwyp7ElymUS0SAinnmkFtozDPTgN8DJSXghHiGQHuoI0kEw/APc EoD28GsTyT26w8Njuo7cvtlXrbf6e+/daydP4= MIME-Version: 1.0 Received: by 10.42.153.130 with SMTP id m2mr215759icw.155.1314906403940; Thu, 01 Sep 2011 12:46:43 -0700 (PDT) Sender: rmh.aybabtu@gmail.com Received: by 10.43.132.65 with HTTP; Thu, 1 Sep 2011 12:46:43 -0700 (PDT) Date: Thu, 1 Sep 2011 21:46:43 +0200 X-Google-Sender-Auth: JZ4ta4plAKdA33gDPSn8LGK7avw Message-ID: From: Robert Millan To: John Baldwin Content-Type: multipart/mixed; boundary=90e6ba1efeae1ea9e604abe681c2 X-Mailman-Approved-At: Thu, 01 Sep 2011 21:28:44 +0000 Cc: freebsd-current@freebsd.org Subject: [PATCH] Fix NKPT kernel config option X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2011 20:17:29 -0000 --90e6ba1efeae1ea9e604abe681c2 Content-Type: text/plain; charset=UTF-8 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 --90e6ba1efeae1ea9e604abe681c2 Content-Type: text/x-patch; charset=US-ASCII; name="nkpt.diff" Content-Disposition: attachment; filename="nkpt.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gs259dqo0 SW5kZXg6IGtmcmVlYnNkLTkvc3lzL2FtZDY0L2luY2x1ZGUvcG1hcC5oCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0t IGtmcmVlYnNkLTkub3JpZy9zeXMvYW1kNjQvaW5jbHVkZS9wbWFwLmgJMjAxMS0wOC0zMSAyMjoy NjowNi4wMDAwMDAwMDAgKzAyMDAKKysrIGtmcmVlYnNkLTkvc3lzL2FtZDY0L2luY2x1ZGUvcG1h cC5oCTIwMTEtMDktMDEgMjE6MzE6NDEuNjUwOTAyMjc0ICswMjAwCkBAIC00NSw2ICs0NSw4IEBA CiAjaWZuZGVmIF9NQUNISU5FX1BNQVBfSF8KICNkZWZpbmUJX01BQ0hJTkVfUE1BUF9IXwogCisj aW5jbHVkZSAib3B0X3BtYXAuaCIKKwogLyoKICAqIFBhZ2UtZGlyZWN0b3J5IGFuZCBwYWdlLXRh YmxlIGVudHJpZXMgZm9sbG93IHRoaXMgZm9ybWF0LCB3aXRoIGEgZmV3CiAgKiBvZiB0aGUgZmll bGRzIG5vdCBwcmVzZW50IGhlcmUgYW5kIHRoZXJlLCBkZXBlbmRpbmcgb24gYSBsb3Qgb2YgdGhp bmdzLgo= --90e6ba1efeae1ea9e604abe681c2--