summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge change 6915 into donutQ8650BSDCANLYA3190QuIC Gerrit Code Review2009-08-271-1/+1
|\ | | | | | | | | * changes: memcpy: change pre-load instruction to use source address register
| * memcpy: change pre-load instruction to use source address registerNaresh Babu Saladi2009-08-191-1/+1
| | | | | | | | | | | | In case of 32-bit aligned memcpy, pre-load the contents of source. Currently, pre-load instruction uses register r12, which doesn't point to source address and thus effectively a no-op in the code.
* | Merge branch 'donut-caf' into donutM7630AABBQMLZA1000Brian Daugherty2009-08-240-0/+0
|\ \
| * \ Merge branch 'donut-caf' into donutM76XXTSNCJNLYA4515Brian Daugherty2009-08-200-0/+0
| |\ \
| | * \ Merge branch 'donut-release' into au-01.08.00.300Q8650BSDCANLYA3180Brian Daugherty2009-08-120-0/+0
| | |\ \
| | | * \ Merge branch 'donut-release' into au292Brian Daugherty2009-08-110-0/+0
| | | |\ \ | | |/ / /
| | | * | Merge commit 'au-01.08.00.258' into donut-releaseM76XXTSNCJNLYA4415Brian Daugherty2009-07-281-0/+18
| | | |\ \
| | | * | | bionic: add dvs fields and change intra_refresh field nameQ8650BSDCANLYA3170Susan Brownhill2009-07-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Susan Brownhill <sbrownhi@quicinc.com>
| | | * | | Merge commit 'au-01.08.00.230' into donut-releaseBrian Daugherty2009-07-155-5/+20
| | | |\ \ \
| | | * | | | Bionic: Update msm_audio.h to support volume, pan and QConcertPlusM76XXTSNCJNLYA4320Suresh Vankadara2009-07-021-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Suresh Vankadara <svankada@qualcomm.com>
| | | * | | | Merge changes 3110,3145 into donut-releaseM76XXTSNCJNLYA4315QuIC Gerrit Code Review2009-06-252-1/+26
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Bionic: sync kernel changes in android_pmem.h to bionic Bionic: Updating msm_audio.h to support NT2 Stream Info
| | | | * | | | Bionic: sync kernel changes in android_pmem.h to bionicLarry Bassel2009-06-241-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Larry Bassel <lbassel@quicinc.com>
| | | | * | | | Bionic: Updating msm_audio.h to support NT2 Stream InfoZeng, Helen2009-06-241-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This corresponds to kernel gerrit ID: 2230 This patch should be merged to mainline after 2544 (Gerrit ID) is merged first.
| | | * | | | | Merge change 3109 into donut-releaseQuIC Gerrit Code Review2009-06-251-0/+19
| | | |\ \ \ \ \ | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | * changes: bionic: msm: audio: Add asynchronous I/O interface definition
| | | | * | | | bionic: msm: audio: Add asynchronous I/O interface definitionLai, Patrick2009-06-241-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add asynchronous I/O interface definition so user-space application can pass input/output buffer and get buffer_done message asynchronously Signed-off-by: Patrick Lai <plai@quicinc.com>
* | | | | | | | bionic: Update macro check for ARM CLZ instructionNg, David2009-08-201-1/+2
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify the preprocessor condition to explicitly check if the ARM CLZ instruction is supported rather than for ARM_ARCH_5, as this instruction is also supported on newer ARM architectures.
* | | | | | | Merge change 6821 into donutQuIC Gerrit Code Review2009-08-191-0/+1
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | * changes: bionic: Add meta field size to AIO buffer structure
| * | | | | | bionic: Add meta field size to AIO buffer structureSriranjan Srikantam2009-08-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The meta field size parameter is required in AIO buffer structure for using in NT2 mode in asynchronous I/O mechanism. This change corresponds to kernel commit effa0928ecd8a21d67391fda75c236c9c427d974
* | | | | | | bionic: Replace ARM SWP instruction with LDREX/STREXNg, David2009-08-181-1/+6
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace SWP instruction with ARMv6+ LDREX/STREX. Using hardcoded binary instructions as the current default Android compiler flag is set to compile for ARMv5 only.
* | | | | | Merge change 5619 into donutQuIC Gerrit Code Review2009-08-131-0/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: bionic: Add pcm width to msm audio config structure
| * | | | | | bionic: Add pcm width to msm audio config structureSriranjan Srikantam2009-08-131-0/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add pcm width variable to pcm config structure which is required for the pcm decoder driver. This corrs to kernel commit 284c865e265a9a86bd946f7b7fe686042a95512f
* | | | | | Merge commit 'quic/korg/donut' into qcom_aospAmar Singhal2009-08-1015-212/+433
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | bionic/linker: keep track of opened libraries by basenameandroid-sdk-tools_r2android-sdk-1.6_r2android-sdk-1.6_r1android-sdk-1.6-docs_r1android-1.6_r2android-1.6_r1.5android-1.6_r1.4android-1.6_r1.3android-1.6_r1.2android-1.6_r1.1android-1.6_r1Erik Gilling2009-07-281-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this change, the dynamic loader kept track of opened libraries either by their base name (i.e., libfoo.so instead of /system/lib/libfoo.so) when the shared library was loaded through the DT_NEEDED tag in an ELF header, or by whatever name was passed to dlopen(). This created a number of problems, among which: 1. dlopen("libfoo.so") and dlopen("/path/to/libfoo.so") would open the same library twice; 2. dlopen("/path/to/libfoo.so") and then dlopen("libbar.so"), where libbar.so depends on libfoo.so, would open libfoo.so twice. This patch makes the dynamic loader keep track of each loaded library by basename, which resolves the above ambiguity. The patch also enforces library lookup by base name, which means that it will refuse to load another library that has the same name. Thanks for the inspiration Iliyan. Signed-off-by: Erik Gilling <konkers@android.com> Cc: Iliyan Malchev <malchev@google.com>
| * | | | | Merge change 8281 into donutAndroid (Google) Code Review2009-07-281-34/+34
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: linker: remove newlines from DL_ERR so that dlerror works correctly
| | * | | | | linker: remove newlines from DL_ERR so that dlerror works correctlyErik Gilling2009-07-221-34/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Erik Gilling <konkers@android.com>
| * | | | | | Make the DNS resolver accept domain names with an underscore.David 'Digit' Turner2009-07-271-1/+8
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More precisely, this accepts domain labels with an underscore in the middle (i.e. not at the start or the end of the label). This is needed to perform complex CNAME chain resolution in certain VPN networks.
| * | | | | Restore malloc debug.Andy McFadden2009-07-214-16/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some libc changes were preventing the initialization call from being made. The basic problem appears to be that libc_init_common.c is only built once, and it's only built for the non-debug libc.
| * | | | | Fix the C library runtime initialization order.David 'Digit' Turner2009-07-184-100/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows libc.so to run the C runtime initializer as soon as the dynamic linker loads the shared library, i.e. before any other initializers (e.g. static C++ constructors in other shared libraries the executable depends on). This also removes the bug where the initializers from the executable itself were run twice: once by the dynamic linker, and another time by __libc_init as defined by libc_init_dynamic.c
| * | | | | Pass the elfdata pointer in a slot of the temporary TLS area.David 'Digit' Turner2009-07-172-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to properly initialize the C runtime when libc.so is loaded by the dynamic linker. Move the temporary TLS setup before the first system call, just in case something really horrible happens, we won't crash when trying to write an error code in 'errno' Remove the broken TLS_SLOT_THREAD_ID setup. First, this slot should normally receive the address of a pthread_internal_t, not a kernel thread identifier. Second, it is never used by the linker anyway. Also remove an obsolete comment.
| * | | | | Add new C++ headers <cerrno> and <cfloat>David 'Digit' Turner2009-07-104-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add std::malloc/realloc/calloc/free to <cstdlib> Rename <cwchar_is_not_supported> to <cwchar>
| * | | | | Add <linux/uinput.h> to C library kernel headersDavid 'Digit' Turner2009-07-101-0/+67
| | | | | |
| * | | | | Prevent a crash in the memory leak checker (which happened in chk_free())David 'Digit' Turner2009-07-103-63/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify the code a little, removing un-necessary mutex locks/unlocks. Provide slightly better diagnostic message in case of corruption. Use snprintf/strlcat instead of sprintf/strcat
* | | | | | bionic: Add msm_voicerec_mode struct to msm_audio.h and ioctl to set it.Ashraya Arya2009-08-041-0/+12
| | | | | |
* | | | | | Merge commit 'quic/korg/donut' into donutShilpa Gopal2009-08-0318-210/+655
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge change 2990 into donutAndroid (Google) Code Review2009-06-251-4/+52
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add LD_LIBRARY_PATH support to bionic's linker
| | * | | | | Add LD_LIBRARY_PATH support to bionic's linkerDavid Bartley2009-06-151-4/+52
| | | | | | |
| * | | | | | Merge change 5184 into donutAndroid (Google) Code Review2009-06-241-24/+26
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: update clean msm_camera.h
| | * | | | | | update clean msm_camera.hIliyan Malchev2009-06-231-24/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
| * | | | | | | Add Glibc-compatible macro aliases for the nanosecond time accessors in stat ↵David 'Digit' Turner2009-06-221-0/+7
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | structure
| * | | | | | Update cleaned-up kernel headersDavid 'Digit' Turner2009-06-162-35/+35
| | | | | | |
| * | | | | | Add new clean header for PPP on PPTP (VPN)David 'Digit' Turner2009-06-121-0/+28
| | | | | | |
| * | | | | | bionic: update msm_camera.h headerIliyan Malchev2009-06-041-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
| * | | | | | Revert "Fix the C library initialization to avoid calling static C++ ↵David 'Digit' Turner2009-06-0311-273/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | constructors twice." This reverts commit 03eabfe65e1e2c36f4d26c78a730fa19a3bdada3.
| * | | | | | Fix the C library initialization to avoid calling static C++ constructors twice.David 'Digit' Turner2009-06-0211-94/+273
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was due to the fact that, in the case of dynamic executables, the dynamic linker calls the DT_PREINIT_ARRAY, DT_INIT and DT_INIT_ARRAY constructors when loading shared libraries and dynamic executables, *before* calling the executable's entry point (i.e. arch-$ARCH/bionic/crtbegin_dynamic.c) which in turns call __libc_init() in libc.so, as defined by bionic/libc_init_dynamic.c The latter did call these constructors array again, mistakenly. The patch also updates the documentation of many related functions. Also adds a new section to linker/README.TXT explaining restrictions on C library usage. The patch has been tested on a Dream for stability issues with proprietary blobs: - H264 decoding works - Camera + Video recording works - GPS works - Sensors work The tests in system/extra/tests/bionic/libc/common/test_static_cpp_mutex.cpp has been run and shows the static C++ constructor being called only once.
| * | | | | linker: Give more context for failures during library dependency resolution.Dima Zavin2009-06-011-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dima Zavin <dima@android.com>
| * | | | | linker: Make the errors reported by dlopen/dlsym be more useful.Dima Zavin2009-05-275-67/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed it so that when the linker generates error messages, they are scribbled away into a buffer that dlfcn and friends can read from. Since the error messages are generetad with snprintf, and snprintf MAY call malloc during some code paths, we now link against a version of libc that does not contain malloc/free/realloc/calloc. We then define malloc and friends in the dynamic loader, and make them abort() if they are ever called. Signed-off-by: Dima Zavin <dima@android.com>
| * | | | | libc: Add an intermediate version of the static libc without mallocDima Zavin2009-05-271-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now, this will only used by the dynamic loader to ensure that malloc and friends are never called. Signed-off-by: Dima Zavin <dima@android.com>
| * | | | | libc: Cleanup the libc makefile.Dima Zavin2009-05-271-116/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes a lot of redundant code, and reorganizes the file. We first setup all the comomn variables we may need, and then define the actual libraries that need to be generated. Signed-off-by: Dima Zavin <dima@android.com>
| * | | | | Merge change 2470 into donutAndroid (Google) Code Review2009-05-272-2/+27
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix getservent() so that it returns s_port in network byte order. Also add a new document detailing known issues in the C library.
| | * | | | | Fix getservent() so that it returns s_port in network byte order.David 'Digit' Turner2009-05-272-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a new document detailing known issues in the C library.