diff options
author | Alexey Romanov <[email protected]> | 2023-08-30 17:08:50 +0300 |
---|---|---|
committer | Neil Armstrong <[email protected]> | 2023-09-11 11:45:26 +0200 |
commit | 0d423c4a78984dd02f6596d6fd9dd40446eec517 (patch) | |
tree | 31c09dc2b3b7c4936fb9a65425ce831b3b79e79c /scripts/gdb/linux/slab.py | |
parent | 0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff) |
drivers: meson: sm: correct meson_sm_* API retval handling
1. Following the ARM SMC32 calling convention, the return value
from secure monitor is a 32-bit signed integer. This patch changes
the type of the return value of the function meson_sm_call().
2. Now, when meson_sm_call() returns a 32-bit signed integer, we need
to ensure that this value is not negative. It is important to check
that the return value is not negative in both the meson_sm_call_read()
and meson_sm_call_write() functions.
3. Add a comment explaining why it is necessary to check if the SMC
return value is equal to 0 in the function meson_sm_call_read().
It is not obvious when reading this code.
Signed-off-by: Alexey Romanov <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Neil Armstrong <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/slab.py')
0 files changed, 0 insertions, 0 deletions