From owner-cvs-all@FreeBSD.ORG Thu Oct 6 18:29:31 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F6B216A41F; Thu, 6 Oct 2005 18:29:31 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13E5243D45; Thu, 6 Oct 2005 18:29:31 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j96ITUsb077402; Thu, 6 Oct 2005 18:29:30 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j96ITUii077401; Thu, 6 Oct 2005 18:29:30 GMT (envelope-from delphij) Message-Id: <200510061829.j96ITUii077401@repoman.freebsd.org> From: Xin LI Date: Thu, 6 Oct 2005 18:29:30 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/kern subr_hints.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 18:29:31 -0000 delphij 2005-10-06 18:29:30 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/kern subr_hints.c Log: MFC 1.12 (by netchild) | The resource_xxx routines in subr_hints.c are called before and after the | kenv environment in kern_environment.c switches to dynamic kenv. The prior | call sets the static variable hintp to the static hints in subr_hints.c | (hintmode==0). | | However, changes to the environment are not detected by the resource_xxx | lookups after the change to dynamic kernel environment, so the lookup | routines only report the old stuff of hintmode==0, even after the change to | the dynamic kenv. This causes kenv users to see a different environment than | the kernel routines. | | This is a problem in the mixer.c code that looks up initial mixer volume | settings from the hints: If the hints are dynamic and not from the | device.hints file, mixer.c doesn't see them, but kenv does. | | The patch from the PR (modified to comply to the style of the function) | solves this. | | PR: 83686 | Submitted by: Harry Coin Approved by: re (scottl) Revision Changes Path 1.11.2.1 +2 -0 src/sys/kern/subr_hints.c