Ignore:
Timestamp:
Feb 23, 2012, 2:44:56 AM (13 years ago)
Author:
shl
Message:

Ensure AcpiGoToSleep in memory when called to power off.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1-0/src/helpers/acpih.c

    r406 r407  
    128128    else
    129129    {
     130        char cTmp;
    130131        G_ulCount++;
     132        /* Force the ACPI shutdown function to be in memory before DosShutdown() called
     133         * This is probably not the best place to do this, but it is the easiest
     134         * @@added V1.0.9 (2012-02-22) [slevine]: additional ACPI support, code from David Azarewicz
     135         */
     136        cTmp = *((volatile char *)pAcpiGoToSleep); /* Ensure paged in */
     137        cTmp = *(((volatile char *)pAcpiGoToSleep)+4096); /* Ensure paged in */
    131138        return(pAcpiStartApi(phACPI));
    132139    }
Note: See TracChangeset for help on using the changeset viewer.