Date: Tue, 20 Jul 2010 19:38:38 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/acpica/Osd OsdHardware.c OsdMemory.c Message-ID: <201007211831.o6LIVEEY099076@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jkim 2010-07-20 19:38:38 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/dev/acpica/Osd OsdHardware.c OsdMemory.c Log: SVN rev 210313 on 2010-07-20 19:38:38Z by jkim MFC: r209965, r209966, r210129, r210137, r210155, r210157 - According to ACPICA User Guide and Programmer Reference, the read data must be zero extended to fill the 32-bit or 64-bit return value even if the bit width of the port or location is less than 32 or 64. - Use pmap_mapdev()/pmap_unmapdev() to map device memory instead of using AcpiOsMapMemory()/AcpiOsUnmapMemory() (-> pmap_mapbios()/pmap_unmapbios()) for AcpiOsReadMemory() and AcpiOsWriteMemory(). Although they do not sound too obvious, these functions are exclusively used to access memory mapped IO in ACPICA. - Remove 64-bit access from AcpiOsReadMemory() and AcpiOsWriteMemory(). These functions do not support 64-bit access. Likewise, return error when 64-bit access is requested for PCI configuration space. - Simplify AcpiOsReadPort() and AcpiOsWritePort() with iodev_read_*() and iodev_write_*(). This removes unnecessary uses of temporary macros as well. There is no functional change after this (verified with md5(1) on amd64). Revision Changes Path 1.23.2.3 +21 -56 src/sys/dev/acpica/Osd/OsdHardware.c 1.16.2.2 +10 -22 src/sys/dev/acpica/Osd/OsdMemory.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007211831.o6LIVEEY099076>