Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 Pass the VA of start (and not VM_MI...



details:   https://anonhg.NetBSD.org/src/rev/62f57a63f8b6
branches:  trunk
changeset: 842606:62f57a63f8b6
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jul 15 11:27:19 2019 +0000

description:
Pass the VA of start (and not VM_MIN_KERNEL_ADDRESS) when mapping the
kernel at its KVA address.  Previously the last 64 bytes of the .bss might
not be mapped if _end was within 64 bytes of a L2_SIZE boundary

diffstat:

 sys/arch/aarch64/aarch64/locore.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e112f153320d -r 62f57a63f8b6 sys/arch/aarch64/aarch64/locore.S
--- a/sys/arch/aarch64/aarch64/locore.S Mon Jul 15 08:44:33 2019 +0000
+++ b/sys/arch/aarch64/aarch64/locore.S Mon Jul 15 11:27:19 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.35 2019/07/11 10:53:39 skrll Exp $        */
+/*     $NetBSD: locore.S,v 1.36 2019/07/15 11:27:19 skrll Exp $        */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -38,7 +38,7 @@
 #include <aarch64/hypervisor.h>
 #include "assym.h"
 
-RCSID("$NetBSD: locore.S,v 1.35 2019/07/11 10:53:39 skrll Exp $")
+RCSID("$NetBSD: locore.S,v 1.36 2019/07/15 11:27:19 skrll Exp $")
 
 
 /*#define DEBUG_LOCORE                 /* debug print */
@@ -829,7 +829,7 @@
        adr     x1, start                       /* va = start */
        ADDR    x2, _end
        sub     x2, x2, x1                      /* size = _end - start */
-       mov     x0, #VM_MIN_KERNEL_ADDRESS      /* va */
+       ldr     x0, =start
        bl      pmapboot_enter
        cbnz    x0, init_mmutable_error
 



Home | Main Index | Thread Index | Old Index