summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-01-13 09:47:01 +0100
committerThomas Martitz <kugel@rockbox.org>2012-01-21 18:39:19 +0100
commit34b0311d0eb906bd801cc1e9a329ed211b81496f (patch)
treeb76d82b8ecb94aab048c58d2b6f3c23b57e15b7a /apps/codecs
parent109084d5cbaeee26373ecf1b765d9507ccbbe63e (diff)
downloadrockbox-34b0311d0eb906bd801cc1e9a329ed211b81496f.tar.gz
rockbox-34b0311d0eb906bd801cc1e9a329ed211b81496f.zip
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.
Diffstat (limited to 'apps/codecs')
0 files changed, 0 insertions, 0 deletions