Skip to content

Commit

Permalink
[re_kernel] 缩小范围
Browse files Browse the repository at this point in the history
  • Loading branch information
lzghzr committed Jul 7, 2024
1 parent 1a10ae4 commit 03cf403
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions re_kernel/re_kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,14 +512,16 @@ static long calculate_offsets() {
}
}
break;
} else if ((binder_transaction_buffer_release_src[i] & MASK_STR_Rn_SP_Rt_4) == INST_STR_Rn_SP_Rt_4) {
binder_transaction_buffer_release_ver5 = IZERO;
} else if ((binder_transaction_buffer_release_src[i] & MASK_MOV_Rm_4_Rn_WZR) == INST_MOV_Rm_4_Rn_WZR) {
binder_transaction_buffer_release_ver5 = IZERO;
} else if ((binder_transaction_buffer_release_src[i] & MASK_STR_Rn_SP_Rt_3) == INST_STR_Rn_SP_Rt_3) {
binder_transaction_buffer_release_ver4 = IZERO;
} else if ((binder_transaction_buffer_release_src[i] & MASK_MOV_Rm_3_Rn_WZR) == INST_MOV_Rm_3_Rn_WZR) {
binder_transaction_buffer_release_ver4 = IZERO;
} else if (i < 0x10) {
if ((binder_transaction_buffer_release_src[i] & MASK_STR_Rn_SP_Rt_4) == INST_STR_Rn_SP_Rt_4) {
binder_transaction_buffer_release_ver5 = IZERO;
} else if ((binder_transaction_buffer_release_src[i] & MASK_MOV_Rm_4_Rn_WZR) == INST_MOV_Rm_4_Rn_WZR) {
binder_transaction_buffer_release_ver5 = IZERO;
} else if ((binder_transaction_buffer_release_src[i] & MASK_STR_Rn_SP_Rt_3) == INST_STR_Rn_SP_Rt_3) {
binder_transaction_buffer_release_ver4 = IZERO;
} else if ((binder_transaction_buffer_release_src[i] & MASK_MOV_Rm_3_Rn_WZR) == INST_MOV_Rm_3_Rn_WZR) {
binder_transaction_buffer_release_ver4 = IZERO;
}
}
}
#ifdef CONFIG_DEBUG
Expand Down

0 comments on commit 03cf403

Please sign in to comment.