0xdroid:bionic.git
7 years ago[bionic] Replace inline strcpy() with ARM assembly
Jim Huang [Thu, 1 Apr 2010 17:42:54 +0000 (01:42 +0800)]
[bionic] Replace inline strcpy() with ARM assembly

Change-Id: Idc0894ef200cc39bf54441879606de35c286786c

7 years ago[bionic] Replace strlen() with ARMv7 optimized version
Jim Huang [Thu, 1 Apr 2010 17:35:34 +0000 (01:35 +0800)]
[bionic] Replace strlen() with ARMv7 optimized version

Change-Id: I8e8ba1c4783ec060a46654946d0d8b78020be7e9

7 years ago[bionic] Added ARM Thumb2 optimized strcmp() implementation
Jim Huang [Thu, 1 Apr 2010 17:29:05 +0000 (01:29 +0800)]
[bionic] Added ARM Thumb2 optimized strcmp() implementation

Change-Id: I85f51616744d453f9b08287fbc18ac60c0e80e8d

7 years ago[bionic] remove V5 instruction for V6 targets (memcpy)
Jim Huang [Tue, 22 Dec 2009 06:49:27 +0000 (14:49 +0800)]
[bionic] remove V5 instruction for V6 targets (memcpy)

commit aa9d1bebc8c5c6f782603f3958a8b26a4fd1509c
Author: Brian Steuer <bsteuer@quicinc.com>
Date:   Fri Dec 11 12:36:25 2009 -0800

    bionic: remove V5 instruction for V6 targets

    Instructions in memcpy that are only needed for ARMV5 targets
    are now conditionally compiled for those targets.
(cherry picked from commit 597bf43c220f33fa87ed63db95fcfa6ef60e6acb)

7 years agobionic: Add null check before dereferencing thread data structure
Ajay Dudani [Mon, 12 Oct 2009 07:53:07 +0000 (00:53 -0700)]
bionic: Add null check before dereferencing thread data structure

While this is not a fix for the CR, this may prevent native crash
as seen in CR 212158
(cherry picked from commit 5a6963e5e695a040994a859d4e735f907a29ca7b)

7 years ago[bionic] mspace_merge_objects declaration cleanup.
Jim Huang [Tue, 27 Oct 2009 08:36:04 +0000 (16:36 +0800)]
[bionic] mspace_merge_objects declaration cleanup.
(cherry picked from commit 3d68a87f9aec5aed985f49ca229a3d2f34359fa5)

7 years ago[bionic] Add mspace_merge_objects
Kan-Ru Chen [Wed, 17 Mar 2010 08:39:54 +0000 (16:39 +0800)]
[bionic] Add mspace_merge_objects

mspace_merge_objects will merge allocated memory mema and memb
together, provided memb immediately follows mema.  It is roughly as
if memb has been freed and mema has been realloced to a larger size.
On successfully merging, mema will be returned. If either argument
is null or memb does not immediately follow mema, null will be
returned.

tweaked for beagle-cupcake.

commit f30dae9cf452e4308a34450b2a48eb6602936976
Author: Barry Hayes <bhayes@google.com>
Date:   Tue May 26 10:33:04 2009 -0700

    Add mspace_merge_objects
(cherry picked from commit 1741a0a23f21b3b2e1a883b0376f29a46da54878)

Signed-off-by: Tick Chen <tick@0xlab.org>
(cherry picked from commit c5946902400638715a8836b3c8959829d4af9321)

Conflicts:

libc/bionic/dlmalloc.c

7 years ago[bionic] Added NEON optimized memcpy + armv6 unaligned memory access.
Jim Huang [Thu, 3 Sep 2009 09:07:40 +0000 (17:07 +0800)]
[bionic] Added NEON optimized memcpy + armv6 unaligned memory access.

