1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/target/hosted
Thomas Martitz 34b0311d0e hosted/pcm/alsa: Use alternate signal stack for the async callback.
Signals are by default executed on the user stack, i.e. the stack of
the currently active thread. This has two problems:
1) The stack size of the current stack is likely insufficient (unless
using sigaltstack threads) because our stack sizes are normally
below MINSIGSTKSIZE which is needed to deliver a signal.
2) Some of our asm code does nasty tricks with the stack pointer. When a
signal comes in during this bad things can happen, e.g. random memory
being overwritten or simply a crash.

Using a well defined stack fixes this. This is comparable with the
separate irq stack on native targets.
2012-01-21 18:39:19 +01:00
..
android remove cargo-cult empty i2c-target.h 2012-01-08 00:41:33 +00:00
maemo Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
sdl remove cargo-cult empty i2c-target.h 2012-01-08 00:41:33 +00:00
ypr0 ascodec-target.h: remove 2012-01-08 01:43:16 +00:00
cpuinfo-linux.c *frequency_linux(): factorize 2012-01-04 00:34:02 +00:00
cpuinfo-linux.h *frequency_linux(): factorize 2012-01-04 00:34:02 +00:00
pcm-alsa.c hosted/pcm/alsa: Use alternate signal stack for the async callback. 2012-01-21 18:39:19 +01:00
rtc.c Return -1 for not implemented RTC functions. 2011-03-08 21:36:47 +00:00
thread-arm.c thread.c includes gcc_extensions.h and thread-XXX.c files are includes inside thread.c therefore do not require their own. 2011-12-10 20:47:59 +00:00
thread-unix.c Add rockbox copyright header with proper credits for kugel 2011-03-05 15:38:10 +00:00
thread-win32.c Implement cooperative threads on hosted platforms using C code. 2011-02-18 22:46:01 +00:00