[riot-commits] [RIOT-OS/RIOT] 7b9d19: make system calls safer/clean up headers

LudwigOrtmann ludwig.ortmann at fu-berlin.de
Wed Nov 13 12:51:19 CET 2013


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 7b9d199ec80aec60bfac5d956e483a5bfa868d3a
      https://github.com/RIOT-OS/RIOT/commit/7b9d199ec80aec60bfac5d956e483a5bfa868d3a
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M boards/native/Makefile.include
    M boards/native/drivers/native-uart0.c
    M boards/native/include/board_internal.h
    M cpu/native/hwtimer_cpu.c
    M cpu/native/include/cpu.h
    A cpu/native/include/native_internal.h
    M cpu/native/include/nativenet_internal.h
    M cpu/native/irq_cpu.c
    M cpu/native/lpm_cpu.c
    M cpu/native/native_cpu.c
    M cpu/native/net/tap.c
    M cpu/native/rtc/posix-rtc.c
    M cpu/native/startup.c
    A cpu/native/syscalls.c

  Log Message:
  -----------
  make system calls safer/clean up headers

wrap some libc functions that do system calls (terminal output)
wrap read/write with syscall guard
define real_read/write (next dynamic linker find for read/write)
guard system calls in remaining code
introduce native_internhal.h
throw out some debug statements that break things
clean up includes a bit
declare board_init in native_internhal.h
add -ldl to LINKFLAGS for cpu/syscalls


  Commit: 9f080c54c6c93d8fc7f669a41587ca2666670eb1
      https://github.com/RIOT-OS/RIOT/commit/9f080c54c6c93d8fc7f669a41587ca2666670eb1
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M cpu/native/irq_cpu.c
    M cpu/native/native_cpu.c

  Log Message:
  -----------
  fix race in thread_yield, cpu_switch_context_exit

call *context only with interrupts disabled, use isr trampoline for
this if necessary


  Commit: 2c7070bf0c7202e1d924994c91f508f4b3cfdf9e
      https://github.com/RIOT-OS/RIOT/commit/2c7070bf0c7202e1d924994c91f508f4b3cfdf9e
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M cpu/native/irq_cpu.c
    M cpu/native/tramp.S

  Log Message:
  -----------
  disable interrupts for sighnd ctx switch


  Commit: 1df56ed47bc85e8f767f7a4d71d903356f4cb2d2
      https://github.com/RIOT-OS/RIOT/commit/1df56ed47bc85e8f767f7a4d71d903356f4cb2d2
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M cpu/native/net/tap.c

  Log Message:
  -----------
  cope with SIGIO behaviour

SIGIO appears to be edge triggered, therefore we need to read
continuously until no more data is available


  Commit: c764728398d5779e5cde25aeeac8a2d84fd63ee4
      https://github.com/RIOT-OS/RIOT/commit/c764728398d5779e5cde25aeeac8a2d84fd63ee4
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M cpu/native/hwtimer_cpu.c
    M cpu/native/include/native_internal.h
    M cpu/native/startup.c

  Log Message:
  -----------
  pre-init native hwtimer

make it behaver more like a regular timer


  Commit: 9a3b03eef4a82cfcff6f78c005e348859e59feea
      https://github.com/RIOT-OS/RIOT/commit/9a3b03eef4a82cfcff6f78c005e348859e59feea
  Author: LudwigOrtmann <ludwig.ortmann at fu-berlin.de>
  Date:   2013-11-13 (Wed, 13 Nov 2013)

  Changed paths:
    M boards/native/Makefile.include
    M boards/native/drivers/native-uart0.c
    M boards/native/include/board_internal.h
    M cpu/native/hwtimer_cpu.c
    M cpu/native/include/cpu.h
    A cpu/native/include/native_internal.h
    M cpu/native/include/nativenet_internal.h
    M cpu/native/irq_cpu.c
    M cpu/native/lpm_cpu.c
    M cpu/native/native_cpu.c
    M cpu/native/net/tap.c
    M cpu/native/rtc/posix-rtc.c
    M cpu/native/startup.c
    A cpu/native/syscalls.c
    M cpu/native/tramp.S

  Log Message:
  -----------
  Merge pull request #323 from LudwigOrtmann/native_fixes

Native fixes


Compare: https://github.com/RIOT-OS/RIOT/compare/69d4f9a4bd9f...9a3b03eef4a8


More information about the commits mailing list