ipc: binder invoker: Enlarge the DBINDER_HANDLE_BASE for the actv binder

Signed-off-by: Yu Qingsong <qs_cosmos@163.com>
This commit is contained in:
Yu Qingsong 2024-05-16 17:29:48 +08:00
parent 3fc575bd4f
commit df69294f1f

View File

@ -187,8 +187,13 @@ public:
public:
static constexpr int DEFAULT_WORK_THREAD_NUM = 16;
#ifdef CONFIG_ACTV_BINDER
/* The actv binder handle needs to be encoded with at least 31 bits */
static constexpr uint32_t DBINDER_HANDLE_BASE = 0x80000000;
#else
static constexpr uint32_t DBINDER_HANDLE_MAGIC = 6872; // 'D'(Binder) 'H'(andle)
static constexpr uint32_t DBINDER_HANDLE_BASE = 100000 * DBINDER_HANDLE_MAGIC;
#endif
static constexpr uint32_t DBINDER_HANDLE_COUNT = 100000;
static constexpr uint32_t DBINDER_HANDLE_RANG = 100;
static constexpr int32_t FOUNDATION_UID = 5523;