Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/conf Define __kernel_end.



details:   https://anonhg.NetBSD.org/src/rev/e792af54716c
branches:  trunk
changeset: 345214:e792af54716c
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri May 13 10:18:01 2016 +0000

description:
Define __kernel_end.

diffstat:

 sys/arch/i386/conf/kern.ldscript |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 97b47eec6a67 -r e792af54716c sys/arch/i386/conf/kern.ldscript
--- a/sys/arch/i386/conf/kern.ldscript  Fri May 13 07:41:47 2016 +0000
+++ b/sys/arch/i386/conf/kern.ldscript  Fri May 13 10:18:01 2016 +0000
@@ -1,11 +1,12 @@
-/*     $NetBSD: kern.ldscript,v 1.17 2016/05/12 06:45:16 maxv Exp $    */
+/*     $NetBSD: kern.ldscript,v 1.18 2016/05/13 10:18:01 maxv Exp $    */
 
 #include "assym.h"
 
+__PAGE_SIZE = 0x1000 ;
+
 ENTRY(_start)
 SECTIONS
 {
-       /* Read-only sections, merged into text segment: */
        .text :
        {
                *(.text)
@@ -45,6 +46,7 @@
                *(.data.read_mostly)
        }
        . = ALIGN(COHERENCY_UNIT);
+
        _edata = . ;
        PROVIDE (edata = .) ;
        __bss_start = . ;
@@ -55,7 +57,12 @@
                *(COMMON)
        . = ALIGN(32 / 8);
        }
-       . = ALIGN(32 / 8);
+
+       . = ALIGN(__PAGE_SIZE);
+
+       /* End of the kernel image */
+       __kernel_end = . ;
+
        _end = . ;
        PROVIDE (end = .) ;
        .note.netbsd.ident :



Home | Main Index | Thread Index | Old Index