From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 8 05:30:06 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64FDB106566B for ; Mon, 8 Jun 2009 05:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 404D08FC18 for ; Mon, 8 Jun 2009 05:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n585U6ks024967 for ; Mon, 8 Jun 2009 05:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n585U6ef024966; Mon, 8 Jun 2009 05:30:06 GMT (envelope-from gnats) Resent-Date: Mon, 8 Jun 2009 05:30:06 GMT Resent-Message-Id: <200906080530.n585U6ef024966@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eygene Ryabinkin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 072F5106566B for ; Mon, 8 Jun 2009 05:29:36 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 91B458FC12 for ; Mon, 8 Jun 2009 05:29:35 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtps (TLSv1:CAMELLIA256-SHA:256) id 1MDXQM-0002u0-IH for FreeBSD-gnats-submit@freebsd.org; Mon, 08 Jun 2009 09:29:34 +0400 Message-Id: <20090608052934.8214DDA837@void.codelabs.ru> Date: Mon, 8 Jun 2009 09:29:34 +0400 (MSD) From: Eygene Ryabinkin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/135349: [patch] teach acpidump to disassemble arbitrary memory locations X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eygene Ryabinkin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 05:30:06 -0000 >Number: 135349 >Category: bin >Synopsis: [patch] teach acpidump to disassemble arbitrary memory locations >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 08 05:30:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Eygene Ryabinkin >Release: FreeBSD 8-CURRENT amd64 >Organization: Code Labs >Environment: System: FreeBSD 8-CURRENT amd64 >Description: It is not uncommon when some chunks of the AML code are loaded by DSDT from the memory locations that aren't part of the DSDT itself, but one wants to see what's inside. It can be achieved with 'dd' and 'iasl', but it is better to implement this machinery inside acpidump to ease the life of both users and develepers that needs to see the full picture of the ACPI stuff from foreign machines. >How-To-Repeat: Look at 'man 8 acpidump' and search for anything resembling arbitrary memory locations disassembly. >Fix: Here's the patch for 8-CURRENT that enables the functionality, described above. Patch for 7-STABLE will be a bit different, I'll backport it if MFC will be relevant to this issue (and the issue itself will be classified as relevant ;)). --- acpidump-disassemble-specified-memory-locations.diff begins here --- begin 644 acpidump-disassemble-specified-memory-locations.diff M1G)O;2`P,V8W8S4W-#@Q-34W936=E;F4@4GEA8FEN M:VEN(#QR96$M9F)S9$!C;V1E;&%B2!M96UO2!$4T14"F9R M;VT@=&AE(&UE;6]R>2!L;V-A=&EO;G,@=&AA="!A&ET(&-O9&4@:7,@8VAE8VME9"!A M;F0@:68@9&ES87-S96UB;&5R(&5X:71E9"!A8FYO6%B:6YK:6X@/')E82UF M8G-D0&-O9&5L86)S+G)U/@HM+2T*('5S"!F960P9F(R+BXS,C%F.#DT M(#$P,#8T-`HM+2T@82]U7)I9VAT("AC*2`Q.3DX($1O=6<@4F%B7)I9VAT("AC*2`R,#`Y($5Y9V5N M92!2>6%B:6YK:6X@/')E82UF8G-D0&-O9&5L86)S+G)U/@H@("H@06QL(')I M9VAT7,O7,OPHM"6-H87(@=&UPPHM"0EP M97)R;W(H(FEAPHK"0EW87)N>"@B8F%D(&EN<'5T(&9I;&4@ M;F%M92`G)7,G+"!S:&]U;&0@96YD(&]N("PHK"2\J(%)U;B!I87-L("UD(&]N('1H92!I;G!U="!F:6QE("HO"BL) M8VAI;&0@/2!F;W)K*"D["BL):68@*&-H:6QD(#T]("TQ*2!["BL)"7=APH@"0EC;&]S92A35$1/551?1DE,14Y/*3L*(`D) M:68@*'9F;&%G(#T](#`I"B`)"0EC;&]S92A35$1%4E)?1DE,14Y/*3L*+0D) M97AE8VPH(B]U&5C;"@B+W5SPHK"0EW87)N*")W86ET<&ED*"5L=2DB+"`H M=6YS:6=N960@;&]N9REC:&EL9"D["BL)"75N;&EN:RAO=71F:6QE*3L**PD) M9G)E92AO=71F:6QE*3L**PD)PHK"0EW87)N>"@B24%33"!W87,@ M;F]T(&%B;&4@=&\@9&ES87-S96UB;&4@=&AE('!APHM"0EP97)R;W(H(FEAF5?="!D=6UP861D MPHK"0EP97)R;W(H(F]P96X@+V1E=B]M96TB*3L**PD)8VQO MPHK"0ET;W)E860@/2`H M9'5M<&QE;B`^('-I>F5O9BAB=68I(#\@PHK"6-H87()=&UPF5O9BA435!)3BE=.PHK"6EN M=`EF9#L**PHK"7-T2AT;7!S='(L(%1-4$E.*3L**PEF9"`](&UKPHK"0EP97)R M;W(H(D%-3"!T;7`@9FEL92(I.PHK"0ER971UPH@"6%C<&E?:&%N9&QE M7W)S9'0H6]K;WEA;6%`:G`N1G)E94)31"YO7)I M9VAT("AC*2`R,#`P($AI7)I9VAT("AC*2`R,#`Y($5Y9V5N92!2>6%B:6YK:6X@/')E82UF M8G-D0&-O9&5L86)S+G)U/@H@+EPB($%L;"!R:6=H=',@PHK"0EW87)N>"`H(F%R9W5M96YT('1O M("PHK"7=H:6QE("@H8R`](&=E=&]P="AAPH@"0ES=VET8V@@*&,I('L**PD)8V%S92`G M82"A%6%]/ M4T524BP@(G!A'0["BL)"0EAPHK"0D):68@*'9F;&%G*2!["BL)"0D)=V%R;G@H M(F1I"5Z>"!B>71E"@B9FEN:7-H960@9&ES87-S M96UB;&EN9R(I.PHK"0D)871M<"`](&YR;V]T.PHK"0D);G)O;W0@/2!N&ET*#`I M.PH@?0ID:69F("TM9VET(&$O=7-R+G-B:6XO86-P:2]A8W!I9'5M<"]A8W!I M9'5M<"YH(&(O=7-R+G-B:6XO86-P:2]A8W!I9'5M<"]A8W!I9'5M<"YH"FEN M9&5X(#AD-SDQ-C@N+C@T,CAB-3@@,3`P-C0T"BTM+2!A+W5S7-I8V%L(&UE;6]R>2`J+PH@Release-Note: >Audit-Trail: >Unformatted: