Article View: fa.netbsd.tech.kern
Article #120equivalent of MAP_32BIT
From: Justin Cormack
Date: Sun, 26 May 2013 15:11
Date: Sun, 26 May 2013 15:11
11 lines
3169 bytes
3169 bytes
I have been informed that there might be an undocumented ability to get mmap to return addresses in the lower 4G of address space on a 64 bit machine by passing ~(unsigned)0 as the first parameter (or (1<<31)-1 for 2GB). Is this correct? Or is it possibley to use netbsd32_mmap()? Linux and some other OSs support a MAP_32BIT flag to achieve this, looking for a way to port some code to NetBSD that requires this. Thanks Justin
Technical Details
Message-ID:
<fa.Sxbi1y2U7NfWhxooWVNWVMH9cDU@ifi.uio.no>Path:
arc1-ca.pugleaf.net!d5ni15167pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: b7e13b6095,dcb504ca0aebd161,start
X-Google-Attributes: gidb7e13b6095,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.66.251.163 with SMTP id zl3mr3000620pac.39.1369581074889;
Sun, 26 May 2013 08:11:14 -0700 (PDT)
Path: arc1-ca.pugleaf.net!d5ni15167pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Justin Cormack <justin@specialbusservice.com>
Newsgroups: fa.netbsd.tech.kern
Subject: equivalent of MAP_32BIT
Date: Sun, 26 May 2013 15:11:14 UTC
Organization: Internet mailing list
Lines: 11
Sender: tech-kern-owner@NetBSD.org
Message-ID: <fa.Sxbi1y2U7NfWhxooWVNWVMH9cDU@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1369581074 2267 129.240.7.9 (26 May 2013 15:11:14 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Sun, 26 May 2013 15:11:14 +0000 (UTC)
To: tech-kern@netbsd.org
Delivered-To: tech-kern@netbsd.org
X-Virus-Scanned: amavisd-new at NetBSD.org
Authentication-Results: mail.NetBSD.org (amavisd-new);
dkim=pass (1024-bit key) header.d=specialbusservice.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=specialbusservice.com; s=google;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=BfUF+iC9A1nDrzS1yTyqh7KqEGvuaYAlkALfh4AJEl0=;
b=X94PzgYwM6sARrzaR2GIf4ggfehlEnMjFcnl8Ie5xTMF7mkr9FvbJE0cnDoiLoG3uM
26wWgpedPVXt/9r/ZlAXmjXTurI6YmBT7KNRjgq6D9Nyu0WTt+GSHIhABKmcJfC6vwW9
2nptuGk9chiRhyPs16PMDF1/jnurAk+Vyo1YU=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type
:x-gm-message-state;
bh=BfUF+iC9A1nDrzS1yTyqh7KqEGvuaYAlkALfh4AJEl0=;
b=MVrbPSaNuOFDHbvQ128hepWKVj91DM/JOpOCAZQPYwXF1ds/1WMloX4jfcjiND4tTd
1SdyxxHUUQORtj7b6Gj8tANMwhHvJGwX2HBU727WyJTODRmsLGAsq0FuazyI8ro1EPeY
QNlKDU4MxLh1O6JUCq5QdWsswRychaobzuPbZX9Bn/5LHBwKzWV3aoJKU9xeD3DmryIB
XZd2VfYUnduY1dP/FaRH2YlhK1xPHo1W5yyNQa4PA+r2tU3fg0i4mi7ZjO6U2a7LihaG
OO8sFFpcWAcfZfAUG+Wn8rlGJlIJJ1zqGJKvA1kIjlhgUHj8N1AWVu/n9YJEH5Nbhd3P
0ULQ==
X-Received: by 10.66.80.40 with SMTP id o8mr25678571pax.214.1369579315474;
Sun, 26 May 2013 07:41:55 -0700 (PDT)
X-Gm-Message-State: ALoCoQm+sVX6zvyRGhbKrEweephbjJs+f6llN9ih0kO0tFmDbWyiv9VswnYstM+9BZ8JDaDLxTDr
List-Id: tech-kern.NetBSD.org
Original-Date: Sun, 26 May 2013 15:41:55 +0100
Original-Message-Id: <CAK4o1Wx7PhTzpDBSCpidbLzbH_uGywPq6J8vX+fXpocS=kuX_A@mail.gmail.com>
Bytes: 2872
Content-Type: text/plain; charset=UTF-8