Article View: fa.netbsd.tech.kern
Article #141Re: [Milkymist-devel] [Milkymist port] virtual memory management
From: Martin Husemann
Date: Tue, 04 Jun 2013 07:39
Date: Tue, 04 Jun 2013 07:39
16 lines
2780 bytes
2780 bytes
On Mon, Jun 03, 2013 at 08:34:37PM +0000, Eduardo Horvath wrote: > So your MMU doesn't support multiple address space IDs? That sux. That > means you need to blow away the entire MMU each time you switch processes. > > If you do have ASIDs, I like to reserve one for the kernel. That way you > don't need to share the address space with userland. Let me second this - make the MMU know address space IDs and reserve one (typical choice: 0) for the kernel. Then either provide (priviledged) load/store instructions to access foreign address spaces (providing the other ID in a cpu register), or add a mmu register to load a special address space ID and add load/store-with-that-other-id instructions. Martin
Technical Details
Message-ID:
<fa.HNfnIaB1GNzCffoS8Zmh17v9mNM@ifi.uio.no>Path:
arc1-ca.pugleaf.net!bp1ni3pbd.1!nntp.google.com!npeer02.iad.highwinds-media.com!feed-me.highwinds-media.com!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mailReferences:
<fa.P+LZ+1jPGPfiK1II+UjtSSikPxk@ifi.uio.no> <fa.a/Nr8kFgmeefrHl8CNZayzk+Fkk@ifi.uio.no> <fa.QqmOHe+XhnQId6rhouHmwoFi5Es@ifi.uio.no> <fa.xFi646Yivr/iujxTfhG3+Bpb1K4@ifi.uio.no>Show Full Headers
Complete Article Headers
X-Google-Thread: b7e13b6095,8afd96964b6c90d9
X-Google-Attributes: gidb7e13b6095,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.68.246.229 with SMTP id xz5mr4067638pbc.1.1370331593799;
Tue, 04 Jun 2013 00:39:53 -0700 (PDT)
Path: arc1-ca.pugleaf.net!bp1ni3pbd.1!nntp.google.com!npeer02.iad.highwinds-media.com!feed-me.highwinds-media.com!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Martin Husemann <martin@duskware.de>
Newsgroups: fa.netbsd.tech.kern
Subject: Re: [Milkymist-devel] [Milkymist port] virtual memory management
Date: Tue, 04 Jun 2013 07:39:53 UTC
Organization: Internet mailing list
Lines: 16
Sender: tech-kern-owner@NetBSD.org
Message-ID: <fa.HNfnIaB1GNzCffoS8Zmh17v9mNM@ifi.uio.no>
References: <fa.P+LZ+1jPGPfiK1II+UjtSSikPxk@ifi.uio.no> <fa.a/Nr8kFgmeefrHl8CNZayzk+Fkk@ifi.uio.no> <fa.QqmOHe+XhnQId6rhouHmwoFi5Es@ifi.uio.no> <fa.xFi646Yivr/iujxTfhG3+Bpb1K4@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1370331593 32235 129.240.7.9 (4 Jun 2013 07:39:53 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Tue, 4 Jun 2013 07:39:53 +0000 (UTC)
User-Agent: Mutt/1.4.2.3i
Cc: Milkymist developers' list <devel@lists.milkymist.org>,
Radoslaw Kujawa <radoslaw.kujawa@c0ff33.net>, tech-kern@netbsd.org
To: Yann Sionneau <yann.sionneau@gmail.com>
Delivered-To: tech-kern@netbsd.org
X-Virus-Scanned: amavisd-new at NetBSD.org
In-Reply-To: <Pine.NEB.4.64.1306032022480.9828@mail.netbsd.org>
List-Id: tech-kern.NetBSD.org
Original-Date: Tue, 4 Jun 2013 09:39:41 +0200
Original-Message-Id: <20130604073941.GB5393@mail.duskware.de>
Original-References: <51A64013.8030603@gmail.com> <Pine.NEB.4.64.1305302015370.9828@mail.netbsd.org> <51ACF862.9060607@gmail.com> <Pine.NEB.4.64.1306032022480.9828@mail.netbsd.org>
X-Received-Bytes: 2410
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline