commit | 03188006bd1bd4a479210527d31fb070794bd2f4 | [log] [tgz] |
---|---|---|
author | Arve Hjønnevåg <arve@android.com> | Fri Dec 13 14:16:18 2019 -0800 |
committer | Arve Hjønnevåg <arve@android.com> | Fri Dec 13 17:38:29 2019 -0800 |
tree | 45caf90b0365d5732fecc69d3c627f4918be1e9c | |
parent | 6b15362cc2fb7398fd471645d1e11b012a292aad [diff] |
[kernel][timer] Fix thread_sleep to not return with timer running on stack Call timer_cancel_sync before returning from thread_sleep to ensure the timer allocated on the stack is not still running. Fixes random stack corruption in code running after thread_sleep returns. Bug: 145560454 Change-Id: I1832b09b9e40fbb650ab613ca1f47cae5f6e3546
The LK embedded kernel. An SMP-aware kernel designed for small systems.
See https://github.com/littlekernel/lk for the latest version.
See https://github.com/littlekernel/lk/wiki for documentation.
This will get you a interactive prompt into LK which is running in qemu arm machine ‘virt’ emulation. type ‘help’ for commands.
note 1: for ubuntu: sudo apt-get install gcc-arm-none-eabi or fetch a prebuilt toolchain from http://newos.org/toolchains/arm-eabi-5.3.0-Linux-x86_64.tar.xz