From owner-freebsd-current@FreeBSD.ORG Thu Oct 25 16:10:43 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F9ABAC6; Thu, 25 Oct 2012 16:10:43 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id B69388FC16; Thu, 25 Oct 2012 16:10:42 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id wc20so2255116obb.13 for ; Thu, 25 Oct 2012 09:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bRwlDlCR8j1Quy3RlKkinB6/KxJ3qUkMU82OiiSkLsI=; b=H7H6W+qe+0qVKWfQIk4Cnb121JNt81NCUvjrbwyBQ6a4LsayjadiCcyPkaOyqGILhw a/ggRIULR2wSeeht9MxfAc9P16k0eaUZ4KTnumJmoqPVG1iOPaOt45CxyzYT9Ll3XDkF xr5CnlFQ2tTvi7DlEznvlR1+seUeonxkCuQAat3pUuFnYUY3mx5LCsGUQtfLJkve0ZkR OMDGVejl7jDuBpxLpt6H4Mcc5Yelm/cGR0V7TozUPzzt6IwgB5hTrQ535N3Z84v57BB4 5w2iCLJQe5sa5KeK32X/Rc75voS56ZdH9gJ3SyurZszkPHPVEqR6K/vYu17swWqz4RIf tIyw== MIME-Version: 1.0 Received: by 10.60.13.198 with SMTP id j6mr17117770oec.51.1351181436030; Thu, 25 Oct 2012 09:10:36 -0700 (PDT) Received: by 10.76.143.33 with HTTP; Thu, 25 Oct 2012 09:10:35 -0700 (PDT) In-Reply-To: <050788AC7FD04B00828B9FE758F2BC92@forexamplePC> References: <050788AC7FD04B00828B9FE758F2BC92@forexamplePC> Date: Thu, 25 Oct 2012 09:10:35 -0700 Message-ID: Subject: Re: FreeBSD in Google Code-In 2012? You can help too! From: Garrett Cooper To: Michael Vale Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2012 16:10:43 -0000 On Thu, Oct 25, 2012 at 9:03 AM, Michael Vale wrote: > > -----Original Message----- From: Michael Vale > Sent: Friday, October 26, 2012 3:02 AM > To: Stefan Esser > > Subject: Re: FreeBSD in Google Code-In 2012? You can help too! > > yeah it builds fine as it has no dependencies. > > currently it only has syscalls for linux (emulation) and any binary app you > build against it has to be brandelf'd Linux. > > I would like to see the freebsd syscalls, mutex/futexes coded into it so it > could be a drop in replacement for the bsd toolchain when cross-compiling > for mips / zrouter.org. > > plus i believe the mips kernel doesn't have linux emulation. (i could be > wrong). but yeah, a native port would require kernel hacking skills. Only x86 has Linux compat support (amd64. i386, and pc98), and true amd64 (64-bit, biarch) Linux compat is missing, FYI. It's a doable task, but there would need to be some fudging done with the syscall table (I committed a script in LTP which groks unistd.h for this info on Linux), you'd need to add architecture dependent syscalls, and do some other fun tasks. Cheers, -Garrett