[MTHCA] bugfix: fixes memory registration on 32-bit platforms. Virtual addresses...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 Sep 2006 13:36:55 +0000 (13:36 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 Sep 2006 13:36:55 +0000 (13:36 +0000)
Submitted by: Fabian Tillier [ftillier@silverstorm.com]

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@481 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/hca_memory.c

index 2e65fbe..8155f7e 100644 (file)
@@ -88,7 +88,7 @@ mlnx_register_mr (
        // register mr \r
        mr_p = ibv_reg_mr(ib_pd_p, map_qp_ibal_acl(p_mr_create->access_ctrl), \r
                p_mr_create->vaddr, p_mr_create->length, \r
-               (uint64_t)(ULONG_PTR)(void*)p_mr_create->vaddr, um_call );\r
+               (uint64_t)p_mr_create->vaddr, um_call );\r
        if (IS_ERR(mr_p)) {\r
                err = PTR_ERR(mr_p);\r
                HCA_PRINT(TRACE_LEVEL_ERROR, HCA_DBG_MEMORY,\r