- 09 Jun, 2017 17 commits
-
-
Ravi kumar Veeramally authored
Empty RPL HBH header will be inserted while finalizing IPv6 packet but updated after finding nexthop and sent the packet. In case of Bluetooth or multicast dst address it was missed. Resulted in empty RPL HBH header and packet dropped at peer node. It should be updated in all circumstances. Jira: ZEP-2088 Signed-off-by:
Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
-
Jukka Rissanen authored
The mbedtls debugging function was set before the ssl config struct was initialized. This meant that it was not possible to activate mbedtls debug prints. This commit sets the debug print option after the config struct has been initialized. Fixed also the debug prints which print extra \n which looks very bad in debugging outputs. This commit does not enable mbedtls debugging, it just makes it possible to output mbedtls debug prints. In order to get mbedlts debug prints one needs to do this: * set DEBUG_THRESHOLD to >0 in http_server.c * enable CONFIG_NET_DEBUG_HTTP in project config file * enable MBEDTLS_DEBUG_C in mbedtls config file (see file pointed by CONFIG_MBEDTLS_CFG_FILE option) * in qemu, one needs to increase the size of the available RAM, this setting does the trick, CONFIG_RAM_SIZE=300 Signed-off-by:
Jukka Rissanen <jukka.rissanen@linux.intel.com>
-
Paul Sokolovsky authored
Semantics of ENOENT error as used previously is "named entity not found", whereas for "I/O handle is not valid", there's EBADF. For example, POSIX/SUSV2 doesn't even list ENOENT as a possible error for accept(), connect(), recv(), etc. whereas it lists EBADF, e.g.: http://pubs.opengroup.org/onlinepubs/7908799/xns/connect.html Signed-off-by:
Paul Sokolovsky <paul.sokolovsky@linaro.org>
-
Leandro Pereira authored
Add clarification that the DNS server configuration must be edited in the respective prj.conf file. JIRA: ZEP-2040 Signed-off-by:
Leandro Pereira <leandro.pereira@intel.com>
-
David B. Kinder authored
Draft of 1.8 release notes with heading and jira items from draft doc. Added 1.8 release notes to index. Signed-off-by:
David B. Kinder <david.b.kinder@intel.com>
-
Andrew Boie authored
On some devices, when k_cpu_idle() was called we were getting interrupts that were not the timer interrupt. On bbc_micro a power clock control driver interrupt was happening instead and k_cpu_idle() was returning without the system tick advancing, failing the test. The clock control interrupts seem to only happen early in device boot; moving the idle test much later lets the test pass on this board (and likely all other NRF5 based boards). Issue: ZEP-2257 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Anas Nashif authored
Also increase ISR stack to make it run on Quark D2000 CRB. Jira: ZEP-2224 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Kumar Gala authored
When we build with newlib enabled and utilizing one of the other variants (like having floating point enabled) we need to have the proper library path setup to find the library. This is mimicked after what we do in Makefile.toolchain.zephyr for newlib. Issue: ZEP-2240 Signed-off-by:
Kumar Gala <kumar.gala@linaro.org>
-
Andrew Boie authored
Stack sentinel doesn't prevent corruption, it just notices when it happens. Any memory could be in a bad state and it's more appropriate to take the entire system down rather than just kill the thread. Fatal testcase will still work since it installs its own _SysFatalErrorHandler. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
- _SysFatalErrorHandler is supposed to be user-overridable. The test case now installs its own handler to show that this has happened properly. - Use TC_PRINT() TC_ERROR() macros - Since we have out own _SysFatalErrorHandler, show that k_panic() works - Show that _SysFatalErrorHandler gets invoked with the expected reason code for some of the scenarios. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
Fixes an issue where if a thread calls k_panic() or k_oops() with interrupts locked, control would return to the thread and it would only be aborted after interrupts were unlocked again. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
This function is intended to be easily overridable by applications. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
One of the stack sentinel policies was to check the sentinel any time a cooperative context switch is done (i.e, _Swap is called). This was done by adding a hook to _check_stack_sentinel in every arch's __swap function. This way is cleaner as we just have the hook in one inline function rather than implemented in several different assembly dialects. The check upon interrupt is now made unconditionally rather than checking if we are calling __swap, since the check now is only called on cooperative _Swap(). The interrupt is always serviced first. Issue: ZEP-2244 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
The wiki directions indicate that this script should be used, and openocd.sh doesn't even work. Switch to pyocd.sh by default. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
The Sam3x HAL defines __NVIC_PRIO_BITS to 4. Fixes an issue where interrupt priorities and masking were not being done correctly. Issue: ZEP-2243 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Anas Nashif authored
We were missing license boilerplate in many files, add them Jira: ZEP-1464 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Sharron LIU authored
The sample app "static_lib" is very important to Zephyr user, which demonstrate how to build and link a static lib. ISSM team wanted to integrate this app in their IDE for quark platforms. However they find the in "static_lib/hello_world/Makefile" BOARD is hardcoded as qemu_x86. This patch supports other BOARD passed from build command. I have verified this app working fine @Arduino101. Signed-off-by:
Sharron LIU <sharron.liu@intel.com>
-
- 08 Jun, 2017 9 commits
-
-
Andrew Boie authored
The hard-coded value of 10ms doesn't take the system configured amount of ticks per second, nor does it account for an unlucky tick advance which causes the test to fail very intermittently in QEMU. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
David B. Kinder authored
fixed literalinclude warning that referenced beyond end of file and added lineno-start option to show correct line number of included file Signed-off-by:
David B. Kinder <david.b.kinder@intel.com>
-
Sharron LIU authored
Per ISSM team feedbacks: “demostrating” >> “demonstrating” “demonstates” >> ”demonstrates” Signed-off-by:
Sharron LIU <sharron.liu@intel.com>
-
Andrew Boie authored
Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
Nothing about this test requires tickless idle and it's not even turned on in prj.conf. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
The kernel tracks time slice usage with the _time_slice_elapsed global. Every time the timer interrupt goes off and the timer driver calls _nano_sys_clock_tick_announce() with the elapsed time, this is added to _time_slice_elapsed. If it exceeds the total time slice, the thread is moved to the back of the queue for that priority level and _time_slice_elapsed is reset to zero. In a non-tickless kernel, this is the only time _time_slice_elapsed is reset. If a thread uses up a partial time slice, and then cooperatively switches to another thread, the next thread will inherit the remaining time slice, causing it not to be able to run as long as it ought to. There does exist code to properly reset the elapsed count, but it was only compiled in a tickless kernel. Now it is built any time CONFIG_TIMESLICING is enabled. Issue: ZEP-2107 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Anas Nashif authored
Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
- 07 Jun, 2017 14 commits
-
-
chunlin authored
The REGION bits (bit[3:0]) of MPU_RBAR register can specify the number of the region to update if the VALID bit (bit[4]) is also set. If the bit[3:0] of "region_addr" are not zero, might cause to update unexpected region. This could happen since we might not declare stack memory with specific alignment. This patch will mask the bit[4:0] of "region_addr" to prevent updating unexpected region. Signed-off-by:
Chunlin Han <chunlin.han@linaro.org>
-
Andrew Boie authored
Just search for it in the system PATH. Issue: ZEP-2211 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
64-bit types were not being handled properly and depending on the calling convention could result in garbage values being printed. We still truncate these to 32-bit values, the predominant use-case is printing timestamp delta values which generally fit in a 32-bit value. However we are no longer printing random stuff. Test case for printk() updated appripriately to catch this regression. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Harry Jiang authored
Signed-off-by:
Harry Jiang <explora26@gmail.com>
-
Justin Watson authored
Signed-off-by:
Justin Watson <jwatson5@gmail.com>
-
Justin Watson authored
Signed-off-by:
Justin Watson <jwatson5@gmail.com>
-
Carles Cufi authored
Having tried and tested building Zephyr using the standard SDK on Windows 10 using the new WSL (Windows Subsystem for Linux), add the documentation so that others can benefit from the functionality. Signed-off-by:
Carles Cufi <carles.cufi@nordicsemi.no>
-
Anas Nashif authored
When checking for line length limits, ignore lines with Signed-off-by. Some developers have a long name that would not fit within the limits. Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Harry Jiang authored
Signed-off-by:
Harry Jiang <explora26@gmail.com>
-
Andrew Boie authored
Issue: ZEP-634 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
Issue: ZEP-2172 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
Need to set CXXFLAGS just like we did CFLAGS. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Carles Cufi authored
On MSYS2, the #include paths for GCC need to be in native format (Windows-style paths) since GCC is a native Windows application and therefore requires standard paths. Signed-off-by:
Carles Cufi <carles.cufi@nordicsemi.no>
-
David Brown authored
Instead of requiring the dts overlay files to be at the top level directory (where make is invoked), allow this default to be overridden by setting DTS_OVERLAY_DIR. This is a directory where the overlays themselves (which are still named $(BOARD_NAME).overlay) will live. Change-Id: Ie9796afbd27971650b7636a36149c0d1f8e2b9fb Signed-off-by:
David Brown <david.brown@linaro.org>
-