]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vc04_services: Convert pointers in shared state to offsets
authorMichael Zoran <mzoran@crowfest.net>
Wed, 19 Oct 2016 22:58:34 +0000 (15:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2016 13:21:27 +0000 (15:21 +0200)
commitb5f7f97b97267a3fa1d51062b652011e052f4808
tree8ce14ca9216b66439f7f0d16e50cad55a6f21b55
parent06b830a1b5bebfdbb27c5b48c4aaadc9df8a205a
staging: vc04_services: Convert pointers in shared state to offsets

The arm processor core and the GPU have a shared data structure.
This structure contains pointers to base linux kernel objects such as
events.  The size of the pointer changes between 32 bit and 64 bit,
so it is necessary to convert these pointers to offsets from the
beginning of the state structure.

Luckly, the GPU does not interpret these pointers/offsets,
but this change is necessary to keep the structure the same since
the GPU code is outside the scope of the linux kernel
and can't be easily changed.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h