[riot-commits] [RIOT-OS/RIOT] 0836cd: core: moved definition of KERNEL_PID_NULL

Oleg Hahm oleg at hobbykeller.org
Thu Aug 7 17:30:30 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 0836cd0b1897e12e637a78a20a1842f44a8339e3
      https://github.com/RIOT-OS/RIOT/commit/0836cd0b1897e12e637a78a20a1842f44a8339e3
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M core/include/kernel.h
    M core/include/kernel_types.h

  Log Message:
  -----------
  core: moved definition of KERNEL_PID_NULL

kernel_pid_t is defined in kernel_types.h, thus it makes sense to move
the macro for an invalid kernel pid there, too.


  Commit: 4b1a2f32eb32654e77348782ce96f5221da8252c
      https://github.com/RIOT-OS/RIOT/commit/4b1a2f32eb32654e77348782ce96f5221da8252c
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M drivers/at86rf231/at86rf231_rx.c
    M drivers/cc110x_ng/cc110x-rx.c
    M drivers/cc2420/cc2420_rx.c
    M sys/net/network_layer/sixlowpan/lowpan.c

  Log Message:
  -----------
  net: fix kernel_pid_t checks

KERNEL_PID_NULL is a negative number. If kernel_pid_t variables are
initialized to this value, one have to check for lt/gte 0.


  Commit: c2b0423918d087d1f8f56cd344c80ba9551dfd17
      https://github.com/RIOT-OS/RIOT/commit/c2b0423918d087d1f8f56cd344c80ba9551dfd17
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M core/include/kernel_types.h
    M core/sched.c
    M cpu/x86/include/x86_rtc.h
    M cpu/x86/x86_hwtimer.c
    M cpu/x86/x86_rtc.c
    M cpu/x86/x86_threading.c
    M drivers/at86rf231/at86rf231_rx.c
    M drivers/cc110x/cc1100_phy.c
    M drivers/cc110x_ng/cc110x-rx.c
    M drivers/cc2420/cc2420_rx.c
    M sys/chardev_thread.c
    M sys/net/network_layer/sixlowpan/border/border.c
    M sys/net/network_layer/sixlowpan/ip.c
    M sys/net/network_layer/sixlowpan/lowpan.c
    M sys/net/routing/etx_beaconing.c
    M sys/net/transport_layer/destiny/socket.c
    M sys/posix/pthread/pthread.c
    M sys/transceiver/transceiver.c

  Log Message:
  -----------
  core: renamed KERNEL_PID_NULL to KERNEL_PID_UNDEF

As @authmillenon pointed out the "null" in the old name is somewhat
misleading, since the actual value is -1.


  Commit: aa2ecf621638a652d587894852e6472191302c6c
      https://github.com/RIOT-OS/RIOT/commit/aa2ecf621638a652d587894852e6472191302c6c
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M boards/avsextrem/drivers/avsextrem-smb380.c
    M boards/msb-430-common/uart1.c
    M boards/msba2-common/drivers/msba2-uart0.c
    M boards/redbee-econotag/drivers/redbee_uart1.c
    M boards/redbee-econotag/drivers/redbee_uart2.c
    M boards/telosb/uart.c
    M boards/wsn430-common/wsn430-uart0.c
    M boards/z1/uart.c
    M cpu/cc430/cc430-rtc.c
    M cpu/native/net/interface.c
    M cpu/x86/x86_rtc.c
    M examples/ccn-lite-client/main.c
    M examples/ccn-lite-relay/main.c
    M sys/net/ccn_lite/ccnl-ext-appserver.c
    M sys/net/network_layer/sixlowpan/border/border.c
    M sys/net/network_layer/sixlowpan/border/flowcontrol.c
    M sys/net/routing/rpl/rpl.c
    M sys/net/routing/rpl/trickle.c
    M sys/net/transport_layer/destiny/tcp.c
    M sys/posix/pthread/pthread.c
    M sys/uart0/uart0.c
    M tests/nativenet/main.c
    M tests/posix_semaphore/main.c
    M tests/queue_fairness/main.c
    M tests/thread_cooperation/main.c
    M tests/thread_msg_block_w_queue/main.c
    M tests/thread_msg_block_wo_queue/main.c
    M tests/thread_msg_seq/main.c

  Log Message:
  -----------
  initialize kernel_pid_t correctly


  Commit: 0ad7b170ed2686820cb3dd5718b2800f5783a241
      https://github.com/RIOT-OS/RIOT/commit/0ad7b170ed2686820cb3dd5718b2800f5783a241
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M drivers/at86rf231/at86rf231_rx.c
    M drivers/cc110x_ng/cc110x-rx.c
    M drivers/cc2420/cc2420_rx.c
    M examples/rpl_udp/helper.c
    M sys/net/network_layer/sixlowpan/lowpan.c
    M sys/net/transport_layer/destiny/destiny.c
    M sys/posix/pthread/pthread.c
    M sys/shell/commands/sc_transceiver.c
    M sys/transceiver/transceiver.c
    M tests/posix_semaphore/main.c

  Log Message:
  -----------
  make kernel_pid_t comparisons consistent


  Commit: 93ef4346e9d9e66a6da0079e19628d84ae9c9487
      https://github.com/RIOT-OS/RIOT/commit/93ef4346e9d9e66a6da0079e19628d84ae9c9487
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M examples/ccn-lite-client/main.c
    M examples/ccn-lite-relay/main.c
    M sys/net/ccn_lite/util/ccnl-riot-client.c

  Log Message:
  -----------
  ccnl: duplicate variable names

