Skip to content
Commit ab8403c4 authored by Roland Dreier's avatar Roland Dreier
Browse files

IB/mthca: Avoid alignment traps when writing doorbells



Architectures such as ia64 see alignment traps when doing a 64-bit 
read from __be32 doorbell[2] arrays to do doorbell writes in 
mthca_write64().  Fix this by just passing the two halves of the 
doorbell value into mthca_write64().  This actually improves the 
generated code by allowing the compiler to see what's going on better.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 744ea922
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment