Source-Changes-HG archive

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

[src/trunk]: src/sys/arch The preloaded modules are now reallocated dynamical...



details:   https://anonhg.NetBSD.org/src/rev/1fc204427f4f
branches:  trunk
changeset: 346343:1fc204427f4f
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Jul 08 09:15:38 2016 +0000

description:
The preloaded modules are now reallocated dynamically by the kernel. This
area does not need to be executable anymore.

diffstat:

 sys/arch/amd64/amd64/locore.S |  6 +++---
 sys/arch/i386/i386/locore.S   |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (59 lines):

diff -r 4bd041a2be79 -r 1fc204427f4f sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S     Fri Jul 08 08:55:48 2016 +0000
+++ b/sys/arch/amd64/amd64/locore.S     Fri Jul 08 09:15:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.104 2016/07/04 07:56:07 maxv Exp $        */
+/*     $NetBSD: locore.S,v 1.105 2016/07/08 09:15:38 maxv Exp $        */
 
 /*
  * Copyright-o-rama!
@@ -703,13 +703,13 @@
        orl     $(PG_V|PG_KW),%eax
        fillkpt_nox
 
-       /* Map [SYMS]+[PRELOADED MODULES] RWX. */
+       /* Map [SYMS]+[PRELOADED MODULES] RW. */
        movl    $RELOC(__kernel_end),%eax
        movl    %esi,%ecx               /* start of BOOTSTRAP TABLES */
        subl    %eax,%ecx
        shrl    $PGSHIFT,%ecx
        orl     $(PG_V|PG_KW),%eax
-       fillkpt
+       fillkpt_nox
 
        /* Map the BOOTSTRAP TABLES RW. */
        movl    %esi,%eax               /* start of BOOTSTRAP TABLES */
diff -r 4bd041a2be79 -r 1fc204427f4f sys/arch/i386/i386/locore.S
--- a/sys/arch/i386/i386/locore.S       Fri Jul 08 08:55:48 2016 +0000
+++ b/sys/arch/i386/i386/locore.S       Fri Jul 08 09:15:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.133 2016/07/04 07:56:07 maxv Exp $        */
+/*     $NetBSD: locore.S,v 1.134 2016/07/08 09:15:38 maxv Exp $        */
 
 /*
  * Copyright-o-rama!
@@ -128,7 +128,7 @@
  */
 
 #include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.133 2016/07/04 07:56:07 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.134 2016/07/08 09:15:38 maxv Exp $");
 
 #include "opt_compat_oldboot.h"
 #include "opt_copy_symtab.h"
@@ -738,13 +738,13 @@
        orl     $(PG_V|PG_KW),%eax
        fillkpt_nox
 
-       /* Map [SYMS]+[PRELOADED MODULES] RWX. */
+       /* Map [SYMS]+[PRELOADED MODULES] RW. */
        movl    $RELOC(__kernel_end),%eax
        movl    %esi,%ecx               /* start of BOOTSTRAP TABLES */
        subl    %eax,%ecx
        shrl    $PGSHIFT,%ecx
        orl     $(PG_V|PG_KW),%eax
-       fillkpt
+       fillkpt_nox
 
        /* Map the BOOTSTRAP TABLES RW. */
        movl    %esi,%eax               /* start of BOOTSTRAP TABLES */



Home | Main Index | Thread Index | Old Index