Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Feb 2003 21:57:42 +0000 (21:57 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Feb 2003 21:57:42 +0000 (21:57 +0000)
2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
Include kernel-features.h
* sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.

ChangeLog
nptl/Banner
nptl/ChangeLog
nptl/DESIGN-sem-old.txt [deleted file]
nptl/pthread_create.c
nptl/sysdeps/i386/i686/Makefile [new file with mode: 0644]
sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S

index 72cdcf2514a44c071b1c34d049b135f4292af050..9ef492c490424b2589d7ea03c5514b239d27d436 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
+
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
+       Include kernel-features.h
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
+
 2003-02-02  Jakub Jelinek  <jakub@redhat.com>
 
        * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
index 5dc564b124ee1a9820787fcb92957d31c88ef245..f87ad4d0faa56f8e1d35228284bc8d56c12e2147 100644 (file)
@@ -1 +1 @@
-NPTL 0.18 by Ulrich Drepper
+NPTL 0.19 by Ulrich Drepper
index 6e14988ad43a9e978647d22c765f0dee6135a732..a15da3dbefeac1338ad68ed97b022b5f2e1c0285 100644 (file)
@@ -1,8 +1,10 @@
 2003-02-03  Ulrich Drepper  <drepper@redhat.com>
 
+       * pthread_create.c: Include <atomic.h>.
        * allocatestack.c (allocate_stack): Implement coloring of the
        allocated stack memory.  Rename pagesize to pagesize_m1.  It's the
        size minus one.  Adjust users.
+       * sysdeps/i386/i686/Makefile: New file.
 
 2003-02-02  Ulrich Drepper  <drepper@redhat.com>
 
diff --git a/nptl/DESIGN-sem-old.txt b/nptl/DESIGN-sem-old.txt
deleted file mode 100644 (file)
index 2db2f35..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-Semaphores pseudocode
-==============================
-
-       int sem_wait(sem_t * sem);
-       int sem_trywait(sem_t * sem);
-       int sem_post(sem_t * sem);
-       int sem_getvalue(sem_t * sem, int * sval);
-
-struct sem_t {
-
-   unsigned int lock:
-         - internal mutex
-
-   unsigned int count;
-         - current semaphore count, also used as a futex
-
-   unsigned int waiters;
-         - number of threads queued in sem_wait().
-}
-
-sem_wait(sem_t *sem)
-{
-  lll_lock(sem->lock);
-  for (;;) {
-
-    if (sem->count)
-      break;
-
-    sem->waiters++;
-    lll_unlock(sem->lock);
-
-    futex_wait(&sem->count, 0)
-
-    lll_lock(sem->lock);
-    sem->waiters--;
-  }
-  sem->count--;
-  lll_unlock(sem->lock);
-}
-
-sem_post(sem_t *sem)
-{
-  lll_lock(sem->lock);
-  sem->count++;
-  if (sem->waiters)
-    futex_wake(&sem->count, sem->count);
-  lll_unlock(sem->lock);
-}
-
-sem_trywait(sem_t *sem)
-{
-  lll_lock(sem->lock);
-  if (sem->count) {
-    sem->count--;
-    lll_unlock(sem->lock);
-    return 0;
-  } else {
-    lll_unlock(sem->lock);
-    return -EAGAIN;
-  }
-}
-
-sem_getvalue(sem_t *sem, int *sval)
-{
-  *sval = sem->count;
-  read_barrier();
-}
index 033c0783ea7c0160c52686eacbb57d75540e8c2c..2b33243ceeacd119671f3cd2d194746aa39a7b4d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -24,6 +24,7 @@
 #include "pthreadP.h"
 #include <hp-timing.h>
 #include <ldsodefs.h>
+#include <atomic.h>
 
 #include <shlib-compat.h>
 
diff --git a/nptl/sysdeps/i386/i686/Makefile b/nptl/sysdeps/i386/i686/Makefile
new file mode 100644 (file)
index 0000000..493a7ec
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# This file is part of the GNU C Library.
+# Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
+
+# The GNU C Library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+
+# The GNU C Library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+
+# You should have received a copy of the GNU Lesser General Public
+# License along with the GNU C Library; if not, write to the Free
+# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+ifeq ($(subdir),nptl)
+# For P4 processors we color the stack in 128 bit steps.
+CFLAGS-pthread_create.c += -DCOLORING_INCREMENT=128
+endif
index 6a0a82c703a2d8cb6732ab3ca9e0053e716c7880..70dc0644251339d771c6db2a11cd097d40b09bdb 100644 (file)
@@ -22,6 +22,7 @@
 #include <sysdep.h>
 #include <sys/syscall.h>
 #include <sys/prctl.h>
+#include "kernel-features.h"
 
 const fenv_t *
 __fe_nomask_env (void)
index ddbf40b8d9ead11e971ec0eda4e273b1c03d167e..0ebf2d87275e527e53e0030c2ebc5d27d29dc0dc 100644 (file)
@@ -18,6 +18,7 @@
    02111-1307 USA.  */
 
 #include <sysdep.h>
+#include "kernel-features.h"
 
 #define __ASSEMBLY__
 #include <asm/ptrace.h>
index 08ce90177b75ced0eed818c9a65c0cc87c79ba4c..8487a3f522e79be0a2278ce59241e3bc13bf5bb3 100644 (file)
@@ -18,6 +18,7 @@
    02111-1307 USA.  */
 
 #include <sysdep.h>
+#include "kernel-features.h"
 
 #define __ASSEMBLY__
 #include <asm/ptrace.h>
index fa37abd6da064ff89899d36d531bb267e85807da..3e25a8e1840d90482a7d7d9f103b34dc031b3cff 100644 (file)
@@ -18,6 +18,7 @@
    02111-1307 USA.  */
 
 #include <sysdep.h>
+#include "kernel-features.h"
 
 #define __ASSEMBLY__
 #include <asm/ptrace.h>
index b1bcd44af1ecbbe03c760ff3965dd09ee34c9049..653811bda2453956f39ff1ff10c9c53b5f6a3cf5 100644 (file)
@@ -18,6 +18,7 @@
    02111-1307 USA.  */
 
 #include <sysdep.h>
+#include "kernel-features.h"
 
 #define __ASSEMBLY__
 #include <asm/ptrace.h>