very small data test: (env: 500 MHz Beagleboard C2)
memcpy_neon2 :  (24 bytes copy) =  231.3 MB/s /  552.7 MB/s
memcpy_neon :  (24 bytes copy) =  199.3 MB/s /  350.5 MB/s
memcpy_armv5 :  (24 bytes copy) =  123.6 MB/s /  253.9 MB/s
memcpy_arm  :  (24 bytes copy) =  171.0 MB/s /  227.4 MB/s
memcpy_neon2 :  (31 bytes copy) =  315.6 MB/s /  714.2 MB/s
memcpy_neon :  (31 bytes copy) =  267.9 MB/s /  375.6 MB/s
memcpy_armv5 :  (31 bytes copy) =  143.8 MB/s /  327.9 MB/s
memcpy_arm  :  (31 bytes copy) =  197.8 MB/s /  272.9 MB/s

memcpy_neon2 : neon + armv6 unaligned memory access
memcpy_neon : neon + fully alinged memory access
memcpy_armv5 : original armv5 tweaks in Android
memcpy_arm : original glibc

NOTE: armv6 unaligned memory access is experimental.  Enabled to figure
      out the potential problems if any.
(cherry picked from commit 561a7a55f53c1d7f5c5389a75837dc10fad68cd1)

Signed-off-by: Tick Chen <tick@0xlab.org>
(cherry picked from commit 11dbfe84029de7c4eacce265aa6ab1590a2054f5)

7 years agoUse original memset.S for the sake of bzero.
Jim Huang [Mon, 24 Aug 2009 08:27:31 +0000 (16:27 +0800)]
Use original memset.S for the sake of bzero.

Fix issue #14
(cherry picked from commit 0e3b9ecd0406fc69139b6735fb906300ad760817)

Signed-off-by: Tick Chen <tick@0xlab.org>
(cherry picked from commit 1851a40b551b4b1d5073bab9ba6c3c2e3be66924)

7 years agoMentioned instructions introduced in ARMv6/ARMv7
Jim Huang [Tue, 11 Aug 2009 03:47:52 +0000 (11:47 +0800)]
Mentioned instructions introduced in ARMv6/ARMv7

From 7d9f1ce9caa0be6d5513085572bfb6810647a03c Mon Sep 17 00:00:00 2001
From: Jim Huang <jserv@0xlab.org>
Date: Mon, 10 Aug 2009 02:19:00 +0800
Subject: [PATCH] Mentioned instructions introduced in ARMv6/ARMv7

---
 libc/arch-arm/include/machine/cpu-features.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
(cherry picked from commit f3037d0e97d66b5e3f9f28c17081a8a37e29a634)

Signed-off-by: Tick Chen <tick@0xlab.org>
(cherry picked from commit 64a9f5650b2792332610c9d8ba80502e6aae6d85)

7 years agoIntroduced ARM Thumb2 optimized strcpy.
Kan-Ru Chen [Wed, 17 Mar 2010 08:35:05 +0000 (16:35 +0800)]
Introduced ARM Thumb2 optimized strcpy.

From 6fd1d1866202cb152b4238fc86b0ed303148bb66 Mon Sep 17 00:00:00 2001
From: Jim Huang <jserv@0xlab.org>
Date: Mon, 10 Aug 2009 02:01:08 +0800
Subject: [PATCH] Introduced ARM Thumb2 optimized strcpy.

---
 libc/Android.mk               |    3 +-
 libc/arch-arm/bionic/strcpy.c |  190 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 192 insertions(+), 1 deletions(-)
 create mode 100644 libc/arch-arm/bionic/strcpy.c
(cherry picked from commit 971fe9467617e4b5505dc51942bf1f1d5fcd4b3a)

Signed-off-by: Tick Chen <tick@0xlab.org>
(cherry picked from commit c45687dd0a327a7f8d73128f886a019da8e64c04)

Conflicts:

libc/Android.mk

7 years agoMerged ARM NEON optimized memset from CodeSourcery.
Jim Huang [Tue, 11 Aug 2009 03:46:05 +0000 (11:46 +0800)]
Merged ARM NEON optimized memset from CodeSourcery.

From f59106bba1f5b11613bbb8e1c19060362c017967 Mon Sep 17 00:00:00 2001
From: Jim Huang <jserv@0xlab.org>
Date: Mon, 10 Aug 2009 00:37:01 +0800
Subject: [PATCH] Merged ARM NEON optimized memset from CodeSourcery.

