Source-Changes archive

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

Re: CVS commit: src/sys/uvm



matt%NetBSD.org@localhost said:
> Modified Files:
>       src/sys/uvm: uvm_km.c uvm_map.c uvm_pmap.h
> Log Message:
> Add PMAP_KMPAGE flag for pmap_kenter_pa.

This breaks for all pmaps which use the protection bits
as index into a prebuilt table.
Here is a possible fix, but rather than patching all
affexted pmaps one could define PMAP_KMPAGE to zero
where it is not used by the pmap.

best regards
Matthias





-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
#
# old_revision [da2a67978cc293304d0e551eda55ab683f2d141f]
#
# patch "sys/arch/x86/x86/pmap.c"
#  from [8dad51d3892b71870615954304361cf26abf6bdd]
#    to [cb4ab20961c89e0a66685a1570501f7c40520902]
#
============================================================
--- sys/arch/x86/x86/pmap.c     8dad51d3892b71870615954304361cf26abf6bdd
+++ sys/arch/x86/x86/pmap.c     cb4ab20961c89e0a66685a1570501f7c40520902
@@ -1020,6 +1020,8 @@ pmap_kenter_pa(vaddr_t va, paddr_t pa, v
 {
        pt_entry_t *pte, opte, npte;
 
+       prot &= VM_PROT_ALL;
+
        if (va < VM_MIN_KERNEL_ADDRESS)
                pte = vtopte(va);
        else


Home | Main Index | Thread Index | Old Index