rk3368: iommu: fix 32bit iommu work error in 64bit kernel
authorSimon <xxm@rock-chips.com>
Tue, 6 Jan 2015 06:13:31 +0000 (14:13 +0800)
committerSimon <xxm@rock-chips.com>
Mon, 2 Mar 2015 03:17:33 +0000 (11:17 +0800)
commit8a29c30c7c41050e3065feaa6a9715fd6acafadb
tree47ac1e4321bdfa0f4e30ad2de244278a58637908
parent5321cb58d447437472fd678cced3e1a185872f7f
rk3368: iommu: fix 32bit iommu work error in 64bit kernel

unsigned long has 8bytes in 64bit kernel,Maybach iommu each entry
both dte and pte has 4bytes,so we can not use unsigned long type
to define the entry address,otherwise,wrong page table will be set up,
that will cause page fault.So,replace unsigned long with unsigned int to
define the entry address

Signed-off-by: Simon <xxm@rock-chips.com>
drivers/iommu/rockchip-iommu.c
drivers/iommu/rockchip-iommu.h
drivers/iommu/rockchip-iovmm.c