diff options
Diffstat (limited to 'kernel/gsp_phys_booter.c')
| -rw-r--r-- | kernel/gsp_phys_booter.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c index 0e319c1..4918731 100644 --- a/kernel/gsp_phys_booter.c +++ b/kernel/gsp_phys_booter.c @@ -19164,14 +19164,18 @@ static bool gsp_phys_gr_mme_window_has_draw_ia(const u32 *win, u32 n) if ((op == 1u || op == 3u || op == 5u) && cnt && r + 1u + cnt <= n) span = 1u + cnt; - for (k = 0; k < span; k++) { - u32 m = ((h & 0xfffu) << 2) + 4u * k; - - if (k && op != 1u && op != 3u) - break; - if (m == 0x3800u + 34u * 8u) - return true; - } + /* + * eng89p: only the RUN HEADER's own method selects a CALL. + * The client's DRAW_IAB call is a distinct header + * (0xa00a0e44: op=5 ONE_INCR, cnt=10, m0=0x3910). Matching + * interior words of a wide op=1/3 run produced the c997-c1001 + * false positive (a 4353-word state run with m0=0x804 whose + * interior offset happens to be 0x3910), so a real CALL never + * reached the held-call path. + */ + if (((h & 0xfffu) << 2) == 0x3800u + 34u * 8u) + return true; + (void)k; r += span; } return false; |
