Hi,

Jose Luis Alarcon Sanchez, le Tue 03 Jul 2007 13:18:37 +0200, a écrit :
> Without CR0_NW the XWindow boots too, with nv driver and DDC enabled.

Could you try with the attached patch instead of my previous patch?

Note: this patch is what Linux always does.

Samuel
Index: i386/intel/pmap.c
===================================================================
RCS file: /cvsroot/hurd/gnumach/i386/intel/pmap.c,v
retrieving revision 1.4.2.17
diff -u -p -r1.4.2.17 pmap.c
--- i386/intel/pmap.c   30 Apr 2007 20:30:11 -0000      1.4.2.17
+++ i386/intel/pmap.c   3 Jul 2007 21:15:36 -0000
@@ -1506,6 +1506,9 @@ Retry:
                template |= INTEL_PTE_USER;
            if (prot & VM_PROT_WRITE)
                template |= INTEL_PTE_WRITE;
+           if (machine_slot[cpu_number()].cpu_type >= CPU_TYPE_I486
+               && pa >= phys_last_addr)
+               template |= INTEL_PTE_NCACHE|INTEL_PTE_WTHRU;
            if (wired)
                template |= INTEL_PTE_WIRED;
            PMAP_UPDATE_TLBS(pmap, v, v + PAGE_SIZE);
@@ -1615,6 +1618,9 @@ Retry:
                template |= INTEL_PTE_USER;
            if (prot & VM_PROT_WRITE)
                template |= INTEL_PTE_WRITE;
+           if (machine_slot[cpu_number()].cpu_type >= CPU_TYPE_I486
+               && pa >= phys_last_addr)
+               template |= INTEL_PTE_NCACHE|INTEL_PTE_WTHRU;
            if (wired)
                template |= INTEL_PTE_WIRED;
            i = ptes_per_vm_page;
_______________________________________________
Bug-hurd mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to