lib: cpus: sanity check pointers before use
The cpu_ops structure contains a lot of function pointers. It
is a good idea to verify that the function pointer is not NULL
before executing it.

This patch sanity checks each pointer before use to prevent any
unforeseen crashes. These checks have been enabled for debug
builds only.

Change-Id: Ib208331c20e60f0c7c582a20eb3d8cc40fb99d21
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
1 parent 64b2a23 commit 601e3ed209eb508c9e46a5ef18a562613338dcc8
@Varun Wadekar Varun Wadekar authored on 1 Oct 2019
Manish Pandey committed on 24 Aug 2020
Showing 1 changed file
View
lib/cpus/aarch64/cpu_helpers.S