Skip to content

Commit

Permalink
arm: armv7-a: Fix kernel stack dump in arm_assert.c
Browse files Browse the repository at this point in the history
Summary:
- This commit fixes kernel stack dump information

Impact:
- Affects armv7-a with kernel build

Testing:
- Built with sama5d4-ek:knsh
- Not tested

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
  • Loading branch information
masayuki2009 authored and davids5 committed Oct 26, 2020
1 parent 3c4bf1a commit 904a602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static void up_dumpstate(void)
if (rtcb->xcp.kstack)
{
kstackbase = (uint32_t)rtcb->xcp.kstack +
CONFIG_ARCH_KERNEL_STACKSIZE - 4;
CONFIG_ARCH_KERNEL_STACKSIZE;

_alert("Kernel stack:\n");
_alert(" base: %08x\n", kstackbase);
Expand Down

0 comments on commit 904a602

Please sign in to comment.