aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-09-02 06:00:59 +0000
committerChristopher Faylor <me@cgf.cx>2002-09-02 06:00:59 +0000
commitbdfeb1791513ac1fc58cd9229ee6234843a69167 (patch)
treed0e9640f4bc9a445b36aa52bd3a8ecb8123fd884 /winsup
parent169618f29fbf81921ed941f5512810822b575339 (diff)
downloadnewlib-bdfeb1791513ac1fc58cd9229ee6234843a69167.zip
newlib-bdfeb1791513ac1fc58cd9229ee6234843a69167.tar.gz
newlib-bdfeb1791513ac1fc58cd9229ee6234843a69167.tar.bz2
* dcrt0.cc (dll_crt0_1): Remove getpagesize() call.
* shared.cc (memory_init): Move it here.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dcrt0.cc2
-rw-r--r--winsup/cygwin/shared.cc1
3 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c6de5d7..f1ffd25 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-02 Christopher Faylor <cgf@redhat.com>
+
+ * dcrt0.cc (dll_crt0_1): Remove getpagesize() call.
+ * shared.cc (memory_init): Move it here.
+
2002-08-31 Christopher January <chris@atomice.net>
* fhandler_proc.cc: Add <sys/param.h> include.
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 003085d..ee9d42e 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -568,8 +568,6 @@ dll_crt0_1 ()
user_data->resourcelocks->Init ();
user_data->threadinterface->Init (user_data->forkee);
- (void) getpagesize (); /* initialize page size constant */
-
mainthread.init ("mainthread"); // For use in determining if signals
// should be blocked.
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc
index b6d15f3..3031ae7 100644
--- a/winsup/cygwin/shared.cc
+++ b/winsup/cygwin/shared.cc
@@ -146,6 +146,7 @@ memory_init ()
cygheap->shared_h = shared_h;
ProtectHandleINH (cygheap->shared_h);
+ getpagesize ();
heap_init ();
mount_table = (mount_info *) open_shared (user_name, MOUNT_VERSION,
cygwin_mount_h,