On ARM processors with 64-bit ldrd instructions, ARM stores 64-bit
values in two 32-bit registers and does not have 64-bit multiply or
bitwise-or instructions.

Note: 16-times unrolling is about 50% faster than 4-times unrolling on
ARM Cortex-A8.
(cherry picked from commit 764bed3ec856deff9811bc1cbe30dda99ce0ffba)

Signed-off-by: Tick Chen <tick@0xlab.org>
(cherry picked from commit 780898e723d883e0ed13387f11066275121048b9)

7 years agoUse armv6 bswap* to improve byte-wise operation performance.
Jim Huang [Fri, 31 Jul 2009 05:18:13 +0000 (13:18 +0800)]
Use armv6 bswap* to improve byte-wise operation performance.
(cherry picked from commit 29965b007801a002fc1a1c494234737887a55ece)

Signed-off-by: Tick Chen <tick@0xlab.org>
(cherry picked from commit b7010be8655af1103de8234630aa4796fbdaa63b)

7 years agoam ee424e23: bionic: update processed kernel header a1026.h
Iliyan Malchev [Tue, 9 Feb 2010 17:25:57 +0000 (09:25 -0800)]
am ee424e23: bionic: update processed kernel header a1026.h

Merge commit 'ee424e23c10c051ee4760177c85f6003ff20108c' into eclair-plus-aosp

* commit 'ee424e23c10c051ee4760177c85f6003ff20108c':
  bionic: update processed kernel header a1026.h

7 years agobionic: update processed kernel header a1026.h
Iliyan Malchev [Mon, 8 Feb 2010 23:57:09 +0000 (15:57 -0800)]
bionic: update processed kernel header a1026.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
7 years agoam ba8bfedd: reconcile main tree with open-source eclair
The Android Open Source Project [Fri, 5 Feb 2010 16:44:18 +0000 (08:44 -0800)]
am ba8bfedd: reconcile main tree with open-source eclair

Merge commit 'ba8bfedd04824eea944236ffc885f866c5e9c651' into eclair-plus-aosp

* commit 'ba8bfedd04824eea944236ffc885f866c5e9c651':
  android-2.1_r1 snapshot

7 years agoreconcile main tree with open-source eclair
The Android Open Source Project [Fri, 5 Feb 2010 16:09:31 +0000 (08:09 -0800)]
reconcile main tree with open-source eclair

7 years agoam d0996bb4: bionic: update processed kernel header tpa2018d1.h
Iliyan Malchev [Tue, 2 Feb 2010 22:21:05 +0000 (14:21 -0800)]
am d0996bb4: bionic: update processed kernel header tpa2018d1.h

Merge commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d' into eclair-plus-aosp

* commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d':
  bionic: update processed kernel header tpa2018d1.h

7 years agoam 276313ec: bionic: add processed kernel headers a1026.h and tpa2018d1.h
Iliyan Malchev [Tue, 2 Feb 2010 22:21:02 +0000 (14:21 -0800)]
am 276313ec: bionic: add processed kernel headers a1026.h and tpa2018d1.h

Merge commit '276313ec18c18a07e867dffe568a377583cfd905' into eclair-plus-aosp

* commit '276313ec18c18a07e867dffe568a377583cfd905':
  bionic: add processed kernel headers a1026.h and tpa2018d1.h

7 years agobionic: update processed kernel header tpa2018d1.h
Iliyan Malchev [Tue, 2 Feb 2010 21:42:55 +0000 (13:42 -0800)]
bionic: update processed kernel header tpa2018d1.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
7 years agobionic: add processed kernel headers a1026.h and tpa2018d1.h
Iliyan Malchev [Tue, 2 Feb 2010 19:56:26 +0000 (11:56 -0800)]
bionic: add processed kernel headers a1026.h and tpa2018d1.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
7 years agoreconcile android-2.1_r1 snapshot
The Android Open Source Project [Fri, 29 Jan 2010 22:07:31 +0000 (14:07 -0800)]
reconcile android-2.1_r1 snapshot

