diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2017-06-07 18:08:11 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2017-06-07 18:08:11 +0000 |
commit | 287e7a861a9450205aff916c0963b436b97a2774 (patch) | |
tree | 563130eb791371681f0878c279c2a1bef79b2681 /sys/compat/linuxkpi/common/include/linux/io.h | |
parent | d90bf7d850cd3be6b865a4b6783bbdae85e9ac58 (diff) | |
download | src-287e7a861a9450205aff916c0963b436b97a2774.tar.gz src-287e7a861a9450205aff916c0963b436b97a2774.zip |
Add more #ifdef arch checks to the linuxkpi
arm, mips, and powerpc all implement pmap_mapdev_attr() and pmap_unmapdev(),
so add those archs to the checks. powerpc also includes the atomic_swap_*()
functions, so add that to the supported list as well. Not tested except by
compiling powerpc.
Reviewed by: markj
Notes
Notes:
svn path=/head/; revision=319656
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/io.h')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h index 176479865637..5eb58719fe07 100644 --- a/sys/compat/linuxkpi/common/include/linux/io.h +++ b/sys/compat/linuxkpi/common/include/linux/io.h @@ -180,7 +180,8 @@ _outb(u_char data, u_int port) } #endif -#if defined(__i386__) || defined(__amd64__) +#if defined(__i386__) || defined(__amd64__) || \ + defined(__arm__) || defined(__mips__) || defined(__powerpc__) void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr); #else #define _ioremap_attr(...) NULL |