From owner-freebsd-mips@FreeBSD.ORG Sun Dec 12 17:44:17 2010 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 311E3106566C for ; Sun, 12 Dec 2010 17:44:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id E55D78FC15 for ; Sun, 12 Dec 2010 17:44:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id oBCHbGPj028274; Sun, 12 Dec 2010 10:37:18 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4D05084C.10308@bsdimp.com> Date: Sun, 12 Dec 2010 10:37:16 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: Tijl Coosemans References: <201012121417.28343.tijl@coosemans.org> In-Reply-To: <201012121417.28343.tijl@coosemans.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , mips@FreeBSD.org, Bruce Evans Subject: Re: mips sig_atomic_t X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 17:44:17 -0000 On 12/12/2010 06:17, Tijl Coosemans wrote: > Hi Warner, > > In mips/include/signal.h sig_atomic_t is defined as int. Do you know if > this can be 64 bit on the N64 ABI like on other 64 bit archs? How about > N32? For reference, the POSIX definition of sig_atomic_t states: possibly > volatile-qualified integer type of an object that can be accessed as an > atomic entity, even in the presence of asynchronous interrupts. LD and SD can be used to load/store an aligned 64-bit word in a mips64-like ISA. For mips32 ISAs, a 64-bit quantity is loaded/stored with two LW/SW instructions. N64 and N32 can load/store these. However, N32 has an int set to 32-bits. I think this is OK. Warner From owner-freebsd-mips@FreeBSD.ORG Mon Dec 13 14:36:20 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01A801065670 for ; Mon, 13 Dec 2010 14:36:20 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay010.isp.belgacom.be (mailrelay010.isp.belgacom.be [195.238.6.177]) by mx1.freebsd.org (Postfix) with ESMTP id 8C9528FC12 for ; Mon, 13 Dec 2010 14:36:19 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEACC2BU1bsZ+k/2dsb2JhbACkAHnCA4VKBJAT Received: from 164.159-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.159.164]) by relay.skynet.be with ESMTP; 13 Dec 2010 15:06:50 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.4/8.14.4) with ESMTP id oBDE6lQL003660; Mon, 13 Dec 2010 15:06:49 +0100 (CET) (envelope-from tijl@coosemans.org) From: Tijl Coosemans To: Warner Losh Date: Mon, 13 Dec 2010 15:06:34 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.2; i386; ; ) References: <201012121417.28343.tijl@coosemans.org> <4D05084C.10308@bsdimp.com> In-Reply-To: <4D05084C.10308@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1379318.OyzAihz26h"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201012131506.45650.tijl@coosemans.org> Cc: Kostik Belousov , mips@freebsd.org, Bruce Evans Subject: Re: mips sig_atomic_t X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 14:36:20 -0000 --nextPart1379318.OyzAihz26h Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Sunday 12 December 2010 18:37:16 Warner Losh wrote: > On 12/12/2010 06:17, Tijl Coosemans wrote: >> In mips/include/signal.h sig_atomic_t is defined as int. Do you know if >> this can be 64 bit on the N64 ABI like on other 64 bit archs? How about >> N32? For reference, the POSIX definition of sig_atomic_t states: possibly >> volatile-qualified integer type of an object that can be accessed as an >> atomic entity, even in the presence of asynchronous interrupts. > LD and SD can be used to load/store an aligned 64-bit word in a=20 > mips64-like ISA. For mips32 ISAs, a 64-bit quantity is loaded/stored=20 > with two LW/SW instructions. >=20 > N64 and N32 can load/store these. However, N32 has an int set to=20 > 32-bits. I think this is OK. I'm still not sure if I understand the relations between the different acronyms correctly. Are these statements correct? There's a MIPS32 ISA and a MIPS64 ISA. The O32 ABI is ILP32 running on MIPS32. Like any ordinary 32 bit arch. The N64 ABI is LP64 running on MIPS64. Like any ordinary 64 bit arch. The N32 ABI is ILP32 running on MIPS64. It's pure MIPS64 not a compatibility mode or something like i386 code running on amd64. It has 64 bit registers and can do 64 bit load/store. --nextPart1379318.OyzAihz26h Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iF4EABEIAAYFAk0GKHUACgkQfoCS2CCgtis7XgD7BflX8cMiDIPqXBLShd4qUXPL 37AedRnuCOzOLX+zDUUBAIBkd887aldXQGJgK3U7rfHwRuWMYLWPX9wmagC7VRPB =j36Y -----END PGP SIGNATURE----- --nextPart1379318.OyzAihz26h-- From owner-freebsd-mips@FreeBSD.ORG Mon Dec 13 14:51:26 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD51D106564A for ; Mon, 13 Dec 2010 14:51:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 6BA158FC0A for ; Mon, 13 Dec 2010 14:51:26 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id oBDEmXmM038535; Mon, 13 Dec 2010 07:48:33 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4D063241.4030800@bsdimp.com> Date: Mon, 13 Dec 2010 07:48:33 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: Tijl Coosemans References: <201012121417.28343.tijl@coosemans.org> <4D05084C.10308@bsdimp.com> <201012131506.45650.tijl@coosemans.org> In-Reply-To: <201012131506.45650.tijl@coosemans.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , mips@freebsd.org, Bruce Evans Subject: Re: mips sig_atomic_t X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 14:51:26 -0000 On 12/13/2010 07:06, Tijl Coosemans wrote: > On Sunday 12 December 2010 18:37:16 Warner Losh wrote: >> On 12/12/2010 06:17, Tijl Coosemans wrote: >>> In mips/include/signal.h sig_atomic_t is defined as int. Do you know if >>> this can be 64 bit on the N64 ABI like on other 64 bit archs? How about >>> N32? For reference, the POSIX definition of sig_atomic_t states: possibly >>> volatile-qualified integer type of an object that can be accessed as an >>> atomic entity, even in the presence of asynchronous interrupts. >> LD and SD can be used to load/store an aligned 64-bit word in a >> mips64-like ISA. For mips32 ISAs, a 64-bit quantity is loaded/stored >> with two LW/SW instructions. >> >> N64 and N32 can load/store these. However, N32 has an int set to >> 32-bits. I think this is OK. > I'm still not sure if I understand the relations between the different > acronyms correctly. Are these statements correct? > > There's a MIPS32 ISA and a MIPS64 ISA. > Among others, but these are the two big families. Also, it may be better to view things as running in 32-bit mode and 64-bit mode... > The O32 ABI is ILP32 running on MIPS32. Like any ordinary 32 bit arch. > It can run on MIPS64 ISA also in 32-bit mode. > The N64 ABI is LP64 running on MIPS64. Like any ordinary 64 bit arch. Correct. > The N32 ABI is ILP32 running on MIPS64. It's pure MIPS64 not a > compatibility mode or something like i386 code running on amd64. It has > 64 bit registers and can do 64 bit load/store. It is ILP32 on top of 64-bit registers. The difference between 32-bit and 64-bit modes in MIPS is much smaller than the i386/amd64 differences. 64-bit mode just has a few extra instructions and operates generally on 64-bit registers rather than 32-bit registers. The only weird thing is that 32-bit mode on a 64-bit computer sign-extends the 32-bit addresses to 64-bits. Warner From owner-freebsd-mips@FreeBSD.ORG Wed Dec 15 15:28:09 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F248106574F; Wed, 15 Dec 2010 15:28:09 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ew0-f51.google.com (mail-ew0-f51.google.com [209.85.215.51]) by mx1.freebsd.org (Postfix) with ESMTP id EEE688FC0A; Wed, 15 Dec 2010 15:28:08 +0000 (UTC) Received: by ewy19 with SMTP id 19so1338245ewy.10 for ; Wed, 15 Dec 2010 07:28:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=l7Fd9saCPws3ohcMahnIagW+0vO2M42uejXBQU97vzc=; b=EhjMuIyK+ibfn8geEeHLjb7x35BszkH0xdb29ZAPZREQB2XwRnacJvuqW0J5RM03BI rionIFo5ie9DNsc16B37FmoG8haGaMj1S71n+ITIBSpu6OBqT8DNwL+nWeIFESVrMFxs olvAS7/kWaHpXvAlRZzMqIq4Y/3TfJGjG5jJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Auwg1VpeQb5XkrjjUbRj4AG1i/WcoFFNbHvwkYPx3q2XSxKmAdmdqq86TqV60DFw7q 7SxxC8JnfDIfqUZm4HT4Zh9gfbWpl0OI36FiX+b86HJ/gUlr4Goq4M+l5Np/yOUEFeW6 ZDwZTtPtdrNGYLwL55PUJjae688QGQkzBmK7g= MIME-Version: 1.0 Received: by 10.213.7.70 with SMTP id c6mr1800797ebc.82.1292426887714; Wed, 15 Dec 2010 07:28:07 -0800 (PST) Received: by 10.213.14.147 with HTTP; Wed, 15 Dec 2010 07:28:07 -0800 (PST) Date: Wed, 15 Dec 2010 20:58:07 +0530 Message-ID: From: "Jayachandran C." To: freebsd-mips@freebsd.org, gonzo@freebsd.org Content-Type: multipart/mixed; boundary=00151749f6a28a56db0497749548 Cc: Subject: Cleanup for ELF trampoline code. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2010 15:28:09 -0000 --00151749f6a28a56db0497749548 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I've attached a patch which cleans up sys/conf/Makefile.mips a bit, the changes are: - don't use -shared flag for the trampoline binary, now we generate a shared obj, elf executable would be a better choice. - don't generate tmphack.S, =A0move the code to sys/mips/mips/inckern.S - don't generate opt_kernname.h, pass KERNNAME with -D Please let me know your comments. I'm not sure which other platforms use the elf trampoline code, let me know if this will break any platform. Thanks, JC --00151749f6a28a56db0497749548 Content-Type: text/x-patch; charset=US-ASCII; name="tramp-cleanup.patch" Content-Disposition: attachment; filename="tramp-cleanup.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ghqdgz720 SW5kZXg6IHN5cy9jb25mL01ha2VmaWxlLm1pcHMKPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2NvbmYvTWFr ZWZpbGUubWlwcwkocmV2aXNpb24gMjE2MzE4KQorKysgc3lzL2NvbmYvTWFrZWZpbGUubWlwcwko d29ya2luZyBjb3B5KQpAQCAtNTAsNiArNTAsNyBAQAogIyBpcyBleHRyZW1lbHkgcG9vciwgYXMg d2VsbCBhcyAtbW5vLWFiaWNhbGxzIHRvIGZvcmNlIG5vIEFCSSB1c2FnZS4KIENGTEFHUys9JHtF WFRSQV9GTEFHU30gJChBUkNIX0ZMQUdTKQogSEFDS19FWFRSQV9GTEFHUys9JHtFWFRSQV9GTEFH U30gJChBUkNIX0ZMQUdTKQorVFJBTVBfRVhUUkFfRkxBR1M9JHtFWFRSQV9GTEFHU30gJChBUkNI X0ZMQUdTKQogCiAjIFhYWCBoYXJkY29kZWQga2VybmVsIGVudHJ5IHBvaW50CiBBU01fQ0ZMQUdT Kz0ke0NGTEFHU30gLURfTE9DT1JFIC1ETE9DT1JFCkBAIC02MiwyMSArNjMsMTAgQEAKIAktZyAt LXN0cmlwLXN5bWJvbCAnJCR0JyAke0ZVTExLRVJORUx9ICR7S0VSTkVMX0tPfS50bXAKIAlzZWQg cy8ke0tFUk5MT0FEQUREUn0vJHtUUkFNUExPQURBRERSfS8gJHtMRFNDUklQVF9OQU1FfSB8IFwK IAkJc2VkIHMvIiArIFNJWkVPRl9IRUFERVJTIi8vICA+ICR7TERTQ1JJUFRfTkFNRX0udHJhbXAu bm9oZWFkZXIKLQkjIEdlbmVyYXRlIC5TIGZpbGUgdG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mFtcG9saW5lLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL21pcHMvbWlw cy9lbGZfdHJhbXBvbGluZS5jCShyZXZpc2lvbiAyMTYzMTgpCisrKyBzeXMvbWlwcy9taXBzL2Vs Zl90cmFtcG9saW5lLmMJKHdvcmtpbmcgY29weSkKQEAgLTQyLDggKzQyLDExIEBACiAgKiBuZWVk IHRvIGluY2x1ZGUgb3B0X2dsb2JhbC5oIG1hbnVhbGx5LgogICovCiAjaW5jbHVkZSAib3B0X2ds b2JhbC5oIgotI2luY2x1ZGUgIm9wdF9rZXJubmFtZS5oIgogCisjaWZuZGVmIEtFUk5OQU1FCisj ZXJyb3IgS2VybmVsIG5hbWUgbm90IHByb3ZpZGVkCisjZW5kaWYKKwogZXh0ZXJuIGNoYXIga2Vy bmVsX3N0YXJ0W107CiBleHRlcm4gY2hhciBrZXJuZWxfZW5kW107CiAK --00151749f6a28a56db0497749548-- From owner-freebsd-mips@FreeBSD.ORG Wed Dec 15 20:42:29 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C982106564A for ; Wed, 15 Dec 2010 20:42:29 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (hq.bluezbox.com [70.38.37.145]) by mx1.freebsd.org (Postfix) with ESMTP id 10FB78FC17 for ; Wed, 15 Dec 2010 20:42:27 +0000 (UTC) Received: from localhost ([127.0.0.1]) by launchpad.bluezbox.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1PSyB4-000ATU-Q8; Wed, 15 Dec 2010 12:42:23 -0800 Message-ID: <4D09282E.7080304@freebsd.org> Date: Wed, 15 Dec 2010 12:42:22 -0800 From: Oleksandr Tymoshenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: "Jayachandran C." References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: ---- X-Spam-Report: Spam detection software, running on the system "hq.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 12/15/2010 7:28 AM, Jayachandran C. wrote: > I've attached a patch which cleans up sys/conf/Makefile.mips a bit, > the changes are: > - don't use -shared flag for the trampoline binary, now we generate a > shared obj, elf executable would be a better choice. > - don't generate tmphack.S, move the code to sys/mips/mips/inckern.S > - don't generate opt_kernname.h, pass KERNNAME with -D > > Please let me know your comments. I'm not sure which other platforms > use the elf trampoline code, let me know if this will break any > platform. Looks OK to me. [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Cc: freebsd-mips@freebsd.org Subject: Re: Cleanup for ELF trampoline code. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2010 20:42:29 -0000 On 12/15/2010 7:28 AM, Jayachandran C. wrote: > I've attached a patch which cleans up sys/conf/Makefile.mips a bit, > the changes are: > - don't use -shared flag for the trampoline binary, now we generate a > shared obj, elf executable would be a better choice. > - don't generate tmphack.S, move the code to sys/mips/mips/inckern.S > - don't generate opt_kernname.h, pass KERNNAME with -D > > Please let me know your comments. I'm not sure which other platforms > use the elf trampoline code, let me know if this will break any > platform. Looks OK to me. From owner-freebsd-mips@FreeBSD.ORG Wed Dec 15 21:53:42 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56DAD106566B for ; Wed, 15 Dec 2010 21:53:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id EDECF8FC1A for ; Wed, 15 Dec 2010 21:53:41 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id oBFLkofD077968 for ; Wed, 15 Dec 2010 14:46:50 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4D09374A.2060206@bsdimp.com> Date: Wed, 15 Dec 2010 14:46:50 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-mips@FreeBSD.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Cleanup for ELF trampoline code. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2010 21:53:42 -0000 On 12/15/2010 08:28, Jayachandran C. wrote: > I've attached a patch which cleans up sys/conf/Makefile.mips a bit, > the changes are: > - don't use -shared flag for the trampoline binary, now we generate a > shared obj, elf executable would be a better choice. > - don't generate tmphack.S, move the code to sys/mips/mips/inckern.S > - don't generate opt_kernname.h, pass KERNNAME with -D > > Please let me know your comments. I'm not sure which other platforms > use the elf trampoline code, let me know if this will break any > platform. These all look fairly good. We share this code, kinda, with ARM. Maybe with your changes the kinda can become more of a shared make framework with MD code in sys/arm and sys/mips? Warner > Thanks, > JC > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@FreeBSD.ORG Thu Dec 16 06:02:57 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A230106566B; Thu, 16 Dec 2010 06:02:57 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id C58DE8FC0A; Thu, 16 Dec 2010 06:02:55 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id oBG62tiA042171; Thu, 16 Dec 2010 01:02:55 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id oBG62tVW042170; Thu, 16 Dec 2010 06:02:55 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 16 Dec 2010 06:02:55 GMT Message-Id: <201012160602.oBG62tVW042170@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2010 06:02:57 -0000 TB --- 2010-12-16 05:16:30 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-12-16 05:16:30 - starting HEAD tinderbox run for mips/mips TB --- 2010-12-16 05:16:30 - cleaning the object tree TB --- 2010-12-16 05:16:37 - cvsupping the source tree TB --- 2010-12-16 05:16:37 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2010-12-16 05:16:55 - building world TB --- 2010-12-16 05:16:55 - MAKEOBJDIRPREFIX=/obj TB --- 2010-12-16 05:16:55 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-12-16 05:16:55 - TARGET=mips TB --- 2010-12-16 05:16:55 - TARGET_ARCH=mips TB --- 2010-12-16 05:16:55 - TZ=UTC TB --- 2010-12-16 05:16:55 - __MAKE_CONF=/dev/null TB --- 2010-12-16 05:16:55 - cd /src TB --- 2010-12-16 05:16:55 - /usr/bin/make -B buildworld >>> World build started on Thu Dec 16 05:16:55 UTC 2010 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:898: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:911: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:912: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:915: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c: In function 'SHA512_Final': /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:919: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c: In function 'SHA384_Final': /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:994: warning: cast increases required alignment of target type *** Error code 1 Stop in /src/sbin/geom/class/eli. *** Error code 1 Stop in /src/sbin/geom/class. *** Error code 1 Stop in /src/sbin/geom. *** Error code 1 Stop in /src/sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-12-16 06:02:55 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-12-16 06:02:55 - ERROR: failed to build world TB --- 2010-12-16 06:02:55 - 2022.61 user 473.07 system 2784.76 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Thu Dec 16 10:44:43 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC48A1065670; Thu, 16 Dec 2010 10:44:43 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 9F86D8FC14; Thu, 16 Dec 2010 10:44:43 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id oBGAigZ5013150; Thu, 16 Dec 2010 05:44:43 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id oBGAigMo013136; Thu, 16 Dec 2010 10:44:42 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 16 Dec 2010 10:44:42 GMT Message-Id: <201012161044.oBGAigMo013136@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2010 10:44:44 -0000 TB --- 2010-12-16 09:58:07 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-12-16 09:58:07 - starting HEAD tinderbox run for mips/mips TB --- 2010-12-16 09:58:07 - cleaning the object tree TB --- 2010-12-16 09:58:12 - cvsupping the source tree TB --- 2010-12-16 09:58:12 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2010-12-16 09:58:37 - building world TB --- 2010-12-16 09:58:37 - MAKEOBJDIRPREFIX=/obj TB --- 2010-12-16 09:58:37 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-12-16 09:58:37 - TARGET=mips TB --- 2010-12-16 09:58:37 - TARGET_ARCH=mips TB --- 2010-12-16 09:58:37 - TZ=UTC TB --- 2010-12-16 09:58:37 - __MAKE_CONF=/dev/null TB --- 2010-12-16 09:58:37 - cd /src TB --- 2010-12-16 09:58:37 - /usr/bin/make -B buildworld >>> World build started on Thu Dec 16 09:58:38 UTC 2010 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:898: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:911: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:912: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:915: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c: In function 'SHA512_Final': /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:919: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c: In function 'SHA384_Final': /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:994: warning: cast increases required alignment of target type *** Error code 1 Stop in /src/sbin/geom/class/eli. *** Error code 1 Stop in /src/sbin/geom/class. *** Error code 1 Stop in /src/sbin/geom. *** Error code 1 Stop in /src/sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-12-16 10:44:42 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-12-16 10:44:42 - ERROR: failed to build world TB --- 2010-12-16 10:44:42 - 2023.16 user 466.38 system 2795.45 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Thu Dec 16 15:22:40 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCA43106566C; Thu, 16 Dec 2010 15:22:40 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 6C24C8FC14; Thu, 16 Dec 2010 15:22:39 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id oBGFMdXS070270; Thu, 16 Dec 2010 10:22:39 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id oBGFMdeC070265; Thu, 16 Dec 2010 15:22:39 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 16 Dec 2010 15:22:39 GMT Message-Id: <201012161522.oBGFMdeC070265@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2010 15:22:40 -0000 TB --- 2010-12-16 14:36:18 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-12-16 14:36:18 - starting HEAD tinderbox run for mips/mips TB --- 2010-12-16 14:36:18 - cleaning the object tree TB --- 2010-12-16 14:36:24 - cvsupping the source tree TB --- 2010-12-16 14:36:24 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2010-12-16 14:36:42 - building world TB --- 2010-12-16 14:36:42 - MAKEOBJDIRPREFIX=/obj TB --- 2010-12-16 14:36:42 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-12-16 14:36:42 - TARGET=mips TB --- 2010-12-16 14:36:42 - TARGET_ARCH=mips TB --- 2010-12-16 14:36:42 - TZ=UTC TB --- 2010-12-16 14:36:42 - __MAKE_CONF=/dev/null TB --- 2010-12-16 14:36:42 - cd /src TB --- 2010-12-16 14:36:42 - /usr/bin/make -B buildworld >>> World build started on Thu Dec 16 14:36:43 UTC 2010 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:898: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:911: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:912: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:915: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c: In function 'SHA512_Final': /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:919: warning: cast increases required alignment of target type /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c: In function 'SHA384_Final': /src/sbin/geom/class/eli/../../../../sys/crypto/sha2/sha2.c:994: warning: cast increases required alignment of target type *** Error code 1 Stop in /src/sbin/geom/class/eli. *** Error code 1 Stop in /src/sbin/geom/class. *** Error code 1 Stop in /src/sbin/geom. *** Error code 1 Stop in /src/sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-12-16 15:22:39 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-12-16 15:22:39 - ERROR: failed to build world TB --- 2010-12-16 15:22:39 - 2024.47 user 468.40 system 2781.27 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full