[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: user-level drivers

From: Richard Braun
Subject: Re: user-level drivers
Date: Mon, 9 May 2011 13:33:37 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, May 09, 2011 at 01:27:32PM +0200, Thomas Schwinge wrote:
> > I'd suggest using natural_t (or unsigned long) too. But then, it can't
> > be used to address >4 GiB physical memory. Consider expressing physical
> > memory in page frame numbers.
> Good idea!  But: what about differently sized frames (4 KiB/2
> MiB/whatever amd64 allows)?  (In case it'd make sense to support these at
> some point?)  Or is this over-engineering already?

These are virtual frames. And in any case, they are multiple of the base
page size. This interface is suitable for allocating large pages. It
would just require the requested size to be a multiple of the large page
size to indicate large pages are wanted. This "large page" size would be
provided through a new macro sitting next to PAGE_SIZE.

Richard Braun

reply via email to

[Prev in Thread] Current Thread [Next in Thread]