From owner-freebsd-acpi@FreeBSD.ORG Wed Jun 17 17:06:22 2009 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15BD11065670; Wed, 17 Jun 2009 17:06:22 +0000 (UTC) (envelope-from robert.moore@intel.com) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx1.freebsd.org (Postfix) with ESMTP id CEE0B8FC0A; Wed, 17 Jun 2009 17:06:21 +0000 (UTC) (envelope-from robert.moore@intel.com) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 17 Jun 2009 09:57:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.42,238,1243839600"; d="scan'208";a="525616243" Received: from orsmsx601.amr.corp.intel.com ([10.22.226.213]) by orsmga001.jf.intel.com with ESMTP; 17 Jun 2009 10:05:59 -0700 Received: from orsmsx503.amr.corp.intel.com ([10.22.226.47]) by orsmsx601.amr.corp.intel.com ([10.22.226.213]) with mapi; Wed, 17 Jun 2009 10:06:08 -0700 From: "Moore, Robert" To: "rea-fbsd@codelabs.ru" , Nate Lawson , Jung-uk Kim Date: Wed, 17 Jun 2009 10:06:07 -0700 Thread-Topic: [PATCH] acpidump: teach to disassemble arbitrary memory locations as AML code Thread-Index: AcnvEmdpwrwlJruQQZeqhZW+GsdtkQAW1rBA Message-ID: <4911F71203A09E4D9981D27F9D8308582E76D375@orsmsx503.amr.corp.intel.com> References: <4A32CA38.4020806@root.org> <4911F71203A09E4D9981D27F9D8308582E6840C8@orsmsx503.amr.corp.intel.com> <200906121834.30294.jkim@FreeBSD.org> <4A32CA38.4020806@root.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-acpi@freebsd.org" Subject: RE: [PATCH] acpidump: teach to disassemble arbitrary memory locations as AML code X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2009 17:06:22 -0000 The raw ACPICA source code is run through a converter (acpisrc) to "linuxiz= e" the code before it is integrated into Linux. >-----Original Message----- >From: rea-fbsd@codelabs.ru [mailto:rea-fbsd@codelabs.ru] >Sent: Tuesday, June 16, 2009 11:11 PM >To: Nate Lawson; Jung-uk Kim >Cc: freebsd-acpi@freebsd.org; Moore, Robert >Subject: Re: [PATCH] acpidump: teach to disassemble arbitrary memory >locations as AML code > >Nate, Jung-uk, good day. > >Fri, Jun 12, 2009 at 02:35:52PM -0700, Nate Lawson wrote: >> I appreciate your work. What we need to do though is remove acpidump(8) >> from the system and import Intel's acpidmp utility. It's included in the >> ACPI-CA distribution and is functional enough that we can use it. > >OK, I'll try to take a look at it. But this is a future work; >meanwhile, can we still extend acpidump in a way I propose. I have the >updated patch that applies on top of the -CURRENT tree after the recent >ACPICA import, but I have some troubles with 'make depend' inside >usr.sbin/acpi/acpidb, so once I'll resolve them and test the stuff with >full buildworld -- I'll post the patch as an update. > >Fri, Jun 12, 2009 at 06:34:27PM -0400, Jung-uk Kim wrote: >> On Friday 12 June 2009 06:02 pm, Moore, Robert wrote: >> > Actually, we don't distribute an acpidump (yet) in ACPICA. The >> > Linux version is part of the "pmtools" package. >> > >> > It is of course, linux-specific. I won't distribute it with ACPICA >> > until we have an OS-independent version. It is on our list of >> > things to-do. >> >> FYI, it won't be terribly hard to port it because we also use >> /dev/mem. However, the source is acpisrc'ified and we cannot undo it >> to make it compile on FreeBSD. :-( > >Haven't looked at the source yet, so probably the question is very dumb, >but nevertheless: what do you mean by "acpisrc'ified"? > >And a general question: is there a VCS repository for the pmtools, or at >least the download location with snapshots/releases? My Google-fu fails >on this and moblin.org doesn't seem to have this stuff available. > >Thanks! >-- >Eygene > _ ___ _.--. # > \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard > / ' ` , __.--' # to read the on-line manual > )/' _/ \ `-_, / # while single-stepping the kernel. > `-'" `"\_ ,_.-;_.-\_ ', fsc/as # > _.-'_./ {_.' ; / # -- FreeBSD Developers handbook > {_.-``-' {_/ #