debug_stubs.c 657 B

1234567891011121314151617181920212223
  1. /*
  2. * SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. // This module implements debug/trace stubs. The stub is a piece of special code which can invoked by OpenOCD
  7. // Currently one stub is used for GCOV functionality
  8. //
  9. #include "eri.h"
  10. #include "xtensa-debug-module.h"
  11. #include "esp_log.h"
  12. const static char *TAG = "esp_dbg_stubs";
  13. #define ESP_DBG_STUBS_TRAX_REG ERI_TRAX_TRIGGERPC
  14. void esp_dbg_stubs_ll_init(void *stub_table)
  15. {
  16. eri_write(ESP_DBG_STUBS_TRAX_REG, (uint32_t)stub_table);
  17. ESP_LOGV(TAG, "%s stubs %x", __func__, eri_read(ESP_DBG_STUBS_TRAX_REG));
  18. }