7 years agoandroid-2.1_r1 snapshot
The Android Open Source Project [Tue, 12 Jan 2010 23:18:05 +0000 (15:18 -0800)]
android-2.1_r1 snapshot

7 years agoam 5f53a182: Revert "Add qsort_r() implementation to the C library."
Mathias Agopian [Fri, 4 Dec 2009 01:10:45 +0000 (17:10 -0800)]
am 5f53a182: Revert "Add qsort_r() implementation to the C library."

Merge commit '5f53a18204ec991f5a77872806eeaa185936aa8c' into eclair-plus-aosp

* commit '5f53a18204ec991f5a77872806eeaa185936aa8c':
  Revert "Add qsort_r() implementation to the C library."

7 years agoRevert "Add qsort_r() implementation to the C library."
Mathias Agopian [Fri, 4 Dec 2009 00:14:40 +0000 (16:14 -0800)]
Revert "Add qsort_r() implementation to the C library."

This reverts commit 754c178ae551aedcbbfd3bfd1c1c3b710d9ad989.

Turns out we don't need it afterall (needed a stable sort anyways).
So, we'll make that change in the dev branch instead.

7 years agoam 754c178a: Add qsort_r() implementation to the C library.
David 'Digit' Turner [Fri, 4 Dec 2009 00:00:26 +0000 (16:00 -0800)]
am 754c178a: Add qsort_r() implementation to the C library.

Merge commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989' into eclair-plus-aosp

* commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989':
  Add qsort_r() implementation to the C library.

7 years agoAdd qsort_r() implementation to the C library.
David 'Digit' Turner [Thu, 3 Dec 2009 01:38:41 +0000 (17:38 -0800)]
Add qsort_r() implementation to the C library.

NOTE: This replaces qsort.c with the FreeBSD version. While
      the patch changes the source, it should not alter the
      implementation that should use the exact same algorithm.

7 years agoam e1e68492: Merge change Ifa58a406 into eclair
Dima Zavin [Thu, 3 Dec 2009 10:14:57 +0000 (02:14 -0800)]
am e1e68492: Merge change Ifa58a406 into eclair

Merge commit 'e1e684920f3bea04f7cccee9f2d7ecd8b9a1ba47' into eclair-plus-aosp

* commit 'e1e684920f3bea04f7cccee9f2d7ecd8b9a1ba47':
  libc: kernel: Update msm_kgsl.h header

7 years agoMerge change Ifa58a406 into eclair
Android (Google) Code Review [Thu, 3 Dec 2009 10:09:47 +0000 (02:09 -0800)]
Merge change Ifa58a406 into eclair

* changes:
  libc: kernel: Update msm_kgsl.h header

7 years agoam fe62de1a: Add support for R_ARM_REL32 to the dynamic linker.
David 'Digit' Turner [Wed, 2 Dec 2009 19:17:29 +0000 (11:17 -0800)]
am fe62de1a: Add support for R_ARM_REL32 to the dynamic linker.

Merge commit 'fe62de1ad036a1417df44b7b1a7c65cc79dc7091' into eclair-plus-aosp

* commit 'fe62de1ad036a1417df44b7b1a7c65cc79dc7091':
  Add support for R_ARM_REL32 to the dynamic linker.

7 years agoAdd support for R_ARM_REL32 to the dynamic linker.
David 'Digit' Turner [Wed, 2 Dec 2009 18:54:53 +0000 (10:54 -0800)]
Add support for R_ARM_REL32 to the dynamic linker.

Merged from eclair-mr2

7 years agolibc: kernel: Update msm_kgsl.h header
Dima Zavin [Thu, 19 Nov 2009 17:55:56 +0000 (09:55 -0800)]
libc: kernel: Update msm_kgsl.h header

Change-Id: Ifa58a406c9419c5ad73a1f9456add6dd54bfb2ba
Signed-off-by: Dima Zavin <dima@android.com>
7 years agoam cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.
Eric Fischer [Tue, 24 Nov 2009 22:01:54 +0000 (14:01 -0800)]
am cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.

