1 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 /* 3 * 4 * (C) COPYRIGHT 2012-2014, 2020-2021 ARM Limited. All rights reserved. 5 * 6 * This program is free software and is provided to you under the terms of the 7 * GNU General Public License version 2 as published by the Free Software 8 * Foundation, and any use by you of this program is subject to the terms 9 * of such GNU license. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, you can access it online at 18 * http://www.gnu.org/licenses/gpl-2.0.html. 19 * 20 */ 21 22 #include <mali_kbase.h> 23 24 static struct kbasep_debug_assert_cb kbasep_debug_assert_registered_cb = { 25 NULL, 26 NULL 27 }; 28 kbase_debug_assert_register_hook(kbase_debug_assert_hook * func,void * param)29void kbase_debug_assert_register_hook(kbase_debug_assert_hook *func, void *param) 30 { 31 kbasep_debug_assert_registered_cb.func = func; 32 kbasep_debug_assert_registered_cb.param = param; 33 } 34 kbasep_debug_assert_call_hook(void)35void kbasep_debug_assert_call_hook(void) 36 { 37 if (kbasep_debug_assert_registered_cb.func != NULL) 38 kbasep_debug_assert_registered_cb.func(kbasep_debug_assert_registered_cb.param); 39 } 40 KBASE_EXPORT_SYMBOL(kbasep_debug_assert_call_hook); 41 42