fix autoconf, move code to isa.c, remove debugging, drop redundant tlbflushes, macros...
[unix-history] / usr / src / sys / i386 / i386 / mem.c
index f3e69cd..82a33cb 100644 (file)
@@ -7,7 +7,7 @@
  *
  * %sccs.include.noredist.c%
  *
  *
  * %sccs.include.noredist.c%
  *
- *     @(#)mem.c       5.3 (Berkeley) %G%
+ *     @(#)mem.c       5.4 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -71,7 +71,7 @@ mmrw(dev, uio, rw)
                                goto fault;
                        *(int *)mmap = ctob(v) | PG_V |
                                (rw == UIO_READ ? PG_KR : PG_KW);
                                goto fault;
                        *(int *)mmap = ctob(v) | PG_V |
                                (rw == UIO_READ ? PG_KR : PG_KW);
-                       load_cr3(_cr3());
+                       tlbflush();
                        o = (int)uio->uio_offset & PGOFSET;
                        c = (u_int)(NBPG - ((int)iov->iov_base & PGOFSET));
                        c = MIN(c, (u_int)(NBPG - o));
                        o = (int)uio->uio_offset & PGOFSET;
                        c = (u_int)(NBPG - ((int)iov->iov_base & PGOFSET));
                        c = MIN(c, (u_int)(NBPG - o));