* [Devel] [PATCH] minor correction for big endian machines
@ 2014-02-28 16:05 Al Stone
0 siblings, 0 replies; only message in thread
From: Al Stone @ 2014-02-28 16:05 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]
When using the ASL files in the misc tests directory, I found a
case where a warning message printed out the table signature in
the wrong order on big endian machines. The patch below fixes
the message so it works on little- or big-endian.
Signed-off-by: Al Stone <ahs3(a)redhat.com>
diff -urN acpica-unix2-20140214/source/compiler/asllookup.c
acpica-unix2-20140214-patch/source/compiler/asllookup.c
--- acpica-unix2-20140214/source/compiler/asllookup.c 2014-02-14
16:23:33.000000000 -0700
+++ acpica-unix2-20140214-patch/source/compiler/asllookup.c 2014-02-27
11:50:52.168659866 -0700
@@ -120,6 +120,7 @@
{
ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR
(ACPI_NAMESPACE_NODE, ObjHandle);
ACPI_NAMESPACE_NODE *Next;
+ ACPI_NAME_UNION tmp;
/* Referenced flag is set during the namespace xref */
@@ -163,8 +164,9 @@
* Issue a remark even if it is a reserved name (starts
* with an underscore).
*/
+ ACPI_MOVE_32_TO_32(&tmp.Ascii, Next->Name.Ascii);
sprintf (MsgBuffer, "Name is within method [%4.4s]",
- Next->Name.Ascii);
+ tmp.Ascii);
AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED,
LkGetNameOp (Node->Op), MsgBuffer);
return (AE_OK);
--
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3(a)redhat.com
-----------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-28 16:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 16:05 [Devel] [PATCH] minor correction for big endian machines Al Stone
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.