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