]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(versal): check smc_fid 23:16 bits
authorMichal Simek <michal.simek@amd.com>
Wed, 15 Feb 2023 11:39:22 +0000 (12:39 +0100)
committerMichal Šimek <monstr@monstr.eu>
Thu, 16 Feb 2023 12:55:38 +0000 (13:55 +0100)
commit4a50363aaeaa16edafcff17486006049b30e1e2f
tree7a8c098ce9a3a49258ff56b4bead69b8e7dae7f9
parent0069933a68d15c93b8a14ac0fd11d36ff3e96e92
fix(versal): check smc_fid 23:16 bits

23:16 bits when they gets to SMC handler should be all zeros but be
inside SIP Service Calls range which is defined as 0x82000000-0x8200ffff
or 0xc2000000-0xc200ffff. That's why make sure that code won't handle
any SMCs in SIP range out of predefined range.

Also fix MASK values to check the same range for PM/IPI calls to make
sure that masking covers all required bits including 23:16. Bits 15:12
are used for different class of requests.

Change-Id: I9d3e91aa521d6bb90f6b15b71ff1e89fa77ee379
Signed-off-by: Michal Simek <michal.simek@amd.com>
plat/xilinx/versal/sip_svc_setup.c
plat/xilinx/versal_net/sip_svc_setup.c