NetBSD-Bugs archive

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

Re: port-amd64/38708: lkm_map issues on amd64



The following patch appears to fix the problem, can someone verify my sanity?

Index: machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/amd64/machdep.c,v
retrieving revision 1.93
diff -u -r1.93 machdep.c
--- machdep.c   11 May 2008 14:44:53 -0000      1.93
+++ machdep.c   21 May 2008 01:47:26 -0000
@@ -1493,7 +1493,7 @@
        first_avail = round_page(first_avail);

        kern_end = KERNBASE + first_avail;
-       lkm_start = kern_end;
+       lkm_start = KERNTEXTOFF + first_avail;
        lkm_end = KERNBASE + NKL2_KIMG_ENTRIES * NBPD_L2;

        /*


Home | Main Index | Thread Index | Old Index