From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Gaylard Newsgroups: gmane.lisp.guile.devel Subject: [patch] implement scm_init_guile for 1.8.8 on Solaris 10u9 Date: Thu, 28 Apr 2011 17:40:08 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=bcaec547c63b449f9904a1fc5fc7 X-Trace: dough.gmane.org 1304005225 29437 80.91.229.12 (28 Apr 2011 15:40:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2011 15:40:25 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Apr 28 17:40:21 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QFTKE-0001Do-8D for guile-devel@m.gmane.org; Thu, 28 Apr 2011 17:40:18 +0200 Original-Received: from localhost ([::1]:56254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFTKD-0002Uq-P2 for guile-devel@m.gmane.org; Thu, 28 Apr 2011 11:40:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFTKA-0002Ug-JI for guile-devel@gnu.org; Thu, 28 Apr 2011 11:40:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFTK5-0001qJ-L6 for guile-devel@gnu.org; Thu, 28 Apr 2011 11:40:14 -0400 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:55773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFTK5-0001qF-HL for guile-devel@gnu.org; Thu, 28 Apr 2011 11:40:09 -0400 Original-Received: by vxk20 with SMTP id 20so2795891vxk.0 for ; Thu, 28 Apr 2011 08:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=3sz+zyHG+k0vw40aPn1dqyaliC0sVHdsoBoupX3fwhs=; b=hvWCwDf/1IDGGEzh8GcJkTfyFW59YlDCKxCOnOdz/kQczHXzK7/q8cGwPN4MAXtSrj dKCk9buIBVqGf5OdYEvYVNhUYr10gfd7aPw1T58VXR25EBviIHbKYMrSwiShvJEIHUR2 GisUDpJKmZgI2rt7KNiaxF7PmMtO+/PAuTXnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=KTAuBeuS6w8ZSBP4Ms5J4c4DuMJ/ZFapFOq77H6gjC90jb+lZrDPGJWNkB2Vy6t+It FwdYvoMtWaL0E0tc4g7LC3WvrVkfqFzDGJBaUlpwofZd/kHezkVpzdy+K7eYTIuqb1Js jdaeI0O/6OU+nc08M7HLT/t7p19JpLxpJsC6U= Original-Received: by 10.52.109.101 with SMTP id hr5mr2806938vdb.46.1304005209005; Thu, 28 Apr 2011 08:40:09 -0700 (PDT) Original-Received: by 10.220.188.193 with HTTP; Thu, 28 Apr 2011 08:40:08 -0700 (PDT) X-Google-Sender-Auth: kEzcw8FW6lfMqJxmxwDBu1GOsiI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.220.169 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12370 Archived-At: --bcaec547c63b449f9904a1fc5fc7 Content-Type: text/plain; charset=ISO-8859-1 Hi, The attached patch implements the scm_init_guile function on Solaris. The detection of the stack parameters is done via a new(ish) Solaris function, stack_getbounds() -- see http://download.oracle.com/docs/cd/E19253-01/816-5168/stack-getbounds-3c/index.html for details. Tested on Solaris 10u9, on both SPARC64 and x86_64. - Andrew PS: now, on to get 2.0.1 working... --bcaec547c63b449f9904a1fc5fc7 Content-Type: text/x-diff; charset=US-ASCII; name="fix-solaris-scm_init_guile.patch" Content-Disposition: attachment; filename="fix-solaris-scm_init_guile.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gn1uz29t0 LS0tIGd1aWxlLTEuOC44L2xpYmd1aWxlL3RocmVhZHMuYy5vcmlnCU1vbiBEZWMgMTMgMTk6MjQ6 NDAgMjAxMAorKysgZ3VpbGUtMS44LjgvbGliZ3VpbGUvdGhyZWFkcy5jCVdlZCBBcHIgMjcgMjA6 MDc6MzQgMjAxMQpAQCAtNjg5LDggKzY4OSwyNSBAQAogewogICByZXR1cm4gc2NtX2dldF9zdGFj a19iYXNlICgpOwogfQogCisjZWxpZiBkZWZpbmVkIChzdW4pCisKKyNkZWZpbmUgSEFWRV9HRVRf VEhSRUFEX1NUQUNLX0JBU0UKKyNpbmNsdWRlIDx1Y29udGV4dC5oPgorc3RhdGljIFNDTV9TVEFD S0lURU0gKgorZ2V0X3RocmVhZF9zdGFja19iYXNlICgpCit7CisgIHN0YWNrX3Qgc3RhY2s7Cisg IHN0YWNrX2dldGJvdW5kcyggJnN0YWNrICk7CisKKyNpZiBTQ01fU1RBQ0tfR1JPV1NfVVAKKyAg cmV0dXJuIHN0YWNrLnNzX3NwOworI2Vsc2UKKyAgcmV0dXJuIHN0YWNrLnNzX3NwICsgc3RhY2su c3Nfc2l6ZTsKKyNlbmRpZgorfQorCiAjZW5kaWYgLyogcHRocmVhZCBtZXRob2RzIG9mIGdldF90 aHJlYWRfc3RhY2tfYmFzZSAqLwogCiAjZWxzZSAvKiAhU0NNX1VTRV9QVEhSRUFEX1RIUkVBRFMg Ki8KIAo= --bcaec547c63b449f9904a1fc5fc7--