From d3b82fcc5f62ca7f0e462a0765689c368dfc6b90 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 29 Oct 2001 04:39:05 +0000 Subject: Support for Mach/PowerPC contributed by Peter Bruin . * sysdeps/mach/powerpc/machine-sp.h: New file. * sysdeps/mach/powerpc/sysdep.h: New file. * sysdeps/mach/powerpc/thread_state.h: New file. * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ... * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can expect to need the same thing on every platform. * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ... * sysdeps/generic/sys/ucontext.h: ... to replace this one. --- sysdeps/generic/sys/ucontext.h | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'sysdeps/generic/sys') diff --git a/sysdeps/generic/sys/ucontext.h b/sysdeps/generic/sys/ucontext.h index e3c4acef1f..d643dfbfc7 100644 --- a/sysdeps/generic/sys/ucontext.h +++ b/sysdeps/generic/sys/ucontext.h @@ -1,4 +1,5 @@ -/* Copyright (C) 1997 Free Software Foundation, Inc. +/* Data structures for user-level context switching. Generic version. + Copyright (C) 1997,98,99,2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,9 +17,29 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +/* This file's definitions suffice for any platform where all + the machine-specific state is described in `struct sigcontext'. */ + #ifndef _SYS_UCONTEXT_H #define _SYS_UCONTEXT_H 1 -#error "No system dependent context structure definitions" +#include +#include + +/* We need the signal context definitions even if they are not used + included in . */ +#include + +typedef struct sigcontext mcontext_t; + +/* Userlevel context. */ +typedef struct ucontext + { + unsigned long int uc_flags; + struct ucontext *uc_link; + stack_t uc_stack; + mcontext_t uc_mcontext; + __sigset_t uc_sigmask; + } ucontext_t; #endif /* sys/ucontext.h */ -- cgit 1.4.1