From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwyHW-0008Il-Mw for qemu-devel@nongnu.org; Mon, 13 Feb 2012 10:57:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwyHQ-0005qf-IK for qemu-devel@nongnu.org; Mon, 13 Feb 2012 10:57:34 -0500 Received: from cantor2.suse.de ([195.135.220.15]:49168 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwyHQ-0005qV-53 for qemu-devel@nongnu.org; Mon, 13 Feb 2012 10:57:28 -0500 Message-ID: <4F3932E6.5000602@suse.de> Date: Mon, 13 Feb 2012 16:57:26 +0100 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1329144150-7720-1-git-send-email-abarcelo@ac.upc.edu> <1329144150-7720-2-git-send-email-abarcelo@ac.upc.edu> In-Reply-To: <1329144150-7720-2-git-send-email-abarcelo@ac.upc.edu> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/3] coroutine: adding sigaltstack method (.c source) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Barcelo Cc: Kevin Wolf , qemu-devel@nongnu.org Am 13.02.2012 15:42, schrieb Alex Barcelo: > This file is based in both coroutine-ucontext.c and > pth_mctx.c (from the GNU Portable Threads library). >=20 > The mechanism used to change stacks is the sigaltstack > function (variant 2 of the pth library). >=20 > Signed-off-by: Alex Barcelo > --- > coroutine-sigaltstack.c | 337 +++++++++++++++++++++++++++++++++++++++= ++++++++ > 1 files changed, 337 insertions(+), 0 deletions(-) > create mode 100644 coroutine-sigaltstack.c >=20 > diff --git a/coroutine-sigaltstack.c b/coroutine-sigaltstack.c > new file mode 100644 > index 0000000..1d4f26d > --- /dev/null > +++ b/coroutine-sigaltstack.c > @@ -0,0 +1,337 @@ > +/* > + * sigaltstack coroutine initialization code > + * > + * Copyright (C) 2006 Anthony Liguori > + * Copyright (C) 2011 Kevin Wolf > + * Copyright (C) 2012 Alex Barcelo > + * > + * This 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.0 of the License, or (at your option) any later version. > + * > + * This 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 this library; if not, see . > + */ > + > +/* > +** This file is partly based on pth_mctx.c, from the GNU Portable Thre= ads > +** Copyright (c) 1999-2006 Ralf S. Engelschall > +** Same license (version 2.1 or later) > +*/ You should (need to?) use version 2.1 or later above then, too. You can then simply move this snippet up and drop the "Same license ..." line. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg