[riot-commits] [RIOT-OS/RIOT] c12257: cpu: msp430-common: fix context save/restore

Hauke Petersen mail at haukepetersen.de
Tue Sep 22 12:45:14 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: c122571801c7d32655eb55413510e9decb1cda62
      https://github.com/RIOT-OS/RIOT/commit/c122571801c7d32655eb55413510e9decb1cda62
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2015-09-22 (Tue, 22 Sep 2015)

  Changed paths:
    M cpu/msp430-common/cpu.c
    M cpu/msp430-common/include/cpu.h
    M cpu/msp430-common/irq.c

  Log Message:
  -----------
  cpu: msp430-common: fix context save/restore

Previously, __restore_context was meddling with the to-be-restored
context SR on the stack, not correctly restoring GIE.
Now, we let the CPU restore the correct status register as saved in
__save_context.

Contains some simplification of the context save/restore logic.


  Commit: 483b59554abe7d710e4844029c1b60921c826403
      https://github.com/RIOT-OS/RIOT/commit/483b59554abe7d710e4844029c1b60921c826403
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2015-09-22 (Tue, 22 Sep 2015)

  Changed paths:
    M cpu/msp430fxyz/periph/uart.c

  Log Message:
  -----------
  cpu: msp430fxyz: fix usart ISR


  Commit: f93b58989dbacf1aaa8385c6322249c25e162d5a
      https://github.com/RIOT-OS/RIOT/commit/f93b58989dbacf1aaa8385c6322249c25e162d5a
  Author: Hauke Petersen <mail at haukepetersen.de>
  Date:   2015-09-22 (Tue, 22 Sep 2015)

  Changed paths:
    M cpu/msp430-common/cpu.c
    M cpu/msp430-common/include/cpu.h
    M cpu/msp430-common/irq.c
    M cpu/msp430fxyz/periph/uart.c

  Log Message:
  -----------
  Merge pull request #3837 from kaspar030/fix_msp430_context_switching

cpu: msp430-common: fix context save/restore


Compare: https://github.com/RIOT-OS/RIOT/compare/d629e999b91c...f93b58989dba


More information about the commits mailing list