commit | 9cadc8cbec34cefd6e550c50a5b3da1d02225f91 | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Fri Apr 11 09:31:40 2025 -0700 |
committer | Benjamin Cabé <kartben@gmail.com> | Thu Apr 17 00:57:19 2025 +0200 |
tree | abde444190b2800e622d462537c353193ec9913c | |
parent | 277fa9e8ac0ef5a7026d8ccc83274e4bc8b906d5 [diff] |
xtensa: userspace: use ADDX4 to calculate syscall table index When looking for jump address in the syscall table, we need to multiply the syscall ID by 4 before adding the address offset of the beginning of the table. This is due to the jump address being 32-bit (4 bytes). Instead of using two instructions to shift the ID by 4 first and then the addition, we can use one ADDX4 instruction to achieve the same result. Signed-off-by: Daniel Leung <daniel.leung@intel.com>