The following reply was made to PR kern/147858; it has been noted by GNATS.

From: Andriy Gapon <a...@icyb.net.ua>
To: bug-follo...@freebsd.org, mac...@suszko.eu
Cc: Rui Paulo <rpa...@freebsd.org>
Subject: Re: kern/147858: [acpi] acpi_hp not working when loaded via loader.conf
Date: Fri, 03 Sep 2010 10:55:50 +0300

 This is a multi-part message in MIME format.
 --------------080100030005090509050807
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 7bit
 
 
 Could originator and other people having the problem please test the attached
 patch and followup to the PR?
 Thanks!
 
 The patch is only compile-tested by me, because I don't have the hardware.
 So you might experience crashes or other surprising behavior.
 But I hope that you won't.
 
 -- 
 Andriy Gapon
 
 --------------080100030005090509050807
 Content-Type: text/plain;
  name="acpi_hp.diff"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="acpi_hp.diff"
 
 ZGlmZiAtLWdpdCBhL3N5cy9kZXYvYWNwaV9zdXBwb3J0L2FjcGlfaHAuYyBiL3N5cy9kZXYv
 YWNwaV9zdXBwb3J0L2FjcGlfaHAuYwppbmRleCBiMGU4NWJlLi4yNWY5OTJjIDEwMDY0NAot
 LS0gYS9zeXMvZGV2L2FjcGlfc3VwcG9ydC9hY3BpX2hwLmMKKysrIGIvc3lzL2Rldi9hY3Bp
 X3N1cHBvcnQvYWNwaV9ocC5jCkBAIC00OSw2ICs0OSw3IEBAIF9fRkJTRElEKCIkRnJlZUJT
 RCQiKTsKICNpbmNsdWRlIDxzeXMvdWlvLmg+CiAjaW5jbHVkZSA8c3lzL3Byb2MuaD4KICNp
 bmNsdWRlIDxzeXMva2VybmVsLmg+CisjaW5jbHVkZSA8c3lzL2xpbWl0cy5oPgogI2luY2x1
 ZGUgPHN5cy9idXMuaD4KICNpbmNsdWRlIDxzeXMvc2J1Zi5oPgogI2luY2x1ZGUgPHN5cy9t
 b2R1bGUuaD4KQEAgLTExNiw3ICsxMTcsNiBAQCBzdHJ1Y3QgYWNwaV9ocF9pbnN0X3NlcV9w
 Y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mNsYXNzXG4iKTsKIAkJcmV0dXJuIChFSU5WQUwpOwog
 CX0K
 --------------080100030005090509050807--
_______________________________________________
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"

Reply via email to