Merge commit 'cd5df2d92c3adeac41e27aab5ba0f999c753c4c4' into eclair-plus-aosp

* commit 'cd5df2d92c3adeac41e27aab5ba0f999c753c4c4':
  Rebuild the time zone data files in 32-bit format instead of 64-bit.

7 years agoRebuild the time zone data files in 32-bit format instead of 64-bit.
Eric Fischer [Tue, 24 Nov 2009 21:52:05 +0000 (13:52 -0800)]
Rebuild the time zone data files in 32-bit format instead of 64-bit.

The 64-bit data is not currently being used and more than doubles the size.

7 years agoam 7e617899: Correct the raw offsets in the time zone index for a few zones.
Eric Fischer [Tue, 24 Nov 2009 01:04:43 +0000 (17:04 -0800)]
am 7e617899: Correct the raw offsets in the time zone index for a few zones.

Merge commit '7e6178998507f993eedf6bec726b0c28881f0485' into eclair-plus-aosp

* commit '7e6178998507f993eedf6bec726b0c28881f0485':
  Correct the raw offsets in the time zone index for a few zones.

7 years agoCorrect the raw offsets in the time zone index for a few zones.
Eric Fischer [Tue, 24 Nov 2009 00:28:11 +0000 (16:28 -0800)]
Correct the raw offsets in the time zone index for a few zones.

ZoneCompactor was using the system time zone database to get the offsets
instead of using the data it was compiling, so for newly added or recently
changed zones the index could be inconsistent with the data.

Affected zones: San_Luis, Casey, Davis, Mawson, Kathmandu, Novokuznetsk

7 years agoam a6083b77: Update zoneinfo time zone data to version 2009s
Eric Fischer [Fri, 20 Nov 2009 23:42:15 +0000 (15:42 -0800)]
am a6083b77: Update zoneinfo time zone data to version 2009s

Merge commit 'a6083b7768a2d1efc52805ff7ce049866186c744' into eclair-plus-aosp

* commit 'a6083b7768a2d1efc52805ff7ce049866186c744':
  Update zoneinfo time zone data to version 2009s

7 years agoUpdate zoneinfo time zone data to version 2009s
Eric Fischer [Fri, 20 Nov 2009 22:39:55 +0000 (14:39 -0800)]
Update zoneinfo time zone data to version 2009s

http://b/issue?id=2272477

7 years agomerge from open-source master
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

7 years agomerge from eclair
Jean-Baptiste Queru [Sun, 15 Nov 2009 20:05:31 +0000 (12:05 -0800)]
merge from eclair

7 years agoam 110044b1: libc: kernel: Update msm_kgsl.h header
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

7 years agolibc: 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>
7 years agoeclair snapshot
Jean-Baptiste Queru [Fri, 13 Nov 2009 02:45:14 +0000 (18:45 -0800)]
eclair snapshot

7 years agomerge from open-source master
Jean-Baptiste Queru [Wed, 11 Nov 2009 16:19:07 +0000 (08:19 -0800)]
merge from open-source master

7 years agoMerge change I37d0317d
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

7 years agomerge from open-source master
Jean-Baptiste Queru [Mon, 9 Nov 2009 00:09:17 +0000 (16:09 -0800)]
merge from open-source master

7 years agoadded and modified linker to support SuperH architecture
Shin-ichiro KAWASAKI [Fri, 6 Nov 2009 01:36:37 +0000 (10:36 +0900)]
added and modified linker to support SuperH architecture

7 years agoAdd the BSD sys_signame array.
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>
7 years agoam 199f9d92: Improve memcpy performance from 290 MiB/s to 340 MiB/s (17% improvment)
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)

7 years agoImprove 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.

7 years agoam 763ac283: Merge changes Ibcba4b4f,I9af341e1 into eclair
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

7 years agoMerge changes Ibcba4b4f,I9af341e1 into eclair
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

