zephyr/kernel
Peter Bigot 332b7df61b kernel: avoid implementation-defined behavior in timeout calculation
When to->dticks is an int64_t it may happen that the calculated
remaining time is a value that cannot be exactly represented in the
destination int32_t, producing an implementation-defined result which
can include a signal (interrupt).  Cap the maximum delay to the
largest value suported by the int32_t result.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-09-17 22:19:35 -04:00
..
include benchmarking: remove execution benchmarking code 2020-09-05 13:28:38 -05:00
atomic_c.c
cache_handlers.c
CMakeLists.txt
compiler_stack_protect.c
device.c kernel: device: invert sense of ready bit 2020-09-15 18:22:38 +02:00
errno.c
fatal.c
futex.c
idle.c
init.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
Kconfig benchmarking: remove execution benchmarking code 2020-09-05 13:28:38 -05:00
kheap.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mailbox.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mem_domain.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mem_slab.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mempool_sys.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mempool.c
mmu.c kernel: demote k_mem_map to z_mem_map 2020-09-03 14:24:38 -04:00
msg_q.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mutex.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
pipes.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
poll.c
queue.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sched.c kernel: sched: bug fix for trace and monitor 2020-09-17 09:30:22 +02:00
sem.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
smp.c
stack.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
system_work_q.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
thread_abort.c kernel: add z_thread_single_abort to private hdr 2020-09-02 15:02:06 -07:00
thread.c kernel: Apply IRQ offload API change 2020-09-02 13:48:13 +02:00
timeout.c kernel: avoid implementation-defined behavior in timeout calculation 2020-09-17 22:19:35 -04:00
timer.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
userspace_handler.c
userspace.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
version.c
work_q.c