OSDN Git Service
Jean-Baptiste Queru [Sun, 15 Nov 2009 22:05:54 +0000 (14:05 -0800)]
merge from open-source master
Merge commit 'goog/stage-korg-master' into HEAD
Jean-Baptiste Queru [Sun, 15 Nov 2009 20:05:31 +0000 (12:05 -0800)]
merge from eclair
Dima Zavin [Fri, 13 Nov 2009 11:51:47 +0000 (03:51 -0800)]
am
110044b1: libc: kernel: Update msm_kgsl.h header
Merge commit '
110044b131122e6886b962d5d16b1031695c374b' into eclair-plus-aosp
* commit '
110044b131122e6886b962d5d16b1031695c374b':
libc: kernel: Update msm_kgsl.h header
Dima Zavin [Fri, 13 Nov 2009 10:29:17 +0000 (02:29 -0800)]
libc: kernel: Update msm_kgsl.h header
Change-Id: I8b22bcb4816fca5e0b92fee4b2ccb0ef135be5a9
Signed-off-by: Dima Zavin <dima@android.com>
Jean-Baptiste Queru [Fri, 13 Nov 2009 02:45:14 +0000 (18:45 -0800)]
eclair snapshot
Jean-Baptiste Queru [Wed, 11 Nov 2009 16:19:07 +0000 (08:19 -0800)]
merge from open-source master
Android Code Review [Mon, 9 Nov 2009 23:21:09 +0000 (15:21 -0800)]
Merge change I37d0317d
* changes:
modified SYSCALLS.TXT to support SuperH architecture
Jean-Baptiste Queru [Mon, 9 Nov 2009 00:09:17 +0000 (16:09 -0800)]
merge from open-source master
Shin-ichiro KAWASAKI [Fri, 6 Nov 2009 01:36:37 +0000 (10:36 +0900)]
added and modified linker to support SuperH architecture
Thorsten Glaser [Fri, 2 Oct 2009 13:39:00 +0000 (15:39 +0200)]
Add the BSD sys_signame array.
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Mathias Agopian [Thu, 29 Oct 2009 09:44:15 +0000 (02:44 -0700)]
am
199f9d92: Improve memcpy performance from 290 MiB/s to 340 MiB/s (17% improvment)
Merge commit '
199f9d923804d74e021dd80e48ec75c0a96dba77' into eclair-plus-aosp
* commit '
199f9d923804d74e021dd80e48ec75c0a96dba77':
Improve memcpy performance from 290 MiB/s to 340 MiB/s (17% improvment)
Mathias Agopian [Wed, 28 Oct 2009 09:54:37 +0000 (02:54 -0700)]
Improve memcpy performance from 290 MiB/s to 340 MiB/s (17% improvment)
use 64 bytes cache lines, reduce the main loop to 64-bytes instead of
128 bytes and adjust the prefetch distance to the optimal value.
Iliyan Malchev [Sat, 24 Oct 2009 01:39:30 +0000 (18:39 -0700)]
am
763ac283: Merge changes Ibcba4b4f,I9af341e1 into eclair
Merge commit '
763ac28357f604e0e4196e0a7ad5b0f5cdcf274a' into eclair-plus-aosp
* commit '
763ac28357f604e0e4196e0a7ad5b0f5cdcf274a':
bionic/linker: make the buddy allocator compute max_order on its own
bionic/linker: change the buddy allocator to take a handle to the managed area
Android (Google) Code Review [Sat, 24 Oct 2009 01:27:57 +0000 (21:27 -0400)]
Merge changes Ibcba4b4f,I9af341e1 into eclair
* changes:
bionic/linker: make the buddy allocator compute max_order on its own
bionic/linker: change the buddy allocator to take a handle to the managed area
Andy McFadden [Wed, 21 Oct 2009 19:18:54 +0000 (12:18 -0700)]
am
96bbbe21: Wrap ARM abort() to improve stack trace.
Merge commit '
96bbbe21778fc3f4a932822c2436238d6ce5721b' into eclair-plus-aosp
* commit '
96bbbe21778fc3f4a932822c2436238d6ce5721b':
Wrap ARM abort() to improve stack trace.
Andy McFadden [Thu, 15 Oct 2009 23:07:43 +0000 (16:07 -0700)]
Wrap ARM abort() to improve stack trace.
The code generated for Thumb and Thumb2 targets has different handling
for abort(). Because abort() is "noreturn", it doesn't need to preserve
the callee-save registers. The Thumb2 version trashes LR and makes it
impossible to figure out who called abort().
This inserts a trivial stub function; net effect is stack traces are
reasonable after an abort().
For bug
2191452.
Eclair branch Dr. No approved by: hiroshi
Iliyan Malchev [Mon, 19 Oct 2009 21:25:17 +0000 (14:25 -0700)]
bionic/linker: make the buddy allocator compute max_order on its own
Signed-off-by: Iliyan Malchev <malchev@google.com>
Iliyan Malchev [Sat, 17 Oct 2009 00:50:42 +0000 (17:50 -0700)]
bionic/linker: change the buddy allocator to take a handle to the managed area
-- rename struct ba_info to struct ba
-- move the static ba descriptor from ba.c to linker.c and rename it ba_prelink
-- ba_init, ba_allocate, ba_free, ba_start_addr, and ba_len all take a pointer
to struct ba
Signed-off-by: Iliyan Malchev <malchev@google.com>
Mathias Agopian [Tue, 20 Oct 2009 00:09:51 +0000 (17:09 -0700)]
am
7e7d6c48: use local symbols in memset so it doesn\'t screw up profiling
Merge commit '
7e7d6c48a064af82f0ec39f47b9eb803a6e1df4c' into eclair-plus-aosp
* commit '
7e7d6c48a064af82f0ec39f47b9eb803a6e1df4c':
use local symbols in memset so it doesn't screw up profiling
Mathias Agopian [Mon, 19 Oct 2009 23:34:38 +0000 (16:34 -0700)]
use local symbols in memset so it doesn't screw up profiling
David 'Digit' Turner [Fri, 16 Oct 2009 19:36:27 +0000 (12:36 -0700)]
am
ff7b46b8: Merge change I3c998761 into eclair
Merge commit '
ff7b46b87c4d85881d88c2105a94be6c6accb628' into eclair-plus-aosp
* commit '
ff7b46b87c4d85881d88c2105a94be6c6accb628':
Allow the dynamic linker to relocate references to thumb symbols in NDK libraries.
Android (Google) Code Review [Fri, 16 Oct 2009 19:27:36 +0000 (15:27 -0400)]
Merge change I3c998761 into eclair
* changes:
Allow the dynamic linker to relocate references to thumb symbols in NDK libraries.
Jean-Baptiste Queru [Wed, 14 Oct 2009 15:18:23 +0000 (08:18 -0700)]
merge from open-source master
Dima Zavin [Wed, 14 Oct 2009 05:40:14 +0000 (22:40 -0700)]
am
5c328268: libc: kernel: add linux/msm_q6venc.h kernel include for qsd8k h/w video encode
Merge commit '
5c32826841460294cfba98ff713b4804512bacd1' into eclair-plus-aosp
* commit '
5c32826841460294cfba98ff713b4804512bacd1':
libc: kernel: add linux/msm_q6venc.h kernel include for qsd8k h/w video encode
Iliyan Malchev [Wed, 14 Oct 2009 04:00:37 +0000 (21:00 -0700)]
am
0e24d2c9: update msm_camera.h
Merge commit '
0e24d2c944e2eacd2f9ccefbfbda904fab7cf273' into eclair-plus-aosp
* commit '
0e24d2c944e2eacd2f9ccefbfbda904fab7cf273':
update msm_camera.h
Dima Zavin [Wed, 14 Oct 2009 03:57:16 +0000 (20:57 -0700)]
libc: kernel: add linux/msm_q6venc.h kernel include for qsd8k h/w video encode
Change-Id: I58c6eb0d417d5a30fa245f693304a147631fd07f
Signed-off-by: Dima Zavin <dima@android.com>
Iliyan Malchev [Wed, 14 Oct 2009 03:28:29 +0000 (20:28 -0700)]
update msm_camera.h
Signed-off-by: Iliyan Malchev <malchev@google.com>
David 'Digit' Turner [Tue, 13 Oct 2009 23:55:18 +0000 (16:55 -0700)]
Allow the dynamic linker to relocate references to thumb symbols in NDK libraries.
The lowest bit of the symbol's value should be ignored when looking at UNDEF symbols
for correctness. It is used as an ARM/Thumb flag by the linker.
Dima Zavin [Thu, 8 Oct 2009 04:43:42 +0000 (21:43 -0700)]
am
9a96aaa8: libc: kernel: Update linux/msm_kgsl.h to latest
Merge commit '
9a96aaa8efcde245ac4ba23228b8a8d61e008d91' into eclair-plus-aosp
* commit '
9a96aaa8efcde245ac4ba23228b8a8d61e008d91':
libc: kernel: Update linux/msm_kgsl.h to latest
Dima Zavin [Sat, 3 Oct 2009 23:38:49 +0000 (16:38 -0700)]
libc: kernel: Update linux/msm_kgsl.h to latest
Change-Id: I530cea1110fc6e6ccf150e6b176e708030ce8a94
Signed-off-by: Dima Zavin <dima@android.com>
Mathias Agopian [Wed, 7 Oct 2009 18:58:25 +0000 (11:58 -0700)]
am
e3650267: fix [
2170898] abort() doesn\'t print a stack tarce
Merge commit '
e36502673d98df089acbc645f077ee0c2be20c5d' into eclair-plus-aosp
* commit '
e36502673d98df089acbc645f077ee0c2be20c5d':
fix [
2170898] abort() doesn't print a stack tarce
David 'Digit' Turner [Wed, 7 Oct 2009 18:48:11 +0000 (11:48 -0700)]
am
fdc5c1f5: Re-enable ARMv7 memcpy implementation.
Merge commit '
fdc5c1f56f9d21034badb8e4b092c47098f19613' into eclair-plus-aosp
* commit '
fdc5c1f56f9d21034badb8e4b092c47098f19613':
Re-enable ARMv7 memcpy implementation.
David 'Digit' Turner [Wed, 7 Oct 2009 18:42:33 +0000 (11:42 -0700)]
am
1e40783d: Fix armv7-user builds by disabling the ARMv7-optimized memcpy.
Merge commit '
1e40783d9ad29c88a4d547774e05080fc4327a2e' into eclair-plus-aosp
* commit '
1e40783d9ad29c88a4d547774e05080fc4327a2e':
Fix armv7-user builds by disabling the ARMv7-optimized memcpy.
Mathias Agopian [Tue, 6 Oct 2009 22:35:22 +0000 (15:35 -0700)]
fix [
2170898] abort() doesn't print a stack tarce
the issue here is that abort() can be called from anywhere, in particular
from malloc or free. When we try to use the debug_log functions, these
can end up calling into some code (like malloc/free) that called abort()
in the first place and end up in an infinite recursion loop.
David 'Digit' Turner [Mon, 5 Oct 2009 21:11:55 +0000 (14:11 -0700)]
Re-enable ARMv7 memcpy implementation.
Do not submit this patch before the one that modifies the Android emulator to
work-around a weird ARMv7 emulation issue. This is done to temporarily re-allow
the -user builds needed for QA.
David 'Digit' Turner [Sat, 3 Oct 2009 02:13:27 +0000 (19:13 -0700)]
Fix armv7-user builds by disabling the ARMv7-optimized memcpy.
This is required to work-around some corny bugs in ARMv7 emulation.
The emulation itself is required to run the dex pre-optimization pass
for -user builds.
Iliyan Malchev [Tue, 29 Sep 2009 22:28:53 +0000 (15:28 -0700)]
am
fe46030c: Merge changes I3bd27087,I0c9ec550,I3a0e5e86 into eclair
Merge commit '
fe46030cdd97f9cf810630541df367dd2b85cae9' into eclair-plus-aosp
* commit '
fe46030cdd97f9cf810630541df367dd2b85cae9':
bionic/linker: allow resolving of symbols from library back to executable
bionic/linker: change lookup() to return soinfo, not base
Revert "Revert "bionic/linker: fix symbol lookup during relocations""
Android (Google) Code Review [Tue, 29 Sep 2009 22:21:53 +0000 (18:21 -0400)]
Merge changes I3bd27087,I0c9ec550,I3a0e5e86 into eclair
* changes:
bionic/linker: allow resolving of symbols from library back to executable
bionic/linker: change lookup() to return soinfo, not base
Revert "Revert "bionic/linker: fix symbol lookup during relocations""
David 'Digit' Turner [Tue, 29 Sep 2009 22:13:15 +0000 (15:13 -0700)]
am
7a9e06fa: Merge change I2a7ad975 into eclair
Merge commit '
7a9e06fa7e4e533074cde314f25dff3024f34a5d' into eclair-plus-aosp
* commit '
7a9e06fa7e4e533074cde314f25dff3024f34a5d':
Fix ABI breakage in libc.so and libm.so between 1.6 and Eclair.
Android (Google) Code Review [Tue, 29 Sep 2009 22:04:51 +0000 (18:04 -0400)]
Merge change I2a7ad975 into eclair
* changes:
Fix ABI breakage in libc.so and libm.so between 1.6 and Eclair.
David 'Digit' Turner [Tue, 29 Sep 2009 21:43:38 +0000 (14:43 -0700)]
Fix ABI breakage in libc.so and libm.so between 1.6 and Eclair.
For a detailed description of the problem and why this fix is
needed, plrease read the comments in libgcc_compat.c
Iliyan Malchev [Tue, 29 Sep 2009 18:43:20 +0000 (11:43 -0700)]
bionic/linker: allow resolving of symbols from library back to executable
Signed-off-by: Iliyan Malchev <malchev@google.com>
Iliyan Malchev [Tue, 29 Sep 2009 01:21:30 +0000 (18:21 -0700)]
bionic/linker: change lookup() to return soinfo, not base
Iliyan Malchev [Tue, 29 Sep 2009 02:38:04 +0000 (19:38 -0700)]
Revert "Revert "bionic/linker: fix symbol lookup during relocations""
This reverts commit
33acbf0719c4f3db059bc9e1f52cf554a5d0295f.
Mathias Agopian [Tue, 29 Sep 2009 20:31:57 +0000 (13:31 -0700)]
am
ee223d02: NEON optimized memcpy.
Merge commit '
ee223d02d96815c989b62043ff1237b1cd4e14b0' into eclair-plus-aosp
* commit '
ee223d02d96815c989b62043ff1237b1cd4e14b0':
NEON optimized memcpy.
Mathias Agopian [Mon, 28 Sep 2009 00:46:43 +0000 (17:46 -0700)]
NEON optimized memcpy.
372 MB/s for large transfers, 440 MB/s for smaller ones down to 1KB. 130 MB/s for very small transfers ( < 32 bytes )
Performance is similar with non-congruent buffers.
Shin-ichiro KAWASAKI [Mon, 28 Sep 2009 07:11:39 +0000 (16:11 +0900)]
added and modified bionic code to support SuperH architecture
modified: libc/Android.mk
new files: libc/arch-sh/bionic/*
new files: libc/arch-sh/include/*
Mathias Agopian [Mon, 28 Sep 2009 05:20:08 +0000 (22:20 -0700)]
am
33acbf07: Revert "bionic/linker: fix symbol lookup during relocations"
Merge commit '
33acbf0719c4f3db059bc9e1f52cf554a5d0295f' into eclair-plus-aosp
* commit '
33acbf0719c4f3db059bc9e1f52cf554a5d0295f':
Revert "bionic/linker: fix symbol lookup during relocations"
Mathias Agopian [Mon, 28 Sep 2009 05:04:15 +0000 (22:04 -0700)]
Revert "bionic/linker: fix symbol lookup during relocations"
This reverts commit
8d0c0334f1106d36f2fd5c1cf6d5dc75a4b88850.
Iliyan Malchev [Mon, 28 Sep 2009 00:35:01 +0000 (17:35 -0700)]
am
4e5a965d: Merge change 27075 into eclair
Merge commit '
4e5a965d6a4c4a0c7977cc9b90755027130c1e46' into eclair-plus-aosp
* commit '
4e5a965d6a4c4a0c7977cc9b90755027130c1e46':
bionic/linker: fix symbol lookup during relocations
Android (Google) Code Review [Mon, 28 Sep 2009 00:23:22 +0000 (20:23 -0400)]
Merge change 27075 into eclair
* changes:
bionic/linker: fix symbol lookup during relocations
Iliyan Malchev [Fri, 25 Sep 2009 00:14:33 +0000 (17:14 -0700)]
bionic/linker: fix symbol lookup during relocations
When resolving relocations while loading a library, the linker used to find
symbols by looking them up in the list of all linked libraries for the current
process, as opposed to following just the library's DT_NEEDED entries. This
can cause a problem where the symbol is picked up from the wrong library.
Signed-off-by: Iliyan Malchev <malchev@google.com>
David 'Digit' Turner [Sun, 27 Sep 2009 14:19:59 +0000 (07:19 -0700)]
am
f355096a: Remove NEON optimizations for memcpy
Merge commit '
f355096a64b74c8e869527de55f7e908873e3128' into eclair-plus-aosp
* commit '
f355096a64b74c8e869527de55f7e908873e3128':
Remove NEON optimizations for memcpy
David 'Digit' Turner [Sun, 27 Sep 2009 14:08:46 +0000 (07:08 -0700)]
Remove NEON optimizations for memcpy
David 'Digit' Turner [Wed, 23 Sep 2009 23:09:39 +0000 (16:09 -0700)]
am
bc10cd29: Fix a typo that resulted in a crash in the boot sequence
Merge commit '
bc10cd2900cdb7fed077163b6a33e0f8572b2b19' into eclair-plus-aosp
* commit '
bc10cd2900cdb7fed077163b6a33e0f8572b2b19':
Fix a typo that resulted in a crash in the boot sequence
David 'Digit' Turner [Wed, 23 Sep 2009 22:56:50 +0000 (15:56 -0700)]
Fix a typo that resulted in a crash in the boot sequence
David 'Digit' Turner [Wed, 23 Sep 2009 19:20:52 +0000 (12:20 -0700)]
am
d154954f: Merge change 26419 into eclair
Merge commit '
d154954f02691618fdf73a5a97336e64cad37af0' into eclair-plus-aosp
* commit '
d154954f02691618fdf73a5a97336e64cad37af0':
Add pthread_mutex_lock_timeout_np
Android (Google) Code Review [Wed, 23 Sep 2009 19:10:02 +0000 (15:10 -0400)]
Merge change 26419 into eclair
* changes:
Add pthread_mutex_lock_timeout_np
David 'Digit' Turner [Tue, 22 Sep 2009 22:41:36 +0000 (15:41 -0700)]
resolved conflicts for merge of
4a05d12c to eclair-plus-aosp
David 'Digit' Turner [Tue, 22 Sep 2009 19:40:22 +0000 (12:40 -0700)]
Add pthread_mutex_lock_timeout_np
This is used to perform a mutex lock for a given amount of
milliseconds before giving up. Using the _np prefix since this
is absolutely not portable.
Also remove a compiler warning in pthread_attr_getstackaddr
David 'Digit' Turner [Fri, 18 Sep 2009 20:35:05 +0000 (13:35 -0700)]
Fix TLS access for ARMv6 and beyond.
For performance reasons, we don't call the kernel helper. Instead, we directly
access the TLS register on ARMv6 and higher. For ARMv5TE, keep using the hard-coded
address populated by the kernel on each task switch.
NOTE: Since we don't call the kernel helper, this must precisely match your
kernel configuration. This is controlled by setting the ARCH_ARM_HAVE_TLS_REGISTER
variable to 'true' in your board configuration file.
Android Code Review [Mon, 21 Sep 2009 06:39:18 +0000 (23:39 -0700)]
Merge change 10538
* changes:
added syscalls for SuperH which automatically generate by gensyscalls.py
Dima Zavin [Mon, 21 Sep 2009 02:21:11 +0000 (19:21 -0700)]
am
916edf2a: libc: kernel-headers: update msm_mdp.h to include premultiplied alpha
Merge commit '
916edf2a3fc60e08a5f29cd322d9f2a04d15cb49' into eclair-plus-aosp
* commit '
916edf2a3fc60e08a5f29cd322d9f2a04d15cb49':
libc: kernel-headers: update msm_mdp.h to include premultiplied alpha
Dima Zavin [Mon, 21 Sep 2009 02:11:02 +0000 (19:11 -0700)]
libc: kernel-headers: update msm_mdp.h to include premultiplied alpha
Change-Id: I653d638353d9246287bcf568bbffd0f5dbc64019
Signed-off-by: Dima Zavin <dima@android.com>
Android Code Review [Thu, 17 Sep 2009 20:43:08 +0000 (13:43 -0700)]
Merge change 10539
* changes:
modified kernel headers re-generate tools to support SuperH architecture
Android Code Review [Thu, 17 Sep 2009 00:40:39 +0000 (17:40 -0700)]
Merge change 10587
* changes:
Fill l_ld of linkmaps with value from soinfo::dynamic.
Jean-Baptiste Queru [Wed, 16 Sep 2009 23:21:35 +0000 (16:21 -0700)]
merge from open-source master
vinay harugop [Tue, 4 Aug 2009 20:39:29 +0000 (02:09 +0530)]
Linux kernel helpers support is provided to android for its TLS implementation. This fix addresses this by modifying
the TLS access functions to use the kernel helper.
This Fix is verified on ST Ericsson's U8500 platform and Submitted on behalf of a third-party:
Surinder-pal SINGH from STMicroelectronics.
Thinker K.F Li [Fri, 3 Jul 2009 11:40:32 +0000 (19:40 +0800)]
Fill l_ld of linkmaps with value from soinfo::dynamic.
GDB will try to read l_ld of linkmaps and compare the value to vma of
.dynamic sections from shared objects. Since linker does not assign l_ld,
GDB will complain about and re-compute l_addr from l_ld. And, GDB will get a
wrong value.
Android Code Review [Tue, 15 Sep 2009 23:53:18 +0000 (16:53 -0700)]
Merge change 10541
* changes:
added and modified libdl to support SuperH architecture
Android Code Review [Tue, 15 Sep 2009 23:53:01 +0000 (16:53 -0700)]
Merge change 10542
* changes:
added and modified libm to support SuperH architecture
Android Code Review [Tue, 15 Sep 2009 23:43:44 +0000 (16:43 -0700)]
Merge change 11671
* changes:
Define 64 bit types if compiling with -std=c99
Ben Cheng [Tue, 15 Sep 2009 21:51:10 +0000 (14:51 -0700)]
am
bd192b47: Add stack unwinding directives to assembly leaf functions.
Merge commit '
bd192b470b69e00e9313680b70c5572a609e535d' into eclair-plus-aosp
* commit '
bd192b470b69e00e9313680b70c5572a609e535d':
Add stack unwinding directives to assembly leaf functions.
Ben Cheng [Tue, 15 Sep 2009 20:41:14 +0000 (13:41 -0700)]
Add stack unwinding directives to assembly leaf functions.
So that the real culprit of native crashes can surface in the stack trace.
Jean-Baptiste Queru [Tue, 15 Sep 2009 14:51:39 +0000 (07:51 -0700)]
merge from open-source master
Matthieu CASTET [Fri, 26 Dec 2008 23:04:10 +0000 (00:04 +0100)]
Remove code duplication for pthread_cond_timeout_np : use __pthread_cond_timedwait_relative helper
Martin Storsjo [Tue, 8 Sep 2009 08:54:45 +0000 (10:54 +0200)]
Define 64 bit types if compiling with -std=c99
Compiling with -std=c99 defines __STRICT_ANSI__, but the 64 bit types
and type macros should still be defined in this case.
This helps compiling third party code that needs -std=c99 with the NDK.
Iliyan Malchev [Fri, 11 Sep 2009 07:39:49 +0000 (00:39 -0700)]
am
82420129: bionic: update processed msm_camera.h
Merge commit '
824201294b5f3c3ad6ca9d9751d96f78142c5409' into eclair-plus-aosp
* commit '
824201294b5f3c3ad6ca9d9751d96f78142c5409':
bionic: update processed msm_camera.h
Iliyan Malchev [Fri, 11 Sep 2009 07:29:59 +0000 (00:29 -0700)]
bionic: update processed msm_camera.h
Signed-off-by: Iliyan Malchev <malchev@google.com>
David 'Digit' Turner [Thu, 10 Sep 2009 01:01:11 +0000 (18:01 -0700)]
am
4e57cf3f: Merge change 24463 into eclair
Merge commit '
4e57cf3f8c0b696f117579c8165b13c8d32b9b5d' into eclair-plus-aosp
* commit '
4e57cf3f8c0b696f117579c8165b13c8d32b9b5d':
Fix an infinite loop in time2sub.
Android (Google) Code Review [Thu, 10 Sep 2009 00:53:15 +0000 (20:53 -0400)]
Merge change 24463 into eclair
* changes:
Fix an infinite loop in time2sub.
David 'Digit' Turner [Thu, 10 Sep 2009 00:41:59 +0000 (17:41 -0700)]
Fix an infinite loop in time2sub.
The problem is that time_t is signed, and the original code relied on the
fact that (X + c < X) in case of overflow for c >= 0. Unfortunately, this
condition is only guaranteed by the standard for unsigned arithmetic, and
the gcc 4.4.0 optimizer did completely remove the corresponding test from
the code. This resulted in a missing boundary check, and an infinite loop.
The problem is solved by testing explicitely for TIME_T_MIN and TIME_T_MAX
in the loop that uses this.
Also fix increment_overflow and long_increment_overflow which were buggy
for exactly the same reasons.
Note: a similar fix is needed for system/core/libcutils
Erik Gilling [Wed, 9 Sep 2009 22:13:56 +0000 (15:13 -0700)]
am
9e74f697: libc: add void to clock() function prototype
Merge commit '
9e74f697e0178a0e9b6133a2b270cc7fed9920bf' into eclair-plus-aosp
* commit '
9e74f697e0178a0e9b6133a2b270cc7fed9920bf':
libc: add void to clock() function prototype
Erik Gilling [Wed, 9 Sep 2009 21:58:19 +0000 (14:58 -0700)]
libc: add void to clock() function prototype
Signed-off-by: Erik Gilling <konkers@android.com>
vinay harugop [Wed, 9 Sep 2009 15:23:39 +0000 (20:53 +0530)]
ARM architecture reference manuals for ARMv6 & ARMv7 state that the use of 'swp' instruction is deprecated
ARMv6 onwards. These architectures provide the load-linked, store-conditional pair of ldrex/strex whose use
is recommended in place of 'swp'. Also, the description of the 'swp' instruction in the ARMv6 reference
manual states that the swap operation does not include any memory barrier guarantees.This fix attempts to
address these issues by providing an atomic swap implementation using ldrex/strex under _ARM_HAVE_LDREX_STREX
macro. This Fix is verified on ST Ericsson's U8500 platform and Submitted on behalf of a third-party:
Surinder-pal SINGH from STMicroelectronics.
David 'Digit' Turner [Wed, 2 Sep 2009 22:09:19 +0000 (15:09 -0700)]
am
b4423ff7: Merge change 22848 into eclair
Merge commit '
b4423ff7dfd8c97688cbf87ba8ce22f5b54fa89c' into eclair-plus-aosp
* commit '
b4423ff7dfd8c97688cbf87ba8ce22f5b54fa89c':
Neon-optimized versions of memcpy.
Android (Google) Code Review [Wed, 2 Sep 2009 22:06:32 +0000 (15:06 -0700)]
Merge change 22848 into eclair
* changes:
Neon-optimized versions of memcpy.
David 'Digit' Turner [Wed, 26 Aug 2009 19:50:42 +0000 (21:50 +0200)]
Neon-optimized versions of memcpy.
This optimization come from the external 0xdroid repository.
Original patch can be found here:
http://gitorious.org/0xdroid/bionic/commit/
ebafe41c2c02f8c09a3c1d7746047083df180ac5
Jean-Baptiste Queru [Tue, 1 Sep 2009 15:27:42 +0000 (08:27 -0700)]
merge from open-source master
Shin-ichiro KAWASAKI [Tue, 1 Sep 2009 10:03:06 +0000 (19:03 +0900)]
modified SYSCALLS.TXT to support SuperH architecture
Chih-Wei Huang [Tue, 28 Jul 2009 14:58:09 +0000 (22:58 +0800)]
Include <endian.h> instead of <sys/endian.h>,
since the later doesn't define byte order.
Shin-ichiro KAWASAKI [Mon, 31 Aug 2009 07:39:32 +0000 (16:39 +0900)]
added and modified libdl to support SuperH architecture
Shin-ichiro KAWASAKI [Mon, 31 Aug 2009 07:25:42 +0000 (16:25 +0900)]
added and modified libm to support SuperH architecture
Dima Zavin [Mon, 31 Aug 2009 02:17:26 +0000 (19:17 -0700)]
libc: kernel-headers: Add qdsp6 vdec header
Change-Id: Ib6cd13e86cea84c1cc0901dee3e9ef05eb8279cd
Signed-off-by: Dima Zavin <dima@android.com>
Alexey Tarasov [Fri, 12 Dec 2008 22:24:44 +0000 (08:24 +1000)]
Changed logging functions in bionic/logd_write.c.
Main differences from original code:
1. now log channel for LOG_ID_MAIN may exist even if LOG_ID_RADIO
facility failed.
2. __write_to_log_null() now acts as always successful function.
3. it's more simplier to add new logging channels now
ammended commit fixes my typo on line 130
Android Code Review [Fri, 21 Aug 2009 18:25:21 +0000 (11:25 -0700)]
Merge change 10749
* changes:
Make sure size_t is defined before used in strings.h
Android Code Review [Fri, 21 Aug 2009 18:24:58 +0000 (11:24 -0700)]
Merge change 10757
* changes:
Add an 's and a . to the bionic/libc README.
Iliyan Malchev [Thu, 20 Aug 2009 23:31:28 +0000 (16:31 -0700)]
bionic: add sanitized lightsensor kernel header
Signed-off-by: Iliyan Malchev <malchev@google.com>
Dima Zavin [Thu, 20 Aug 2009 01:48:57 +0000 (18:48 -0700)]
Update pmem/hw3d/mdp headers
Signed-off-by: Dima Zavin <dima@android.com>
Erik Gilling [Thu, 13 Aug 2009 23:05:30 +0000 (16:05 -0700)]
bionic: linker: add error message if link failed due to previous error
Signed-off-by: Erik Gilling <konkers@android.com>