1 /*
2  *
3  * (C) COPYRIGHT 2012-2014 ARM Limited. All rights reserved.
4  *
5  * This program is free software and is provided to you under the terms of the
6  * GNU General Public License version 2 as published by the Free Software
7  * Foundation, and any use by you of this program is subject to the terms
8  * of such GNU licence.
9  *
10  * A copy of the licence is included with the program, and can also be obtained
11  * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12  * Boston, MA  02110-1301, USA.
13  *
14  */
15 
16 
17 
18 
19 
20 #include <mali_kbase.h>
21 
22 static struct kbasep_debug_assert_cb kbasep_debug_assert_registered_cb = {
23 	NULL,
24 	NULL
25 };
26 
kbase_debug_assert_register_hook(kbase_debug_assert_hook *func, void *param)27 void kbase_debug_assert_register_hook(kbase_debug_assert_hook *func, void *param)
28 {
29 	kbasep_debug_assert_registered_cb.func = func;
30 	kbasep_debug_assert_registered_cb.param = param;
31 }
32 
kbasep_debug_assert_call_hook(void)33 void kbasep_debug_assert_call_hook(void)
34 {
35 	if (kbasep_debug_assert_registered_cb.func != NULL)
36 		kbasep_debug_assert_registered_cb.func(kbasep_debug_assert_registered_cb.param);
37 }
38 KBASE_EXPORT_SYMBOL(kbasep_debug_assert_call_hook);
39 
40