OSDN Git Service

Also take into account arm64 and mips64 for goldfish_dma_context aligment.
authorLingfeng Yang <lfy@google.com>
Tue, 21 Feb 2017 06:17:13 +0000 (22:17 -0800)
committerLingfeng Yang <lfy@google.com>
Wed, 22 Feb 2017 08:58:31 +0000 (08:58 +0000)
bug: 35618215

Change-Id: I147aeca391f97b0bccaed0b572b2fe13e627ad00

system/OpenglSystemCommon/goldfish_dma.h

index 5baa510..f6a2874 100644 (file)
@@ -43,7 +43,7 @@ struct goldfish_dma_ioctl_info {
 // userspace interface
 struct goldfish_dma_context {
     void* mapped;
-#if !defined(__x86_64__)
+#if !defined(__x86_64__) || !defined(__aarch64__) || !defined(__mips64__)
     int mapped_padding;
 #endif
     uint64_t sz; // size of reservation