summaryrefslogtreecommitdiff
path: root/core/cortex-m0/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m0/panic.c')
-rw-r--r--core/cortex-m0/panic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/cortex-m0/panic.c b/core/cortex-m0/panic.c
index 4fe69fddb1..26447e4b7a 100644
--- a/core/cortex-m0/panic.c
+++ b/core/cortex-m0/panic.c
@@ -24,8 +24,7 @@ static int bus_fault_ignored;
static struct panic_data * const pdata_ptr = PANIC_DATA_PTR;
/* Preceded by stack, rounded down to nearest 64-bit-aligned boundary */
-static const uint32_t pstack_addr = (CONFIG_RAM_BASE + CONFIG_RAM_SIZE
- - sizeof(struct panic_data)) & ~7;
+static const uint32_t pstack_addr = ((uint32_t)pdata_ptr) & ~7;
/**
* Print the name and value of a register