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 U30gJChBUkNIX0ZMQUd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ZGUgIm9wdF9rZXJubmFtZS5oIgotCiAjaW5jbHVkZSA8bWFjaGluZS9hc20uaD4KIF9fRkJTRElE KCIkRnJlZUJTRCQiKQorCitFTlRSWShfc3RhcnQpCisJUFRSX0xBCXQwLCBrZXJuZWxfZW5kCisJ bW92ZQlzcCwgdDAKKwlhZGQJc3AsIDB4MjAwMAorCWFuZAlzcCwgfjB4NworCVBUUl9MQQl0MCwg X3N0YXJ0QworCWoJdDAKKwlub3AKK0VORChfc3RhcnQpCisKKyNpZm5kZWYgS0VSTk5BTUUKKyNl cnJvciBOZWVkIGEga2VybmVsIG5hbWUgaGVyZQorI2VuZGlmCisKIC5zZWN0aW9uICIucmVhbF9r ZXJuZWwiLCJhdyIKIC5nbG9ibCBrZXJuZWxfc3RhcnQ7CiBrZXJuZWxfc3RhcnQ6CkluZGV4OiBz eXMvbWlwcy9taXBzL2VsZl90cmFtcG9saW5lLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL21pcHMvbWlw cy9lbGZfdHJhbXBvbGluZS5jCShyZXZpc2lvbiAyMTYzMTgpCisrKyBzeXMvbWlwcy9taXBzL2Vs Zl90cmFtcG9saW5lLmMJKHdvcmtpbmcgY29weSkKQEAgLTQyLDggKzQyLDExIEBACiAgKiBuZWVk IHRvIGluY2x1ZGUgb3B0X2dsb2JhbC5oIG1hbnVhbGx5LgogICovCiAjaW5jbHVkZSAib3B0X2ds b2JhbC5oIgotI2luY2x1ZGUgIm9wdF9rZXJubmFtZS5oIgogCisjaWZuZGVmIEtFUk5OQU1FCisj ZXJyb3IgS2VybmVsIG5hbWUgbm90IHByb3ZpZGVkCisjZW5kaWYKKwogZXh0ZXJuIGNoYXIga2Vy bmVsX3N0YXJ0W107CiBleHRlcm4gY2hhciBrZXJuZWxfZW5kW107CiAK --00151749f6a28a56db0497749548--