OSDN Git Service

amdgpu: fix 32-on-64 support (v2)
authorJammy Zhou <Jammy.Zhou@amd.com>
Thu, 7 May 2015 03:38:28 +0000 (11:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Aug 2015 17:47:49 +0000 (13:47 -0400)
commit14070057d8cb70a0574065b96e1f0d25f6d4c533
tree2c145ab63e0858d54cfba2b5c131cfbdd294c361
parenta4c832117940880c28eec15bfae8040f2a93a733
amdgpu: fix 32-on-64 support (v2)

0xffffffff was appended to the higher 32bit with (intptr_t) when use
32bit libdrm_amdgpu.so with 64bit kernel, and it caused segmentation
fault for 32bit application.

v2: switch to uintptr_t

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
amdgpu/amdgpu_bo.c