diff options
-rw-r--r-- | sysutils/pciutils/distinfo | 3 | ||||
-rw-r--r-- | sysutils/pciutils/patches/patch-lib_i386-io-sunos.h | 53 |
2 files changed, 55 insertions, 1 deletions
diff --git a/sysutils/pciutils/distinfo b/sysutils/pciutils/distinfo index 9ed82feea72..1ce194b5c66 100644 --- a/sysutils/pciutils/distinfo +++ b/sysutils/pciutils/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.27 2017/11/20 03:14:42 msaitoh Exp $ +$NetBSD: distinfo,v 1.28 2018/01/31 13:21:55 jperkin Exp $ SHA1 (pciutils-3.5.6.tar.gz) = 9f22fe9fccf1c5089167dc534409df8bd724f43d RMD160 (pciutils-3.5.6.tar.gz) = d4c89bdcff620646de5cc847f93d598822799168 @@ -7,3 +7,4 @@ Size (pciutils-3.5.6.tar.gz) = 436463 bytes SHA1 (patch-aa) = d8caa8b69987d14397fd863d776a533e4c19b26e SHA1 (patch-ab) = 881db39792c9d72f527438e2b475ac2ea842b536 SHA1 (patch-ac) = 4b90e99c051391b9cd3a6c1f5781f41b4a855c29 +SHA1 (patch-lib_i386-io-sunos.h) = afb666796a6b220d868a41e4fb9fd9e42152faed diff --git a/sysutils/pciutils/patches/patch-lib_i386-io-sunos.h b/sysutils/pciutils/patches/patch-lib_i386-io-sunos.h new file mode 100644 index 00000000000..d628de5ccd8 --- /dev/null +++ b/sysutils/pciutils/patches/patch-lib_i386-io-sunos.h @@ -0,0 +1,53 @@ +$NetBSD: patch-lib_i386-io-sunos.h,v 1.1 2018/01/31 13:21:55 jperkin Exp $ + +Fix assembly syntax to work with clang. + +--- lib/i386-io-sunos.h.orig 2011-01-07 21:04:28.000000000 +0000 ++++ lib/i386-io-sunos.h +@@ -27,7 +27,7 @@ static inline u8 + inb (u16 port) + { + u8 v; +- __asm__ __volatile__ ("inb (%w1)":"=a" (v):"Nd" (port)); ++ __asm__ __volatile__ ("inb %w1":"=a" (v):"Nd" (port)); + return v; + } + +@@ -35,7 +35,7 @@ static inline u16 + inw (u16 port) + { + u16 v; +- __asm__ __volatile__ ("inw (%w1)":"=a" (v):"Nd" (port)); ++ __asm__ __volatile__ ("inw %w1":"=a" (v):"Nd" (port)); + return v; + } + +@@ -43,24 +43,24 @@ static inline u32 + inl (u16 port) + { + u32 v; +- __asm__ __volatile__ ("inl (%w1)":"=a" (v):"Nd" (port)); ++ __asm__ __volatile__ ("inl %w1":"=a" (v):"Nd" (port)); + return v; + } + + static inline void + outb (u8 value, u16 port) + { +- __asm__ __volatile__ ("outb (%w1)": :"a" (value), "Nd" (port)); ++ __asm__ __volatile__ ("outb %w1": :"a" (value), "Nd" (port)); + } + + static inline void + outw (u16 value, u16 port) + { +- __asm__ __volatile__ ("outw (%w1)": :"a" (value), "Nd" (port)); ++ __asm__ __volatile__ ("outw %w1": :"a" (value), "Nd" (port)); + } + + static inline void + outl (u32 value, u16 port) + { +- __asm__ __volatile__ ("outl (%w1)": :"a" (value), "Nd" (port)); ++ __asm__ __volatile__ ("outl %w1": :"a" (value), "Nd" (port)); + } |