🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.netbsd.tech.kern
Article #126

Re: [Milkymist port] virtual memory management

#126
From: David Holland
Date: Thu, 30 May 2013 19:08
21 lines
2504 bytes
On Wed, May 29, 2013 at 07:51:15PM +0200, Yann Sionneau wrote:
 > I am wondering how I can manage virtual memory (especially how to
 > avoid tlb miss, or deal with them) in exception handlers.
 > 
 > At first my idea was to do most of the low level stuff in exception
 > handlers with MMU turned off, I was told it was a very bad idea.
 > LM32 MMU (for now at least) turns itself off upon any CPU
 > exception, therefore I plan on turning it on right away in the
 > exception handler.
 > 
 > This leads to the following scenario I don't know how to deal with:
 > [snip]

hold on, hold on. What's the high-level picture? Does the kernel
normally run with the MMU on or off? What's the intended scheme for
TLB refill? Are the page tables supposed to be mapped in virtual
memory (mips, vax) or placed in physical memory (x86)?

-- 
David A. Holland
dholland@netbsd.org
Technical Details
Message-ID: <fa.6v0cToe1gWEGTaarp1/a5rBATGY@ifi.uio.no>
Path: arc1-ca.pugleaf.net!bp1ni25801pbd.1!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!uio.no!nntp.uio.no!.POSTED!not-for-mail
References: <fa.P+LZ+1jPGPfiK1II+UjtSSikPxk@ifi.uio.no>

Show Full Headers
Complete Article Headers
X-Google-Thread: b7e13b6095,8afd96964b6c90d9,start
X-Google-Attributes: gidb7e13b6095,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.68.108.165 with SMTP id hl5mr1369002pbb.4.1369940915871;
        Thu, 30 May 2013 12:08:35 -0700 (PDT)
Path: arc1-ca.pugleaf.net!bp1ni25801pbd.1!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: David Holland <dholland-tech@netbsd.org>
Newsgroups: fa.netbsd.tech.kern
Subject: Re: [Milkymist port] virtual memory management
Date: Thu, 30 May 2013 19:08:35 UTC
Organization: Internet mailing list
Lines: 21
Sender: tech-kern-owner@NetBSD.org
Message-ID: <fa.6v0cToe1gWEGTaarp1/a5rBATGY@ifi.uio.no>
References: <fa.P+LZ+1jPGPfiK1II+UjtSSikPxk@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1369940915 1247 129.240.7.9 (30 May 2013 19:08:35 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Thu, 30 May 2013 19:08:35 +0000 (UTC)
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: tech-kern@netbsd.org, devel@lists.milkymist.org,
 Radoslaw Kujawa <radoslaw.kujawa@c0ff33.net>
To: Yann Sionneau <yann.sionneau@gmail.com>
Delivered-To: tech-kern@netbsd.org
In-Reply-To: <51A64013.8030603@gmail.com>
List-Id: tech-kern.NetBSD.org
Original-Date: Thu, 30 May 2013 19:08:18 +0000
Original-Message-Id: <20130530190818.GA20702@netbsd.org>
Original-References: <51A64013.8030603@gmail.com>
X-Received-Bytes: 2123
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline