git: kernel/acpi: Fix memory and port I/O functions in the OS services layer.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon May 19 21:18:57 PDT 2014


commit 7db43b0a0c201a8e450ca139559a72d15b5574c8
Author: Sascha Wildner <saw at online.de>
Date:   Tue May 20 06:17:05 2014 +0200

    kernel/acpi: Fix memory and port I/O functions in the OS services layer.
    
    This makes AcpiOsReadPort(), AcpiOsWritePort(), AcpiOsReadMemory()
    and AcpiOsWriteMemory() match the behavior requested in the "ACPI
    User Guide and Programmer Reference".
    
    When the width of the location that is read from or written to is less
    than the (return) value's width, the read functions must ensure the
    rest of the bits are zero and the write functions must write no more
    than the location's width.
    
    This should fix at least a number of temperature reading issues we
    were seeing, such as the messages we were getting lately:
    
    acpi_tz0: _TMP value is absurd, ignored (-204.0C)
    acpi_tz0: _TMP value is absurd, ignored (-204.0C)
    acpi_tz0: _TMP value is absurd, ignored (-203.0C)
    
    Found-in: FreeBSD

Summary of changes:
 sys/dev/acpica/Osd/OsdHardware.c | 15 +++------------
 sys/dev/acpica/Osd/OsdMemory.c   | 22 ++++++++--------------
 2 files changed, 11 insertions(+), 26 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7db43b0a0c201a8e450ca139559a72d15b5574c8


-- 
DragonFly BSD source repository



More information about the Commits mailing list