summaryrefslogtreecommitdiff
path: root/libion
diff options
context:
space:
mode:
authorHyesoo Yu <hyesoo.yu@samsung.com>2020-12-02 14:46:40 +0900
committerDaniel Mentz <danielmentz@google.com>2020-12-04 06:18:01 +0000
commit10573840cba072fb619de194e50ebea4f0e5c6ad (patch)
treeec9e09853d267cdb64080ed4e83886e2f1900eb7 /libion
parentaae1e929bf2e290e98bf2a302e504bf9742e1565 (diff)
ion: add protected flag on upper 16 bits.
The lower 16 bits are used by core ion, so upper 16 bits are reserved for heaps from GKI. Bug: 172159699 Signed-off-by: Hyesoo Yu <hyesoo.yu@samsung.com> Change-Id: I512ede0b30efebc61bf6eb090fc32faa49f129ce
Diffstat (limited to 'libion')
-rw-r--r--libion/include/hardware/exynos/ion.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libion/include/hardware/exynos/ion.h b/libion/include/hardware/exynos/ion.h
index 4d35262..d6acb54 100644
--- a/libion/include/hardware/exynos/ion.h
+++ b/libion/include/hardware/exynos/ion.h
@@ -53,10 +53,12 @@
#define EXYNOS_ION_HEAP_FA_PREV_MASK (1 << ION_EXYNOS_HEAP_ID_FA_PREV)
#define EXYNOS_ION_HEAP_FA_MODEL_MASK (1 << ION_EXYNOS_HEAP_ID_FA_MODEL)
+#define ION_EXYNOS_FLAG_PROTECTED (1 << 16)
+
#define ION_FLAG_CACHED 1
#define ION_FLAG_CACHED_NEEDS_SYNC 2 /* deprecated in the modern ion */
#define ION_FLAG_NOZEROED 8
-#define ION_FLAG_PROTECTED 16
+#define ION_FLAG_PROTECTED (16 | ION_EXYNOS_FLAG_PROTECTED)
#define ION_FLAG_SYNC_FORCE 32
#define ION_FLAG_MAY_HWRENDER 64
#define ION_FLAG_HW_EXTRA 128