diff options
author | msmith <msmith@FreeBSD.org> | 2000-12-21 06:56:46 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2000-12-21 06:56:46 +0000 |
commit | 07e76fb2a28476ae54bb108098c0707743ab398c (patch) | |
tree | 75730fe174d9e937dfe3355d34c0bf027089aab8 /sys/contrib/dev/acpica/hwacpi.c | |
parent | b92a08961bec1b7b6c9756c131e093978f2f9029 (diff) | |
parent | 68d9171019852e7a4325965a2539a5a2eb7571da (diff) | |
download | FreeBSD-src-07e76fb2a28476ae54bb108098c0707743ab398c.zip FreeBSD-src-07e76fb2a28476ae54bb108098c0707743ab398c.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r70243,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'sys/contrib/dev/acpica/hwacpi.c')
-rw-r--r-- | sys/contrib/dev/acpica/hwacpi.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/contrib/dev/acpica/hwacpi.c b/sys/contrib/dev/acpica/hwacpi.c index f0b5577..754f169 100644 --- a/sys/contrib/dev/acpica/hwacpi.c +++ b/sys/contrib/dev/acpica/hwacpi.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: hwacpi - ACPI hardware functions - mode and timer - * $Revision: 32 $ + * $Revision: 34 $ * *****************************************************************************/ @@ -9,8 +9,8 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999, Intel Corp. All rights - * reserved. + * Some or all of this work - Copyright (c) 1999, 2000, Intel Corp. + * All rights reserved. * * 2. License * @@ -239,7 +239,8 @@ AcpiHwInitialize ( * block is not fixed, so the buffer must be allocated with malloc */ - if (AcpiGbl_FADT->XGpe0Blk.Address && AcpiGbl_FADT->Gpe0BlkLen) + if (ACPI_VALID_ADDRESS (AcpiGbl_FADT->XGpe0Blk.Address) && + AcpiGbl_FADT->Gpe0BlkLen) { /* GPE0 specified in FADT */ @@ -264,7 +265,8 @@ AcpiHwInitialize ( AcpiGbl_Gpe0EnableRegisterSave = NULL; } - if (AcpiGbl_FADT->XGpe1Blk.Address && AcpiGbl_FADT->Gpe1BlkLen) + if (ACPI_VALID_ADDRESS (AcpiGbl_FADT->XGpe1Blk.Address) && + AcpiGbl_FADT->Gpe1BlkLen) { /* GPE1 defined */ @@ -460,7 +462,7 @@ AcpiHwPmtTicks (void) FUNCTION_TRACE ("AcpiPmtTicks"); - Ticks = AcpiOsIn32 ((ACPI_IO_ADDRESS) AcpiGbl_FADT->XPmTmrBlk.Address); + Ticks = AcpiOsIn32 ((ACPI_IO_ADDRESS) ACPI_GET_ADDRESS (AcpiGbl_FADT->XPmTmrBlk.Address)); return_VALUE (Ticks); } |