This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Patch] `GS' undeclared



With the current CVS version I get:
pthread.c: In function `pthread_handle_sigrestart_rt':
pthread.c:658: `GS' undeclared (first use in this function)
pthread.c:658: (Each undeclared identifier is reported only once
pthread.c:658: for each function it appears in.)
pthread.c: In function `pthread_handle_sigcancel_rt':
pthread.c:707: `GS' undeclared (first use in this function)

Ulrich, Please apply the appended patch.

Andreas

2000-03-14  Andreas Jaeger  <aj@suse.de>

	* pthread.c (pthread_handle_sigcancel_rt): GS has been renamed to
	REG_GS.
	(pthread_handle_sigrestart_rt): Likewise.
	* signals.c (pthread_sighandler_rt): Likewise.


============================================================
Index: linuxthreads/pthread.c
--- linuxthreads/pthread.c	2000/01/12 11:31:47	1.33
+++ linuxthreads/pthread.c	2000/03/14 12:21:22
@@ -655,7 +655,7 @@
 static void pthread_handle_sigrestart_rt(int sig, struct siginfo *si,
 					 struct ucontext *uc)
 {
-  asm volatile ("movw %w0,%%gs" : : "r" (uc->uc_mcontext.gregs[GS]));
+  asm volatile ("movw %w0,%%gs" : : "r" (uc->uc_mcontext.gregs[REG_GS]));
   pthread_handle_sigrestart(sig);
 }
 #endif
@@ -704,7 +704,7 @@
 static void pthread_handle_sigcancel_rt(int sig, struct siginfo *si,
 					 struct ucontext *uc)
 {
-  asm volatile ("movw %w0,%%gs" : : "r" (uc->uc_mcontext.gregs[GS]));
+  asm volatile ("movw %w0,%%gs" : : "r" (uc->uc_mcontext.gregs[REG_GS]));
   pthread_handle_sigcancel(sig);
 }
 #endif
============================================================
Index: linuxthreads/signals.c
--- linuxthreads/signals.c	1999/10/25 20:13:58	1.14
+++ linuxthreads/signals.c	2000/03/14 12:23:08
@@ -109,7 +109,7 @@
   pthread_descr self;
   char * in_sighandler;
 #ifdef __i386__
-  asm volatile ("movw %w0,%%gs" : : "r" (uc->uc_mcontext.gregs[GS]));
+  asm volatile ("movw %w0,%%gs" : : "r" (uc->uc_mcontext.gregs[REG_GS]));
 #endif
   self =  thread_self();
   /* If we're in a sigwait operation, just record the signal received

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]