|
|
@@ -1,16 +1,9 @@
|
|
|
-// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
|
|
|
-//
|
|
|
-// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
-// you may not use this file except in compliance with the License.
|
|
|
-// You may obtain a copy of the License at
|
|
|
-
|
|
|
-// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
-//
|
|
|
-// Unless required by applicable law or agreed to in writing, software
|
|
|
-// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
-// See the License for the specific language governing permissions and
|
|
|
-// limitations under the License.
|
|
|
+/*
|
|
|
+ * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
|
|
+ *
|
|
|
+ * SPDX-License-Identifier: Apache-2.0
|
|
|
+ */
|
|
|
+
|
|
|
#include "freertos/xtensa_context.h"
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
#include "freertos/task.h"
|
|
|
@@ -44,6 +37,7 @@ void panic_print_registers(const void *f, int core)
|
|
|
{
|
|
|
XtExcFrame *frame = (XtExcFrame *) f;
|
|
|
int *regs = (int *)frame;
|
|
|
+ (void)regs;
|
|
|
|
|
|
const char *sdesc[] = {
|
|
|
"PC ", "PS ", "A0 ", "A1 ", "A2 ", "A3 ", "A4 ", "A5 ",
|
|
|
@@ -115,6 +109,7 @@ static void print_illegal_instruction_details(const void *f)
|
|
|
return;
|
|
|
}
|
|
|
volatile uint32_t *pepc = (uint32_t *)epc;
|
|
|
+ (void)pepc;
|
|
|
|
|
|
panic_print_str("Memory dump at 0x");
|
|
|
panic_print_hex(epc);
|