diff options
Diffstat (limited to 'drivers/android')
-rw-r--r-- | drivers/android/Kconfig | 13 | ||||
-rw-r--r-- | drivers/android/binder.c | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/drivers/android/Kconfig b/drivers/android/Kconfig index 63ed9ceebf7b..7502ac3086c1 100644 --- a/drivers/android/Kconfig +++ b/drivers/android/Kconfig @@ -31,6 +31,19 @@ config ANDROID_BINDER_DEVICES created. Each binder device has its own context manager, and is therefore logically separated from the other devices. +config ANDROID_BINDER_IPC_32BIT + bool + depends on !64BIT && ANDROID_BINDER_IPC + default y if ANDROID_VERSION < 0x09000000 + ---help--- + The Binder API has been changed to support both 32 and 64bit + applications in a mixed environment. + + Enable this to support an old 32-bit Android user-space (v4.4 and + earlier). + + Note that enabling this will break newer Android user-space. + config ANDROID_BINDER_IPC_SELFTEST bool "Android Binder IPC Driver Selftest" depends on ANDROID_BINDER_IPC diff --git a/drivers/android/binder.c b/drivers/android/binder.c index b0c9d3548123..d1dfbe34fa7c 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -71,6 +71,10 @@ #include <linux/security.h> #include <linux/spinlock.h> +#ifdef CONFIG_ANDROID_BINDER_IPC_32BIT +#define BINDER_IPC_32BIT 1 +#endif + #include <uapi/linux/android/binder.h> #include "binder_alloc.h" #include "binder_trace.h" |