rom_set_ns_api_permission() function
Set NS API Permission Allow or disallow the specific NS API (note all NS APIs default to disabled). ns_api_num configures ARM-NS access to the given API. When an NS API is disabled, calling it will return BOOTROM_ERROR_NOT_PERMITTED. NOTE: All permissions default to disallowed after a reset.