Fix acpidump(8) on ia64. Revision 1.13 introduced an uninitialized

variable bug that's hidden by the precense of the hint_acpi_0_rsdp
hint on 386 and amd64. There's never a need for such hint on ia64.

Approved by: re (kensmith)
This commit is contained in:
Marcel Moolenaar 2007-07-28 17:46:04 +00:00
parent c73743b6ce
commit c44b9f1811
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171642

View File

@ -166,6 +166,8 @@ acpi_find_rsd_ptr(void)
acpi_user_init();
addr = 0;
/* Attempt to use kenv or sysctl to find RSD PTR record. */
if (kenv(KENV_GET, hint_acpi_0_rsdp, buf, 20) == 0)
addr = strtoul(buf, NULL, 0);