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 <[email protected]>
  • Loading branch information
masayuki2009 committed Oct 23, 2020
1 parent 7ad5d2e commit 920390f
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 920390f

Please sign in to comment.