Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Nov 13, 2016
  2. Nov 12, 2016
    • Anas Nashif's avatar
      kernel: event_logger: fixed assert checking for priority · 22a75145
      Anas Nashif authored
      
      prio is member of base, not k_thread struct.
      
      Change-Id: I77de52497e196eb058bf8850e25eabe42cb2ab14
      Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
      22a75145
    • Benjamin Walsh's avatar
      kernel: fix mailbox usage of SYS_DLIST_FOR_EACH_NODE() · ade6dc93
      Benjamin Walsh authored
      
      SYS_DLIST_FOR_EACH_NODE() is marked as non-safe when an item is removed
      from the list while looping over it. This is not true per-se, since the
      item, when removed, keeps its next and prev pointers intact; however, it
      is true if the item is then put into a list, be it a different one or
      the same one. To prevent this, SYS_DLIST_FOR_EACH_NODE_SAFE() must be
      used.
      
      _mbox_message_put() can remove items from the rx queue and then put them
      in the ready queue: this would cause the loop to start processing other
      ready threads as item in the rx queue.
      
      k_mbox_get() also removes items, from the tx queue, but does not seem to
      add them to another list; however, it now uses the safe version as well,
      since that is the proper usage.
      
      Change-Id: Ieccbff238fc8a036c0d53d873eaaf55f4f5a14af
      Signed-off-by: default avatarBenjamin Walsh <benjamin.walsh@windriver.com>
      Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
      ade6dc93
    • Johan Hedberg's avatar
      Bluetooth: Fix left-over usage of TICKS_NONE and TICKS_UNLIMITED · 1e20e8dc
      Johan Hedberg authored
      
      Switch left-over usage of TICKS_NONE and TICKS_UNLIMITED to the new
      unified kernel counterparts K_NO_WAIT and K_FOREVER.
      
      Change-Id: I2f2a16360e816f9f8791eb216deb3c70b8cc87df
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      1e20e8dc
    • Johan Hedberg's avatar
      Bluetooth: Flag NBLE as deprecated · 79f020be
      Johan Hedberg authored
      
      The NBLE driver is now deprecated and will be removed in a future
      Zephyr version.
      
      Change-Id: I50753f8cf8566ac1e4e73df480c96253c199e6a7
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      79f020be
    • Benjamin Walsh's avatar
      kernel/arch: consolidate tTCS and TNANO definitions · f6ca7de0
      Benjamin Walsh authored
      
      There was a lot of duplication between architectures for the definition
      of threads and the "nanokernel" guts. These have been consolidated.
      
      Now, a common file kernel/unified/include/kernel_structs.h holds the
      common definitions. Architectures provide two files to complement it:
      kernel_arch_data.h and kernel_arch_func.h. The first one contains at
      least the struct _thread_arch and struct _kernel_arch data structures,
      as well as the struct _callee_saved and struct _caller_saved register
      layouts. The second file contains anything that needs what is provided
      by the common stuff in kernel_structs.h. Those two files are only meant
      to be included in kernel_structs.h in very specific locations.
      
      The thread data structure has been separated into three major parts:
      common struct _thread_base and struct k_thread, and arch-specific struct
      _thread_arch. The first and third ones are included in the second.
      
      The struct s_NANO data structure has been split into two: common struct
      _kernel and arch-specific struct _kernel_arch. The latter is included in
      the former.
      
      Offsets files have also changed: nano_offsets.h has been renamed
      kernel_offsets.h and is still included by the arch-specific offsets.c.
      Also, since the thread and kernel data structures are now made of
      sub-structures, offsets have to be added to make up the full offset.
      Some of these additions have been consolidated in shorter symbols,
      available from kernel/unified/include/offsets_short.h, which includes an
      arch-specific offsets_arch_short.h. Most of the code include
      offsets_short.h now instead of offsets.h.
      
      Change-Id: I084645cb7e6db8db69aeaaf162963fe157045d5a
      Signed-off-by: default avatarBenjamin Walsh <benjamin.walsh@windriver.com>
      f6ca7de0
    • Benjamin Walsh's avatar
      build: add -I$(srctree)/kernel/unified/include to path · 779794cd
      Benjamin Walsh authored
      
      This will allow making some arch-specfic parts arch-agnostic. Some
      definitions that are currently in arch/<arch>/include will end up in
      kernel/unified/include.
      
      Change-Id: I4df71090e20a5599e70fb578b36f9211411b56ad
      Signed-off-by: default avatarBenjamin Walsh <benjamin.walsh@windriver.com>
      779794cd
    • Allan Stephens's avatar
      kernel: Eliminate use of KERNEL_V2 configuration option · dd07b477
      Allan Stephens authored
      
      The unified kernel is now the only supported kernel, so this
      option is unnessary. Eliminating this option also enables
      the removal of some legacy code that is no longer required.
      
      Change-Id: Ibfc339d643c8de16a2ed2009c9b468848b8b4972
      Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
      dd07b477
    • Johan Hedberg's avatar
      Bluetooth: log: Fix usage of legacy APIs · d9be4ab7
      Johan Hedberg authored
      
      Use k_current_get() instead of the deprecated sys_thread_self_get()
      API.
      
      Change-Id: I4ddb45f299373237690b2f4ca614e7fd3b6c0c36
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      d9be4ab7
    • Johan Hedberg's avatar
      drivers: console: Fix compilation error in uart_console.c · 488f72dd
      Johan Hedberg authored
      
      Fix compilation error when CONFIG_USB_UART_CONSOLE is not enabled:
      
      drivers/console/uart_console.c: In function 'uart_console_init':
      drivers/console/uart_console.c:497:12: error: unused variable 'dtr' [-Werror=unused-variable]
        uint32_t  dtr = 0;
      
      Change-Id: I592724150f86199f6a57354c3246197db2ac7a01
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      488f72dd
  3. Nov 11, 2016
Loading