summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandan Uddaraju <chandanu@quicinc.com>2009-06-22 16:34:18 -0700
committerChandan Uddaraju <chandanu@quicinc.com>2009-06-29 19:34:00 -0700
commit6be573a9f3f7e646587778296af44590ce900860 (patch)
tree7e0beafc3918cb4f5da5f74f2ac048c87edf63ff
parentde544ce3268a6947324352e244f63d8729ac7032 (diff)
downloadbionic-6be573a9f3f7e646587778296af44590ce900860.zip
bionic-6be573a9f3f7e646587778296af44590ce900860.tar.gz
bionic-6be573a9f3f7e646587778296af44590ce900860.tar.bz2
bionic: Update virtual memory support 2G/2G split
Add the virtual address change for 1. Thread stack 2. linker 3. Non-prelinked libraries
-rw-r--r--libc/bionic/pthread.c2
-rw-r--r--linker/Android.mk2
-rw-r--r--linker/linker.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/libc/bionic/pthread.c b/libc/bionic/pthread.c
index ec3c459..017466c 100644
--- a/libc/bionic/pthread.c
+++ b/libc/bionic/pthread.c
@@ -55,7 +55,7 @@ void _thread_created_hook(pid_t thread_id) __attribute__((noinline));
#define PTHREAD_ATTR_FLAG_USER_STACK 0x00000002
#define DEFAULT_STACKSIZE (1024 * 1024)
-#define STACKBASE 0x10000000
+#define STACKBASE 0x60000000
static uint8_t * gStackBase = (uint8_t *)STACKBASE;
diff --git a/linker/Android.mk b/linker/Android.mk
index 48141be..cc97690 100644
--- a/linker/Android.mk
+++ b/linker/Android.mk
@@ -9,7 +9,7 @@ LOCAL_SRC_FILES:= \
debugger.c \
ba.c
-LINKER_TEXT_BASE := 0xB0000100
+LINKER_TEXT_BASE := 0x70000100
# The maximum size set aside for the linker, from
# LINKER_TEXT_BASE rounded down to a megabyte.
diff --git a/linker/linker.h b/linker/linker.h
index d80c761..bb41075 100644
--- a/linker/linker.h
+++ b/linker/linker.h
@@ -147,8 +147,8 @@ struct soinfo
extern soinfo libdl_info;
/* these must all be powers of two */
-#define LIBBASE 0x80000000
-#define LIBLAST 0x90000000
+#define LIBBASE 0x10000000
+#define LIBLAST 0x20000000
#define LIBINC 0x00100000