7 years agoam 96bbbe21: Wrap ARM abort() to improve stack trace.
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.

7 years agoWrap 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

7 years agobionic/linker: make the buddy allocator compute max_order on its own
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>
7 years agobionic/linker: change the buddy allocator to take a handle to the managed area
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>
7 years agoam 7e7d6c48: use local symbols in memset so it doesn\'t screw up profiling
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

7 years agouse 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

7 years agoam ff7b46b8: Merge change I3c998761 into eclair
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.

7 years agoMerge change I3c998761 into eclair
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.

7 years agomerge from open-source master
Jean-Baptiste Queru [Wed, 14 Oct 2009 15:18:23 +0000 (08:18 -0700)]
merge from open-source master

7 years agoam 5c328268: libc: kernel: add linux/msm_q6venc.h kernel include for qsd8k h/w video...
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

7 years agoam 0e24d2c9: update msm_camera.h
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

7 years agolibc: kernel: add linux/msm_q6venc.h kernel include for qsd8k h/w video encode
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>
7 years agoupdate msm_camera.h
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>
7 years agoAllow the dynamic linker to relocate references to thumb symbols in NDK libraries.
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.

7 years agoam 9a96aaa8: libc: kernel: Update linux/msm_kgsl.h to latest
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

7 years agolibc: 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>
7 years agoam e3650267: fix [2170898] abort() doesn\'t print a stack tarce
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

7 years agoam fdc5c1f5: Re-enable ARMv7 memcpy implementation.
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.

7 years agoam 1e40783d: Fix armv7-user builds by disabling the ARMv7-optimized memcpy.
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.

7 years agofix [2170898] abort() doesn't print a stack tarce
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.

7 years agoRe-enable ARMv7 memcpy implementation.
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.

7 years agoFix armv7-user builds by disabling the ARMv7-optimized memcpy.
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.

7 years agoam fe46030c: Merge changes I3bd27087,I0c9ec550,I3a0e5e86 into eclair
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""

7 years agoMerge changes I3bd27087,I0c9ec550,I3a0e5e86 into eclair
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""

7 years agoam 7a9e06fa: Merge change I2a7ad975 into eclair
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.

7 years agoMerge change I2a7ad975 into 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.

7 years agoFix 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

7 years agobionic/linker: allow resolving of symbols from library back to executable
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>
7 years agobionic/linker: change lookup() to return soinfo, not base
Iliyan Malchev [Tue, 29 Sep 2009 01:21:30 +0000 (18:21 -0700)]
bionic/linker: change lookup() to return soinfo, not base

7 years agoRevert "Revert "bionic/linker: fix symbol lookup during relocations""
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.

7 years agoam ee223d02: NEON optimized memcpy.
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.

7 years agoNEON 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.

7 years agoadded and modified bionic code to support SuperH architecture
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/*

7 years agoam 33acbf07: Revert "bionic/linker: fix symbol lookup during relocations"
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"

7 years agoRevert "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.

7 years agoam 4e5a965d: Merge change 27075 into eclair
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

7 years agoMerge change 27075 into eclair
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

7 years agobionic/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>
8 years agoam f355096a: Remove NEON optimizations for memcpy
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

8 years agoRemove NEON optimizations for memcpy
David 'Digit' Turner [Sun, 27 Sep 2009 14:08:46 +0000 (07:08 -0700)]
Remove NEON optimizations for memcpy

8 years agoam bc10cd29: Fix a typo that resulted in a crash in the boot sequence
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

8 years agoFix 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

8 years agoam d154954f: Merge change 26419 into eclair
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

8 years agoMerge change 26419 into eclair
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

8 years agoresolved conflicts for merge of 4a05d12c to eclair-plus-aosp
David 'Digit' Turner [Tue, 22 Sep 2009 22:41:36 +0000 (15:41 -0700)]
resolved conflicts for merge of 4a05d12c to eclair-plus-aosp

8 years agoAdd pthread_mutex_lock_timeout_np
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

8 years agoFix TLS access for ARMv6 and beyond.
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.

8 years agoMerge change 10538
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