summaryrefslogtreecommitdiffstats
path: root/source/components/debugger/dbcmds.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-06-26 19:01:10 +0000
committerjkim <jkim@FreeBSD.org>2013-06-26 19:01:10 +0000
commit7aca7201724cb02a2a0541bd3ad2c0aca23dd076 (patch)
tree274ff6113dbdc6cbbbf50dc30d0527fb9cb0fc55 /source/components/debugger/dbcmds.c
parentaf69f95bba3597db53a980597cfd371c9f6ee7cf (diff)
downloadFreeBSD-src-7aca7201724cb02a2a0541bd3ad2c0aca23dd076.zip
FreeBSD-src-7aca7201724cb02a2a0541bd3ad2c0aca23dd076.tar.gz
Import ACPICA 20130626.
Diffstat (limited to 'source/components/debugger/dbcmds.c')
-rw-r--r--source/components/debugger/dbcmds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/components/debugger/dbcmds.c b/source/components/debugger/dbcmds.c
index 5700441..307644b 100644
--- a/source/components/debugger/dbcmds.c
+++ b/source/components/debugger/dbcmds.c
@@ -105,13 +105,15 @@ AcpiDbConvertToNode (
char *InString)
{
ACPI_NAMESPACE_NODE *Node;
+ ACPI_SIZE Address;
if ((*InString >= 0x30) && (*InString <= 0x39))
{
/* Numeric argument, convert */
- Node = ACPI_TO_POINTER (ACPI_STRTOUL (InString, NULL, 16));
+ Address = ACPI_STRTOUL (InString, NULL, 16);
+ Node = ACPI_TO_POINTER (Address);
if (!AcpiOsReadable (Node, sizeof (ACPI_NAMESPACE_NODE)))
{
AcpiOsPrintf ("Address %p is invalid in this address space\n",
OpenPOWER on IntegriCloud