flashrom: Properly convert 32-bit pointers to u64_t.

For arm64 with 32-bit userspace, pointers such as 0xff96ebf8 were
incorrectly getting converted to u64_t 0xffffffffff96ebf8 in the
spi_ioc_transfer which was causing ioctl()s to be rejected by
the kernel.

BUG=chrome-os-partner:30795
BRANCH=rush_ryu
TEST='flashrom -V' no longer reports all ioctls as failing with EFAULT

Change-Id: I5a15b4ca5d9657c3cb1ddccd42eafd91c852dd26
Signed-off-by: David Riley <davidriley@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/209910
Reviewed-by: David Hendricks <dhendrix@chromium.org>
1 file changed