zephyr/samples
Andy Ross 9e37e80a1d samples/userspace/shared_mem: Add volatile to interthread data
This test uses bare variables to synchronize state between threads,
but had forgotten volatile qualifiers on all the data.  So the
compiler was free to reorder and make assumptions that aren't valid
when the values are being written from other CPUs.

Single-cpu operation was fine because the code would always hit an
external function call like k_sleep() that would force it to re-read
from memory every time there was a context switch (timeslicing isn't
enabled on this test and the threads are cooperative), but on SMP the
volatiles can change at any time and we could see spurious state
mixups and hangs.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2020-02-03 09:31:56 -05:00
..
application_development samples: Add sample 'application_development/out_of_tree_driver' 2020-01-22 09:26:12 -05:00
basic samples: minimal: kconfig: Do not assign promptless MEMORY_PROTECTION 2020-01-14 11:06:24 -05:00
bluetooth samples: bluetooth/peripheral: Fix test variant name 2020-01-28 15:10:45 -06:00
boards console: kconfig: Do not assign promptless CONSOLE_HAS_DRIVER 2020-01-14 15:42:33 +01:00
cpp_synchronization samples & tests: Correct main() type 2019-12-16 11:27:56 +01:00
display samples: display: Enhance lvgl sample to support touch input 2020-02-01 08:50:16 -05:00
drivers drivers: kscan: Extend callback arguments to 32-bits 2020-02-01 08:50:16 -05:00
hello_world tests: fix test identifiers 2019-12-09 15:53:44 -05:00
mpu global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
net samples: net: echo_client: Add Kconfig option to run a number of times 2020-02-03 09:04:12 -05:00
nfc/nfc_hello cleanup: include/: move misc/byteorder.h to sys/byteorder.h 2019-06-27 22:55:49 -04:00
philosophers samples: philosophers: Disable networking 2019-12-18 10:35:15 +02:00
portability samples: cmsis_rtos_v1: Grow stack size to the maximum allowed 2020-01-20 18:33:34 -05:00
posix samples & tests: Correct main() type 2019-12-16 11:27:56 +01:00
sensor samples: sht3xd: kconfig: Do not assign promptless SHT3XD_TRIGGER 2020-01-16 07:50:05 -06:00
shields treewide: use full path to sensor.h header 2020-01-26 17:52:12 +01:00
smp tests: fix test identifiers 2019-12-09 15:53:44 -05:00
subsys samples/subsys/settings: add nrf targets supports 2020-01-31 07:45:52 -05:00
synchronization tests: fix test identifiers 2019-12-09 15:53:44 -05:00
testing/integration tests: fix test identifiers 2019-12-09 15:53:44 -05:00
userspace samples/userspace/shared_mem: Add volatile to interthread data 2020-02-03 09:31:56 -05:00
video samples: video: Fix board reference name 2019-10-30 18:33:18 +01:00
classic.rst
index.rst samples: display: Move LVGL sample 2020-01-16 21:01:41 -05:00