1. 13 Nov, 2016 2 commits
  2. 12 Nov, 2016 14 commits
    • 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
    • Daniel Thompson's avatar
      build: Document outputexports · 560afde9
      Daniel Thompson authored
      
      In addition to providing documentaton, we also modify the static_lib
      example to use outputexports instead of the double-include
      Makefile.toolchain trick. For this to work well we need to fix a tiny
      bug in the dependency handling in Makefile.inc.
      
      Change-Id: I6571bc681bc34155f37cff1eccc2ea12ed52ef07
      Signed-off-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
      560afde9
    • Jithu Joseph's avatar
      samples : usb: sample to demo USB UART console output · 2589d8b8
      Jithu Joseph authored
      
      Sample to show the USB UART console output.
      
      Jira : ZEP-775
      
      Change-Id: I70220daf8e63a0847b10cc094665ef6a4bc38907
      Signed-off-by: default avatarJithu Joseph <jithu.joseph@intel.com>
      2589d8b8
    • Jithu Joseph's avatar
      console : usb: USB UART console output support · fca0add2
      Jithu Joseph authored
      
      Add support for console output via the USB UART.
      Note that console input via the USB UART doesnt work.
      
      Adds a simulated poll method for UART interface exposed by USB.
      
      Jira : ZEP-775
      
      Change-Id: I357827ea52c027eb000baed80225f422df1f3358
      Signed-off-by: default avatarJithu Joseph <jithu.joseph@intel.com>
      fca0add2
    • Baohong Liu's avatar
      drivers: spi_flash: add erase boundary check and correct an error · a282872c
      Baohong Liu authored
      
      Add spi flash erase boundary check. The erase boundary must be
      4K-aligned. So, the flash chip will round down an non-4K aligned
      address to the nearest 4K boundary automatically. As a result of
      this, the erase area will start from a different address (if the
      API caller specifies an non-4K alighed address), even though the
      size of the erased area is the same as what is specified by the
      API caller. Let's add a boundary check to make sure the starting
      address (from the API caller) is 4K aligned.
      
      Correct an error in the highest address check. Because of the
      error, the erase api call will fail if the flash's highest
      address byte is involved.
      
      Jira: ZEP-1277 ZEP-1278
      
      Change-Id: I8b6be57cc8f636f94e5fe67d5a492841a8555005
      Signed-off-by: default avatarBaohong Liu <baohong.liu@intel.com>
      a282872c
    • Jon Moeller's avatar
      ext qmsi: Add config support and kernel events for enabling SoCWatch · 8358468f
      Jon Moeller authored
      
      tests: power_states app updated to support SoCWatch collection
      
      Add CONFIG_SOC_WATCH option for enabling the SoCWatch
       QMSI driver and associated instrumentation hooks.
      
      Bug fix for soc_watch.c to use local irq_lock/unlock
       This will be put into QMSI as well.
      
      JIRA: ZEP-1121
      
      Change-Id: I0514324e81ca02c1d01ffc2d6cf4d31aee491544
      Signed-off-by: default avatarJon Moeller <jon.moeller@intel.com>
      8358468f
    • Anas Nashif's avatar
      build: support pre-built host tools · ff23cb58
      Anas Nashif authored
      
      Right now the build system builds the host tools over and over again, in some
      environments especially when running in an IDE on windows for example,
      this is not desired and a set of pre-built host tools should be used.
      
      Provide an option to use pre-built tools instead of building them
      from source.
      
      To use, set PREBUILT_HOST_TOOLS to the path where all pre-built host tools
      are hosted. To get a prebuilt version of the host tools, build without the
      variable set and copy the generated host binaries from outdir. The following
      tools are supported:
      
      * conf
      * fixdep
      * gen_idt
      * gen_offset_header
      
      Jira: ZEP-237
      Change-Id: Iea505bfd0b50f851ee2781b5117bb6085ab20157
      Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
      ff23cb58
  3. 11 Nov, 2016 24 commits