Some variables had multiple definitions, but could be removed or
declared with a smaller scope.


  Commit: 74fbff1df25827e2f97f5c563116c28b56aad23b
      https://github.com/RIOT-OS/RIOT/commit/74fbff1df25827e2f97f5c563116c28b56aad23b
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M sys/net/network_layer/sixlowpan/ip.c
    M sys/posix/pthread/pthread.c

  Log Message:
  -----------
  net: changed name of internal variable

To avoid naming conflicts + made variable static and volatile as it
should be.


  Commit: 2e396af2488550500cfad2410a393a793e20d80d
      https://github.com/RIOT-OS/RIOT/commit/2e396af2488550500cfad2410a393a793e20d80d
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M tests/nativenet/main.c

  Log Message:
  -----------
  tests: combine declaration and definition


  Commit: 1de5c2b4a04858a8d5caaba871de9d4f22920951
      https://github.com/RIOT-OS/RIOT/commit/1de5c2b4a04858a8d5caaba871de9d4f22920951
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M boards/avsextrem/drivers/avsextrem-smb380.c
    M cpu/cortex-m0_common/thread_arch.c
    M cpu/cortex-m4_common/thread_arch.c
    M cpu/x86/x86_hwtimer.c
    M cpu/x86/x86_rtc.c
    M examples/ccn-lite-client/main.c
    M sys/net/ccn_lite/ccnl-riot-compat.c
    M sys/net/ccn_lite/ccnl-riot-compat.h
    M sys/net/network_layer/sixlowpan/border/border.c
    M sys/net/network_layer/sixlowpan/border/border.h
    M sys/net/network_layer/sixlowpan/ip.c
    M sys/net/network_layer/sixlowpan/ip.h
    M sys/net/network_layer/sixlowpan/lowpan.c
    M sys/net/transport_layer/destiny/socket.h
    M sys/posix/pthread/pthread.c
    M tests/thread_msg/main.c
    M tests/unittests/tests-lib/tests-lib-ringbuffer.c

  Log Message:
  -----------
  fixed remaining variables to kernel_pid_t


  Commit: de2f164ee6ab9367d4560f6159411284e9799fd7
      https://github.com/RIOT-OS/RIOT/commit/de2f164ee6ab9367d4560f6159411284e9799fd7
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-08-07 (Thu, 07 Aug 2014)

  Changed paths:
    M boards/avsextrem/drivers/avsextrem-smb380.c
    M boards/msb-430-common/uart1.c
    M boards/msba2-common/drivers/msba2-uart0.c
    M boards/redbee-econotag/drivers/redbee_uart1.c
    M boards/redbee-econotag/drivers/redbee_uart2.c
    M boards/telosb/uart.c
    M boards/wsn430-common/wsn430-uart0.c
    M boards/z1/uart.c
    M core/include/kernel.h
    M core/include/kernel_types.h
    M core/sched.c
    M cpu/cc430/cc430-rtc.c
    M cpu/cortex-m0_common/thread_arch.c
    M cpu/cortex-m4_common/thread_arch.c
    M cpu/native/net/interface.c
    M cpu/x86/include/x86_rtc.h
    M cpu/x86/x86_hwtimer.c
    M cpu/x86/x86_rtc.c
    M cpu/x86/x86_threading.c
    M drivers/at86rf231/at86rf231_rx.c
    M drivers/cc110x/cc1100_phy.c
    M drivers/cc110x_ng/cc110x-rx.c
    M drivers/cc2420/cc2420_rx.c
    M examples/ccn-lite-client/main.c
    M examples/ccn-lite-relay/main.c
    M examples/rpl_udp/helper.c
    M sys/chardev_thread.c
    M sys/net/ccn_lite/ccnl-ext-appserver.c
    M sys/net/ccn_lite/ccnl-riot-compat.c
    M sys/net/ccn_lite/ccnl-riot-compat.h
    M sys/net/ccn_lite/util/ccnl-riot-client.c
    M sys/net/network_layer/sixlowpan/border/border.c
    M sys/net/network_layer/sixlowpan/border/border.h
    M sys/net/network_layer/sixlowpan/border/flowcontrol.c
    M sys/net/network_layer/sixlowpan/ip.c
    M sys/net/network_layer/sixlowpan/ip.h
    M sys/net/network_layer/sixlowpan/lowpan.c
    M sys/net/routing/etx_beaconing.c
    M sys/net/routing/rpl/rpl.c
    M sys/net/routing/rpl/trickle.c
    M sys/net/transport_layer/destiny/destiny.c
    M sys/net/transport_layer/destiny/socket.c
    M sys/net/transport_layer/destiny/socket.h
    M sys/net/transport_layer/destiny/tcp.c
    M sys/posix/pthread/pthread.c
    M sys/shell/commands/sc_transceiver.c
    M sys/transceiver/transceiver.c
    M sys/uart0/uart0.c
    M tests/nativenet/main.c
    M tests/posix_semaphore/main.c
    M tests/queue_fairness/main.c
    M tests/thread_cooperation/main.c
    M tests/thread_msg/main.c
    M tests/thread_msg_block_w_queue/main.c
    M tests/thread_msg_block_wo_queue/main.c
    M tests/thread_msg_seq/main.c
    M tests/unittests/tests-lib/tests-lib-ringbuffer.c

  Log Message:
  -----------
  Merge pull request #1549 from OlegHahm/kernel_pid_fixup

Handle kernel_pid_t consistently


Compare: https://github.com/RIOT-OS/RIOT/compare/b6cf2fa37fbf...de2f164ee6ab


More information about the commits mailing list