This is an automated email from Gerrit. Paul Fertser ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2301
-- gerrit commit 945ad8292984baa2fbae19a11a25e3b0a1d80b0c Author: Paul Fertser <[email protected]> Date: Mon Sep 15 12:14:31 2014 +0400 rtos/rtos.c: fix stack alignment calculation for already aligned values Change-Id: I7ed16dc6b87af74463121bb7f0f509c721b83682 Reported-by: Jon Burgess <[email protected]> Signed-off-by: Paul Fertser <[email protected]> diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 9ceeb26..20a1c89 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -460,7 +460,8 @@ int rtos_generic_stack_read(struct target *target, tmp_str_ptr = *hex_reg_list; new_stack_ptr = stack_ptr - stacking->stack_growth_direction * stacking->stack_registers_size; - if (stacking->stack_alignment != 0) { + if (stacking->stack_alignment && + (new_stack_ptr & (stacking->stack_alignment - 1))) { /* Align new stack pointer to x byte boundary */ new_stack_ptr = (new_stack_ptr & (~((int64_t) stacking->stack_alignment - 1))) + -- ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
