[riot-commits] [RIOT-OS/RIOT] 063a15: Change reboot signature.

Oleg Hahm oleg at hobbykeller.org
Sun Mar 16 18:42:24 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 063a15ce9b9d284ab234fc6413a7201a3e25849a
      https://github.com/RIOT-OS/RIOT/commit/063a15ce9b9d284ab234fc6413a7201a3e25849a
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-03-10 (Mon, 10 Mar 2014)

  Changed paths:
    M core/include/kernel.h
    M core/include/kernel_internal.h
    A core/reboot.c
    M cpu/arm_common/arm_cpu.c
    M cpu/arm_common/crash.c
    M cpu/lpc1768/cpu.c
    M cpu/lpc1768/crash.c
    M cpu/msp430-common/cpu.c
    M cpu/msp430-common/crash.c
    M cpu/native/crash.c
    M cpu/native/native_cpu.c
    M sys/shell/commands/sc_sys.c

  Log Message:
  -----------
  Change reboot signature.

Change from `void reboot(void)` to `int reboot(int mode)`.
Move reboot definition to core, rename architecture implementations
from reboot to reboot_arch.
Declare reboot mode(s) in kernel.h, reboot_arch in kernel_internal.h
Currently only one reboot mode is handled, its use is enforced.

Rationale:
A reboot function is already defined in <unistd.h> on BSD systems.
(See: http://www.openbsd.org/cgi-bin/man.cgi?query=reboot&sektion=2)
This patch not only allows native to build sensibly on these systems
but also streamlines RIOTs compatability with existing software.


  Commit: 3c54edf4d68982827258d57104347e1172ad2063
      https://github.com/RIOT-OS/RIOT/commit/3c54edf4d68982827258d57104347e1172ad2063
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-03-16 (Sun, 16 Mar 2014)

  Changed paths:
    M core/include/kernel.h
    M core/include/kernel_internal.h
    A core/reboot.c
    M cpu/arm_common/arm_cpu.c
    M cpu/arm_common/crash.c
    M cpu/lpc1768/cpu.c
    M cpu/lpc1768/crash.c
    M cpu/msp430-common/cpu.c
    M cpu/msp430-common/crash.c
    M cpu/native/crash.c
    M cpu/native/native_cpu.c
    M sys/shell/commands/sc_sys.c

  Log Message:
  -----------
  Merge pull request #822 from LudwigOrtmann/reboot_signature

core: change reboot signature.


Compare: https://github.com/RIOT-OS/RIOT/compare/a134bb423804...3c54edf4d689


More information about the commits mailing list