16k: Set PTHREAD_STACK_MIN to 16384/8192 for 64-bit/32-bit archs
Set PTHREAD_STACK_MIN will be set to:
- 16384 for 64-bit arch
- 8192 for 32-bit arch
Bug: 315174209
Test: Built and start the targets
- aosp_cf_arm64_phone_pgagnostic
- aosp_cf_x86_64_phone
Change-Id: I8bb20a3433e615f9f80a0d52051f2e1635d4301a
diff --git a/libc/include/pthread.h b/libc/include/pthread.h
index 9d99aa1..871c62c 100644
--- a/libc/include/pthread.h
+++ b/libc/include/pthread.h
@@ -74,14 +74,9 @@
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
#endif
-
#if defined(__LP64__)
-#if defined(PAGE_SIZE)
#define PTHREAD_STACK_MIN 16384
#else
-#define PTHREAD_STACK_MIN 65536
-#endif
-#else
#define PTHREAD_STACK_MIN 8192
#endif