mali_kbase_debug.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #include <mali_kbase.h>
  16. static struct kbasep_debug_assert_cb kbasep_debug_assert_registered_cb = {
  17. NULL,
  18. NULL
  19. };
  20. void kbase_debug_assert_register_hook(kbase_debug_assert_hook *func, void *param)
  21. {
  22. kbasep_debug_assert_registered_cb.func = func;
  23. kbasep_debug_assert_registered_cb.param = param;
  24. }
  25. void kbasep_debug_assert_call_hook(void)
  26. {
  27. if (kbasep_debug_assert_registered_cb.func != NULL)
  28. kbasep_debug_assert_registered_cb.func(kbasep_debug_assert_registered_cb.param);
  29. }
  30. KBASE_EXPORT_SYMBOL(kbasep_debug_assert_call_hook);