Subject: Re: pmap(9) tweak
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Gregory McGarry <g.mcgarry@ieee.org>
List: tech-kern
Date: 08/10/2002 18:52:19
Jason R Thorpe wrote:

> I'd like to specify that exec mappings are not allowed to be entered
> via pmap_kenter_pa() (at least, not by machine-independent code).  I'm
> pretty sure no MI code does this as it stands.

Except for uvm_km_kmemalloc() and debug_malloc().  Doesn't look
like a requirement though.
 
> Attached is text for the pmap(9) manual page.  Comments?

I think wiz will have something to say about your sentence construction.

> Index: pmap.9
> ===================================================================
> RCS file: /cvsroot/sharesrc/share/man/man9/pmap.9,v
> retrieving revision 1.14
> diff -c -r1.14 pmap.9
> *** pmap.9	2002/04/01 17:30:02	1.14
> --- pmap.9	2002/08/09 22:58:05
> ***************
> *** 288,295 ****
>   (for example, the kernel memory allocator), or to enter mappings for
>   physical addresses which are not managed by the virtual memory system.
>   .Dq Unmanaged
> ! mappings may only be entered into the kernel's virtual address space.
> ! This constraint is placed on the callers of the
>   .Fn pmap_kenter_pa
>   and
>   .Fn pmap_kremove
> --- 288,298 ----
>   (for example, the kernel memory allocator), or to enter mappings for
>   physical addresses which are not managed by the virtual memory system.
>   .Dq Unmanaged
> ! mappings may only be entered into the kernel's virtual address space.  In
> ! addition, no mappings should be entered by machine-independent code with
> ! executable permission should be entered via
> ! .Fn pmap_kenter_pa .
> ! These constraints are placed on the callers of the
>   .Fn pmap_kenter_pa
>   and
>   .Fn pmap_kremove

	-- Gregory McGarry <g.mcgarry@ieee.org>