[PATCH 0/3] Improve I/O port access

Colin King colin.king at canonical.com
Tue Jan 15 12:25:32 UTC 2013


From: Colin Ian King <colin.king at canonical.com>

While testing on a Xen Dom0 I discovered that some port I/O causes
fwts to segfault.  This patchset adds some I/O port access helpers
that can catch these faults and will return an error rather than
just breaking fwts.

The latter two patches use the helper functions and also improve
the error handling in the fwts FADT test and cmosdump tool.

Colin Ian King (3):
  lib: fwts_ioport: add helper functions to do port I/O
  acpi: fadt: use new I/O port helpers to avoid segfaults
  lib: fwts_cmos: Use new I/O helpers, add more error checking

 src/acpi/fadt/fadt.c          |  43 +++++++++----
 src/lib/include/fwts.h        |   1 +
 src/lib/include/fwts_ioport.h |  32 ++++++++++
 src/lib/src/Makefile.am       |   1 +
 src/lib/src/fwts_cmos.c       |  42 ++++++++++---
 src/lib/src/fwts_ioport.c     | 136 ++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 235 insertions(+), 20 deletions(-)
 create mode 100644 src/lib/include/fwts_ioport.h
 create mode 100644 src/lib/src/fwts_ioport.c

-- 
1.8.0




More information about the fwts-devel mailing list