- 03 Dec, 2016 4 commits
-
-
Anas Nashif authored
Change-Id: Iccecc12218132ff1eae209d2dd17edaf71b94d5a Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Anas Nashif authored
Change-Id: Ic93535da51462cffbe6b19f79034f82a0344fe27 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Anas Nashif authored
Change-Id: I2a0b480b42bcb8daf8a941848eb59f35ffbf844a Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Andrew Boie authored
Memory accesses could be reordered before an irq_lock() or after an irq_unlock() without the memory barriers. See commit 15bc5377 for the ARM fix for a complete description of the issue and fix. Change-Id: I1d96fe0088d90150f0888c2893d017155fc0a0a7 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com> (cherry picked from commit bba445b3)
-
- 02 Dec, 2016 11 commits
-
-
Benjamin Walsh authored
Memory accesses could be reordered before an irq_lock() or after an irq_unlock() without the memory barriers. See commit 15bc5377 for the ARM fix for a complete description of the issue and fix. Change-Id: I056afb0406cabe0e1ce2612904e727ccce5f6308 Signed-off-by:
Benjamin Walsh <benjamin.walsh@windriver.com>
-
Benjamin Walsh authored
Memory accesses could be reordered before an irq_lock() or after an irq_unlock() without the memory barriers. See commit 15bc5377 for the ARM fix for a complete description of the issue and fix. Change-Id: Ic92a6b33f62a938d2252d68eccc55a5fb07c9114 Signed-off-by:
Benjamin Walsh <benjamin.walsh@windriver.com> (cherry picked from commit 1f8125a4)
-
Marcus Shawcroft authored
Add the missing memory clobber to irq_unlock() in order to prevent the compiler reordering memory operations over the unlock. Change-Id: If1d664079796618ed247ff5b33b8b3f85fb7e680 Signed-off-by:
Marcus Shawcroft <marcus.shawcroft@arm.com>
-
Marcus Shawcroft authored
The inline asm definition of irq_lock() on the ARM architecture marks the ASM as volatile which prevents the compiler from removing the isntruction but does provide any information to the compiler to prevent the inline ASM instruction being re-ordered relative to other instructions. The instruction used in irq_lock() do not touch memory, however in order to acheive their intended purpose they must be ordered relative to other memory access instruction. This is acheived by adding the "memory" clobber. Instances of the compiler inappropriately re-ordering irq_lock() calls relative to other instructions without this patch can be observed in the code generated for k_sleep() on NRF51 target boards. Signed-off-by:
Marcus Shawcroft <marcus.shawcroft@arm.com> Change-Id: I9d42d54cd9a50e8150c10ce6715af7ca2f5cfe51 (cherry picked from commit 15bc5377)
-
Mahavir Jain authored
If delayed work is already submitted or completed, then subsequent cancel should return -EINVAL as return status. Fixes ZEP-1373. Change-Id: I16bbacca7e31a5a5d8e5a89e729d70302ada6223 Signed-off-by:
Mahavir Jain <mjain@marvell.com> (cherry picked from commit 45f2ef65)
-
Anas Nashif authored
Change-Id: Ibb560b0382aadc76d393d76ab71dbef2b268ecf6 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Anas Nashif authored
Change-Id: Ib357207570e7f03434e66da748439983c1cdf27e Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Ramesh Thomas authored
Revise the document to reflect the latest changes including the updated concept of SOC interface instead of PMA. Simplified and enhanced areas that were known to cause confusion. Added descriptions of new APIs and usages. Jira: ZEP-1386 Change-Id: I5fa74d85245924f512c22d9d977dd0c9ea62b6ce Signed-off-by:
Ramesh Thomas <ramesh.thomas@intel.com>
-
Jithu Joseph authored
Certain structures and defines in this file are from from mbed's implementation. The file header is updated as per this. Change-Id: I688917cdd17cfc8b27d5b78181ced90df73c9efd Signed-off-by:
Jithu Joseph <jithu.joseph@intel.com>
-
Benjamin Walsh authored
The reversal of the meaning of a value of 0 from k_sem_take vs nano_sem_take has caused some issue when porting code from the legacy API to the new API, so put some emphasis on this difference. - Add a note in the API description. - Put the call to k_sem_take and the reversal of the return value inside of nano_sem_take on one line so that grepping on it shows the reversal. Change-Id: I2f4ba58dc087176d68b55371fa6e367b72559e70 Signed-off-by:
Benjamin Walsh <benjamin.walsh@windriver.com>
-
Anas Nashif authored
The current ARC GCC compiler used in Zephyr SDK v0.8.2 generates incorrect code when using the "-fno-omit-frame-pointer" option. This bug should have been fixed in the 2016.03 release of the compiler. Jira: ZEP-1243, ZEP-1403 Change-Id: I0901f55973c1ea37491b07bf625d0d1918803f3e Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
- 01 Dec, 2016 2 commits
-
-
Inaky Perez-Gonzalez authored
getenv() returns an string of unknown size, so Coverity warns that it might be used to overflow the stack in the call chain off conf_read_simple(). To avoid that, wisdom says copy to an string of known size and pass that. Change-Id: I9e468de0ae66429062027f58fe0a0a4e1197218f Coverity-ID: 150819 Signed-off-by:
Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
-
David B. Kinder authored
Change-Id: I02c02dfcfd5b12ba5df745b42eed3b55401d8fb0 Signed-off-by:
David B. Kinder <david.b.kinder@intel.com>
-
- 30 Nov, 2016 3 commits
-
-
Anas Nashif authored
Change-Id: Iffd4c117f5ac7696652f6458009821fb351205f8 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Maureen Helm authored
Change-Id: I90c6cc53a78696a49a1e64d513b6fe2a5b7c7ccf Signed-off-by:
Maureen Helm <maureen.helm@nxp.com>
-
Kien Dinh authored
Change-Id: I445beb8ea475d6f381baf9b4825ebd7a675721fb Signed-off-by:
Kien Dinh <kien.t.dinh@intel.com>
-
- 29 Nov, 2016 1 commit
-
-
Anas Nashif authored
Change-Id: I6c1592a77a7ad0a5bee28e03967345999353c4e8 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
- 28 Nov, 2016 10 commits
-
-
Benjamin Walsh authored
An IRQ would always register as a ZIL interrupt. Change-Id: If82a85f472a60512745652aacc7e8b7dfacaa268 Signed-off-by:
Benjamin Walsh <benjamin.walsh@windriver.com>
-
Benjamin Walsh authored
There is no FIRQ stack in the system in this case, so do not initialize it. Change-Id: I8bc068ce43ac8a39909994d8cc01ba0c6a17f4ae Signed-off-by:
Benjamin Walsh <benjamin.walsh@windriver.com>
-
Benjamin Walsh authored
The fact that a thread is timing out was tracked via two flags: the K_TIMING thread flag bit, and the thread's timeout's delta_ticks_from_prev being -1 or not. This duplication could potentially cause discrepancies if the two flags got out-of-sync, and there was no benfits to having both. Since timeouts that are not parts of a thread rely on the value of delta_ticks_from_prev, standardize on it. Since the K_TIMING bit is removed from the thread's flags, K_READY would not reflect the reality anymore. It is removed and replaced by _is_thread_prevented_froM_running(), which looks at the state flags that are relevant. A thread that is ready now is not prevented from running and does not have an active timeout. Change-Id: I902ef9fb7801b00626df491f5108971817750daa Signed-off-by:
Benjamin Walsh <benjamin.walsh@windriver.com>
-
Benjamin Walsh authored
Also remove NO_METRIC, which is not referenced anywhere anymore. Change-Id: Ieaedf075af070a13aa3d975fee9b6b332203bfec Signed-off-by:
Benjamin Walsh <benjamin.walsh@windriver.com>
-
Ramesh Thomas authored
When sleep instruction is called with interrupts enabled, the interrupt priority threshold bits need to be set. Only interrupts with equal or higher priority will wake the sleep. Currently it is set to 0 unintentionally and only priority 0 interrupt can wake the sleep. Jira: ZEP-1349 Change-Id: I927e259345cc37c5ecc4dfdcde996dd16443e61b Signed-off-by:
Ramesh Thomas <ramesh.thomas@intel.com>
-
Ramesh Thomas authored
The cpu context save function was manipulating stack and returning to C caller. This can corrupt stack if the calling function has data saved and it pops before entering deep sleep. Moved sleep functions into assembly to avoid this. Jira: ZEP-1345 Change-Id: I8a6d279ec14e42424f764d9ce8cbbef32149fe84 Signed-off-by:
Ramesh Thomas <ramesh.thomas@intel.com>
-
Jithu Joseph authored
Removes a redundant check flagged by coverity. Coverity-CID: 152005 Change-Id: I8cc3a64c42e04a2d52deed11d9022ed4a49baaa7 Signed-off-by:
Jithu Joseph <jithu.joseph@intel.com>
-
Inaky Perez-Gonzalez authored
Legacy FIFO operations were failing and thus the TC was failing to run. Stop using k_fifo_get() for allocation and use a bitmap allocator. A couple of the bitmap operations should be moved to a common header once ZEP-1347 is completed. Passes on all arches and boards, whitelist removed; ARM excluded though due to missing bitfield implementation as per ZEP-82. Note there is a false checkpatch positive in the decl of sys_bitfield_find_first_clear(). Change-Id: I5d43f804d6bec3a464124accbe3be238f9cade82 Signed-off-by:
Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Inaky Perez-Gonzalez authored
snprintf() implements the ability to foce a negative value through the (unsigned) size_t len parameter to allow the formatter to use a maximum size string. This is point less, we don't have as much memory and this is a recipe for all kinds of vulnerabilities. Kill the whole thing, the testcase it represents and thank Coverity for finding this thing. Whatever use it had before, it has no more. Change-Id: If422246548664699d8aa328a1b9304ef13cab7ea Coverity-ID: 131625 Coverity-ID: 131626 Signed-off-by:
Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
-
Benjamin Walsh authored
Initializing the interrupt stack before initializing (turning off) the watchdog on the FRDM board pushed the initialization of the watchdog too late, causing it to fire and reset the board. The board would be kept in a reboot loop. Move the initialization of the watchdog earlier: this runs on the main stack now, instead of the interrupt stack, the same stack the interrupt stack initalization code runs on. Change-Id: Ic0006f4f4f4090393571d8355a80dc9390c9fbc6 Signed-off-by:
Benjamin Walsh <benjamin.walsh@windriver.com> (cherry picked from commit eba01763)
-
- 27 Nov, 2016 2 commits
-
-
Szymon Janc authored
Applications expect service end handle as attribute value in userdata on discovery response callback. Jira: ZEP-1354 Change-Id: I664da4a7e054a531ad1c2c8cbc74367cb679ff03 Signed-off-by:
Szymon Janc <ext.szymon.janc@tieto.com>
-
Anas Nashif authored
Change-Id: Ieec2b3de4770e1717a826054e8264d1978ed23a8 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
- 24 Nov, 2016 5 commits
-
-
Carles Cufi authored
bt_enable_raw() needs to be called before spawning the tx thread, otherwise there might be an HCI command processed from the UART before the HCI driver has been opened and therefore initialized. Change-Id: I050158bd48bebaf8fa2cf6b11efb54b531f70079 Signed-off-by:
Carles Cufi <carles.cufi@nordicsemi.no>
-
Anas Nashif authored
Change-Id: I12bc617d6886050114d9f96cdf5935e36e79552a Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Johan Hedberg authored
Add changes to the Bluetooth subsystem since 1.5. Change-Id: I3a0554c7bc3c5d22cfb244c83152f3805809fd99 Signed-off-by:
Johan Hedberg <johan.hedberg@intel.com>
-
Javier B Perez authored
Added release-notes.rst file. Added MAINTAINER entry for the release notes. Change-Id: Ia2e7645c905e709f014e7d971337bcfc9cb59597 Signed-off-by:
Javier B Perez <javier.b.perez.hernandez@intel.com>
-
Benjamin Walsh authored
The assembler was passed immediate values that are too large for the limited Cortex-M0 thumb assembly. Load values in registers instead of using immediate values. Change-Id: Ib5541c92dea03e0efb1b88ab91eeb408d151a71b Signed-off-by:
Benjamin Walsh <benjamin.walsh@windriver.com>
-
- 23 Nov, 2016 2 commits
-
-
Vincenzo Frascino authored
This patch enables REBOOT when RUNTIME_NMI is selected via defconfig file. This action is required to prevent compilation errors. Change-Id: I06869cb86b1abc151974df66797a0b25ee62e166 Signed-off-by:
Vincenzo Frascino <vincenzo.frascino@linaro.org> (cherry picked from commit cc288335fbf9353b9c8af64fccefe96daa13dd8e)
-
Luiz Augusto von Dentz authored
If the original buffer cannot be reused, either by no having enough space for user data or if is fragmented, it can in fact be smaller than both the segment buffer and MPS. Change-Id: I59a537aff59c5d56b2883e9bd51f3a1a3932d348 Signed-off-by:
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
-