Christopher Ferris
ca5edfb23b
am fec60529: Merge "Fix missing symbol for debug malloc."
...
* commit 'fec605294e894fae1f1d5b59afe78af8fa84e4fa':
Fix missing symbol for debug malloc.
2014-12-10 20:38:17 +00:00
Christopher Ferris
fec605294e
Merge "Fix missing symbol for debug malloc."
2014-12-10 20:33:52 +00:00
Elliott Hughes
38f1804be1
am 3a49cfe3: Merge "Fix the setjmp tests for mips."
...
* commit '3a49cfe3f2121039900ac8b0340b538b01da35c9':
Fix the setjmp tests for mips.
2014-12-10 20:09:20 +00:00
Elliott Hughes
3a49cfe3f2
Merge "Fix the setjmp tests for mips."
2014-12-10 20:04:52 +00:00
Elliott Hughes
fa46535316
am a53c504e: Merge "Fix arm64 clone stack handling."
...
* commit 'a53c504e0c6a19361fe3e66d7577682f6e501a4a':
Fix arm64 clone stack handling.
2014-12-10 19:50:18 +00:00
Elliott Hughes
1510a1c1ae
Fix the setjmp tests for mips.
...
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
2014-12-10 11:48:19 -08:00
Elliott Hughes
a53c504e0c
Merge "Fix arm64 clone stack handling."
2014-12-10 19:45:48 +00:00
Yabin Cui
1eaf80d680
am 3337435e: Merge "Use machine/timespec.h to separate timespec definition."
...
* commit '3337435ec8f45b5c04428c7d7d789020e41dfd36':
Use machine/timespec.h to separate timespec definition.
2014-12-10 19:33:41 +00:00
Yabin Cui
3337435ec8
Merge "Use machine/timespec.h to separate timespec definition."
2014-12-10 19:29:24 +00:00
Christopher Ferris
3f61f89b55
Fix missing symbol for debug malloc.
...
Bug: 18686270
Change-Id: I800a6f0940060218413df652d74aca91f6a339f8
2014-12-10 11:10:00 -08:00
Elliott Hughes
51f5d83237
Fix arm64 clone stack handling.
...
Make sure we adjust the stack pointer so a signal can't overwrite data.
Bug: 15195265
Change-Id: I5ab9469a82cb214c32f40a713268a1ab74a4c6fa
2014-12-10 11:08:47 -08:00
Elliott Hughes
0eaa218c2f
am 0952a554: Merge "Use the stmdb instead of str to save the fn/arg"
...
* commit '0952a5540e8bb6ceb74389601b9088398d585771':
Use the stmdb instead of str to save the fn/arg
2014-12-10 18:59:48 +00:00
Elliott Hughes
0952a5540e
Merge "Use the stmdb instead of str to save the fn/arg"
2014-12-10 18:53:48 +00:00
Jiangli Yuan
c3d1728583
Use the stmdb instead of str to save the fn/arg
...
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 >
2014-12-10 18:47:01 +00:00
Yabin Cui
db49903732
Use machine/timespec.h to separate timespec definition.
...
Bug: 18627763
Change-Id: Ib1c406320f0ecc3705d19183a48f986cdf57c279
2014-12-10 06:36:11 +00:00
Elliott Hughes
187799839d
am 6a684524: Merge "Fix ptsname(3) and ttyname(3) to use TLS."
...
* commit '6a6845244cf9eb8fe21ecc012b7b45990adad7d8':
Fix ptsname(3) and ttyname(3) to use TLS.
2014-12-10 04:44:14 +00:00
Elliott Hughes
6a6845244c
Merge "Fix ptsname(3) and ttyname(3) to use TLS."
2014-12-10 04:39:07 +00:00
Elliott Hughes
a381fe8ebc
Fix ptsname(3) and ttyname(3) to use TLS.
...
Be safe by default.
Change-Id: I6c4a3f1fd4eee3a651b3162ce95b7e873de57521
2014-12-09 20:30:23 -08:00
Elliott Hughes
938c251e94
am 3592743f: Merge "Move BSD stuff together in <sys/endian.h>."
...
* commit '3592743f7191c69ae1fd2d7e01222bd380d93d3e':
Move BSD stuff together in <sys/endian.h>.
2014-12-10 04:23:50 +00:00
Elliott Hughes
3592743f71
Merge "Move BSD stuff together in <sys/endian.h>."
2014-12-10 04:16:55 +00:00
Elliott Hughes
824f914cae
Move BSD stuff together in <sys/endian.h>.
...
Change-Id: I8bb511840f3cd98d5008034e405d82e923bd3203
2014-12-09 19:44:42 -08:00
Elliott Hughes
4beb28d427
am 3f1c604c: Merge "<net/route.h> should include IPv6 too."
...
* commit '3f1c604c9df459f5baecfdc04cbe8ecda07b70eb':
<net/route.h> should include IPv6 too.
2014-12-09 23:25:25 +00:00
Elliott Hughes
3f1c604c9d
Merge "<net/route.h> should include IPv6 too."
2014-12-09 23:16:32 +00:00
Elliott Hughes
92fd177483
am 7381e145: Merge "Sync <net/if_types.h> with upstream."
...
* commit '7381e14521fcdc4e32ca512230793ab2256726bb':
Sync <net/if_types.h> with upstream.
2014-12-09 23:15:15 +00:00
Elliott Hughes
a7feda3731
<net/route.h> should include IPv6 too.
...
Change-Id: I866097d8468aa8f326117d072444ebbc2a690719
2014-12-09 15:08:24 -08:00
Elliott Hughes
7381e14521
Merge "Sync <net/if_types.h> with upstream."
2014-12-09 23:07:45 +00:00
Elliott Hughes
1ec05b7c78
Sync <net/if_types.h> with upstream.
...
Change-Id: I2c2ca47f5a21b78754c03deb3e9467ab79d9d033
2014-12-09 15:03:51 -08:00
Yabin Cui
e0601bd49f
am 94926f8c: Merge "support _POSIX_REALTIME_SIGNALS"
...
* commit '94926f8cfa0adf37c4e19256ade7261a97f72e51':
support _POSIX_REALTIME_SIGNALS
2014-12-09 20:17:05 +00:00
Yabin Cui
94926f8cfa
Merge "support _POSIX_REALTIME_SIGNALS"
2014-12-09 20:10:19 +00:00
Yabin Cui
e906cf68f0
am b033761c: Merge "Change _POSIX_CPUTIME macro to make it compitable with glibc."
...
* commit 'b033761cbf0e79ade9a8c956c2e63b42ee838183':
Change _POSIX_CPUTIME macro to make it compitable with glibc.
2014-12-09 17:58:28 +00:00
Yabin Cui
b033761cbf
Merge "Change _POSIX_CPUTIME macro to make it compitable with glibc."
2014-12-09 17:51:37 +00:00
Yabin Cui
725756045e
Change _POSIX_CPUTIME macro to make it compitable with glibc.
...
Change-Id: I7a8dbb74bd622693c9fef60bd779687207517b7d
2014-12-09 09:16:11 -08:00
Yabin Cui
634816055f
support _POSIX_REALTIME_SIGNALS
...
Bug: 18489947
Change-Id: I2e834d68bc10ca5fc7ebde047b517a3074179475
2014-12-08 21:52:43 -08:00
Elliott Hughes
b430e6d6d2
am 5536044b: Merge "Simplify our endian.h implementation."
...
* commit '5536044b7896285729cdb39ee0489265a42697f5':
Simplify our endian.h implementation.
2014-12-09 05:09:13 +00:00
Elliott Hughes
5536044b78
Merge "Simplify our endian.h implementation."
2014-12-09 05:02:37 +00:00
Elliott Hughes
56e017306e
Simplify our endian.h implementation.
...
We can rely on the compiler's builtins. Tested on arm, arm64, mips, x86,
and x86-64.
Change-Id: I0f774ed7e85b3c791a3178d8ef17c6500e6a9ace
2014-12-08 20:35:08 -08:00
Elliott Hughes
c63ddc8b8c
am aa0002de: Merge "Merge mips setjmp/longjmp family."
...
* commit 'aa0002de89ee4753bce6e4d714e5d4cc4d9709eb':
Merge mips setjmp/longjmp family.
2014-12-09 01:30:42 +00:00
Elliott Hughes
aa0002de89
Merge "Merge mips setjmp/longjmp family."
2014-12-09 01:18:32 +00:00
Elliott Hughes
d27ae2f8d7
Merge mips setjmp/longjmp family.
...
Bug: 16918359
Change-Id: I9033a7d178d431ddb09f1cfa6e4bf95ae02346e9
2014-12-08 17:07:53 -08:00
Elliott Hughes
09416c9ec6
am 0b7d9d6f: Merge "Switch arch-mips64/include/machine to a symlink."
...
* commit '0b7d9d6f37d33a155a22efbafa911a5de54f7b65':
Switch arch-mips64/include/machine to a symlink.
2014-12-09 00:56:54 +00:00
Elliott Hughes
0b7d9d6f37
Merge "Switch arch-mips64/include/machine to a symlink."
2014-12-09 00:51:49 +00:00
Elliott Hughes
2fecbfaeee
Switch arch-mips64/include/machine to a symlink.
...
Imagination already did the work to make the contents of these directories
identical. Let's take advantage of that fact.
Change-Id: Ib101ba39041fb500c9c618fa2020e72aa2ccd9c2
2014-12-08 16:48:34 -08:00
Elliott Hughes
3cc8e0e9d5
am af829f2d: Merge "Use 64-bit units in the aarch64 setjmp implementation."
...
* commit 'af829f2de9432dc817eafc2ed2aa26cfb1e0d93e':
Use 64-bit units in the aarch64 setjmp implementation.
2014-12-09 00:46:55 +00:00
Elliott Hughes
af829f2de9
Merge "Use 64-bit units in the aarch64 setjmp implementation."
2014-12-09 00:39:16 +00:00
Elliott Hughes
16c93b4764
am 86d06dcc: Merge "Switch arm and arm64 over to the x86 style of jmpbuf."
...
* commit '86d06dcc74f1804a1d00b4c1bc420105bba49df7':
Switch arm and arm64 over to the x86 style of jmpbuf.
2014-12-09 00:25:53 +00:00
Elliott Hughes
9fa2cfbbdb
Use 64-bit units in the aarch64 setjmp implementation.
...
The use of 32-bit units for 64-bit stores and loads was driving me crazy.
Bug: 16918359
Change-Id: Ifb73aad8f8985a2adfcf5913b783ad9424f23e06
2014-12-08 16:23:10 -08:00
Elliott Hughes
86d06dcc74
Merge "Switch arm and arm64 over to the x86 style of jmpbuf."
2014-12-09 00:16:20 +00:00
Elliott Hughes
75096226c8
Switch arm and arm64 over to the x86 style of jmpbuf.
...
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
2014-12-08 16:15:59 -08:00
Elliott Hughes
6518733033
am 515a2ea1: Merge "Fix signal mask save/restore for x86-64."
...
* commit '515a2ea1d575d96e774ba08f59a14ceefdd125c3':
Fix signal mask save/restore for x86-64.
2014-12-09 00:08:09 +00:00
Elliott Hughes
b67ff7e37e
am 734f0d64: Merge "Fix signal mask save/restore for arm64."
...
* commit '734f0d645e461a1061c879e5bd964592d3f326ee':
Fix signal mask save/restore for arm64.
2014-12-09 00:08:08 +00:00