From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18945 invoked by alias); 14 Apr 2005 01:24:48 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 18546 invoked from network); 14 Apr 2005 01:24:40 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 14 Apr 2005 01:24:40 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j3E1Oeh5020280; Wed, 13 Apr 2005 21:24:40 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j3E1OdO27042; Wed, 13 Apr 2005 21:24:39 -0400 Received: from ballpeen.sfbay.redhat.com (ballpeen.sfbay.redhat.com [172.16.24.33]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j3E1ObYE013674; Wed, 13 Apr 2005 21:24:38 -0400 Received: from ballpeen.sfbay.redhat.com (ballpeen.sfbay.redhat.com [127.0.0.1]) by ballpeen.sfbay.redhat.com (8.13.1/8.13.1) with ESMTP id j3E1ObHU003081; Wed, 13 Apr 2005 18:24:37 -0700 Received: (from rth@localhost) by ballpeen.sfbay.redhat.com (8.13.1/8.13.1/Submit) id j3E1Obo7003080; Wed, 13 Apr 2005 18:24:37 -0700 X-Authentication-Warning: ballpeen.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Thu, 14 Apr 2005 01:24:00 -0000 From: Richard Henderson To: Mark Kettenis Cc: echristo@redhat.com, binutils@sourceware.org Subject: Re: [RFA] Update OpenBSD/mips64 support Message-ID: <20050414012436.GA1150@redhat.com> References: <200504132213.j3DMDp4H019946@elgar.sibelius.xs4all.nl> <1113431453.4591.7.camel@localhost.localdomain> <200504132237.j3DMbnCm005343@elgar.sibelius.xs4all.nl> <1113431956.4591.10.camel@localhost.localdomain> <200504132248.j3DMmU9A016212@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504132248.j3DMmU9A016212@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-04/txt/msg00354.txt.bz2 On Thu, Apr 14, 2005 at 12:48:30AM +0200, Mark Kettenis wrote: > n32 is 32-bit pointers and 64-bit registers. 64-bit registers are > required. It's also a heck of a lot faster than n64 :) > > And a bit of a security nightmare if you have a 64-bit kernel... I wouldn't say that. Think of it as merely a 64-bit application that Just So Happens to only use the low 31 bits. The only thing the kernel needs to do is for mmap (0, ...) choose an address in the low 32 bits. For everything else, the application will provide a correct value or its broken and will suffer the consequences. Unlike o32, you don't have to sign or zero-extend syscall arguments at kernel entry points, because the application will have already done that because of how n32 passes 32-bit arguments. But it's not like I'm going to work on it, so feel free to ignore me. r~