- 10 Dec, 2014 14 commits
-
-
Christopher Ferris authored
-
Elliott Hughes authored
-
Elliott Hughes authored
Although the LP32 mips sigset_t is large enough to represent all signals, their jmp_buf is too small. This test succeeded on arm and x86 because the RT signals were never in the 'expected' sigset_t, so the equality comparison with the 'actual' sigset_t worked fine --- everyone was blind to the RT signal. On mips the tests fail because the 'expected' sigset_t does contain the RT signal but the 'actual' doesn't because the jmp_buf only saves and restores the first 32 signals. There are 32 free bits (currently used as padding) in the LP32 mips jmp_buf, and they might choose to use those to provide better support than the other two platforms, but I'll leave that to them. It will be easy to just remove the #if defined(__LP64__) from this change in that case. For mips64 it's not to late to increase the size of the jmp_buf and fix the setjmp family, but since there are decisions to be made here for LP32, I'll leave it all to Imagination folks... Bug: 16918359 Change-Id: I6b723712fce0e9210dafa165d8599d950b2d3500
-
Elliott Hughes authored
-
Yabin Cui authored
-
Christopher Ferris authored
Bug: 18686270 Change-Id: I800a6f0940060218413df652d74aca91f6a339f8
-
Elliott Hughes authored
Make sure we adjust the stack pointer so a signal can't overwrite data. Bug: 15195265 Change-Id: I5ab9469a82cb214c32f40a713268a1ab74a4c6fa
-
Elliott Hughes authored
-
Jiangli Yuan authored
Directly save data into stack without properly adjustment of stack point is dangous. For example, if a signal comes, kernel will put sigframe into userspace's stack, which will overwrite the saved data if sp is not adjusted properly. Bug: 15195265 Change-Id: Iea0cadfd3b94d50cf40252ad52fe5950811b9192 Signed-off-by:
Jiangli Yuan <a6808c@motorola.com>
-
Yabin Cui authored
Bug: 18627763 Change-Id: Ib1c406320f0ecc3705d19183a48f986cdf57c279
-
Elliott Hughes authored
-
Elliott Hughes authored
Be safe by default. Change-Id: I6c4a3f1fd4eee3a651b3162ce95b7e873de57521
-
Elliott Hughes authored
-
Elliott Hughes authored
Change-Id: I8bb511840f3cd98d5008034e405d82e923bd3203
-
- 09 Dec, 2014 18 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
Change-Id: I866097d8468aa8f326117d072444ebbc2a690719
-
Elliott Hughes authored
-
Elliott Hughes authored
Change-Id: I2c2ca47f5a21b78754c03deb3e9467ab79d9d033
-
Yabin Cui authored
-
Yabin Cui authored
-
Yabin Cui authored
Change-Id: I7a8dbb74bd622693c9fef60bd779687207517b7d
-
Yabin Cui authored
Bug: 18489947 Change-Id: I2e834d68bc10ca5fc7ebde047b517a3074179475
-
Elliott Hughes authored
-
Elliott Hughes authored
We can rely on the compiler's builtins. Tested on arm, arm64, mips, x86, and x86-64. Change-Id: I0f774ed7e85b3c791a3178d8ef17c6500e6a9ace
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: 16918359 Change-Id: I9033a7d178d431ddb09f1cfa6e4bf95ae02346e9
-
Elliott Hughes authored
-
Elliott Hughes authored
Imagination already did the work to make the contents of these directories identical. Let's take advantage of that fact. Change-Id: Ib101ba39041fb500c9c618fa2020e72aa2ccd9c2
-
Elliott Hughes authored
-
Elliott Hughes authored
The use of 32-bit units for 64-bit stores and loads was driving me crazy. Bug: 16918359 Change-Id: Ifb73aad8f8985a2adfcf5913b783ad9424f23e06
-
Elliott Hughes authored
-
Elliott Hughes authored
Specifically, use the argument to sigsetjmp as a flag in the buffer to indicate whether or not the signal mask is valid. Bug: 16918359 Change-Id: I5bb1f1220f14c105c6bc57e0c28c1dc366d1438f
-
- 08 Dec, 2014 3 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: 16918359 Change-Id: I30bf61e7d5f1c21daa3a1a21d361e98d77220bf3
-
Elliott Hughes authored
-
- 06 Dec, 2014 3 commits
-
-
Elliott Hughes authored
Bug: 16918359 Change-Id: Ieb15f7f1658f5accee05665b72ba17831a80ea9d
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: 16918359 Change-Id: Ic8ca0af9ea99636bc71f19d46071f1cea6eef982
-
- 05 Dec, 2014 2 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: 16918359 Change-Id: I9b986bdbdbaefe9d9896a820ee8cfe860adfe5c5
-