zephyr/arch
Andy Ross 317178b88f sys_clock: Fix unsafe tick count usage
The system tick count is a 64 bit quantity that gets updated from
interrupt context, meaning that it's dangerously non-atomic and has to
be locked.  The core kernel clock code did this right.

But the value was also exposed to the rest of the universe as a global
variable, and virtually nothing else was doing this correctly.  Even
in the timer ISRs themselves, the interrupts may be themselves
preempted (most of our architectures support nested interrupts) by
code that wants to set timeouts and inspect system uptime.

Define a z_tick_{get,set}() API, eliminate the old variable, and make
sure everyone uses the right mechanism.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-10-16 15:03:10 -04:00
..
arc sys_clock: Fix unsafe tick count usage 2018-10-16 15:03:10 -04:00
arm arch: arm: re-program MPU stack guard upon userspace enter 2018-10-15 12:19:09 -05:00
common
nios2 kernel: Using the same paramenters names in a specific function 2018-09-28 07:58:19 +05:30
posix POSIX arch: Add stub for sys_arch_reboot() 2018-10-09 16:15:45 -04:00
riscv32 arch: Add LOG_PANIC to fault handlers 2018-09-27 13:11:26 +05:30
x86 kernel: Using the same paramenters names in a specific function 2018-09-28 07:58:19 +05:30
xtensa kernel: Using the same paramenters names in a specific function 2018-09-28 07:58:19 +05:30
CMakeLists.txt
Kconfig arch: add big endian support 2018-10-10 09:28:05 -04:00