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 don't use x8 (caller-saved register...



details:   https://anonhg.NetBSD.org/src/rev/5411ffff6f69
branches:  trunk
changeset: 972494:5411ffff6f69
user:      ryo <ryo%NetBSD.org@localhost>
date:      Wed May 27 19:49:37 2020 +0000

description:
don't use x8 (caller-saved register) across functions

fix llvm+EARLYCONS kernel doesn't boot. it was working luckily with gcc.

diffstat:

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

diffs (30 lines):

diff -r aa91c07572a5 -r 5411ffff6f69 sys/arch/aarch64/aarch64/locore.S
--- a/sys/arch/aarch64/aarch64/locore.S Wed May 27 19:40:29 2020 +0000
+++ b/sys/arch/aarch64/aarch64/locore.S Wed May 27 19:49:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.62 2020/05/26 09:16:33 ryo Exp $  */
+/*     $NetBSD: locore.S,v 1.63 2020/05/27 19:49:37 ryo 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.62 2020/05/26 09:16:33 ryo Exp $")
+RCSID("$NetBSD: locore.S,v 1.63 2020/05/27 19:49:37 ryo Exp $")
 
 #ifdef AARCH64_DEVICE_MEM_STRONGLY_ORDERED
 #define        MAIR_DEVICE_MEM         MAIR_DEVICE_nGnRnE
@@ -845,10 +845,10 @@
        cbnz    x0, init_mmutable_error
 
 #ifdef FDT
+       VPRINT("Creating VA=PA tables for FDT\n")
        adrl    x8, _C_LABEL(fdt_addr_r)
        ldr     x8, [x8]
 
-       VPRINT("Creating VA=PA tables for FDT\n")
        mov     x7, x26                         /* pr func */
        adr     x6, bootpage_alloc              /* allocator */
        mov     x5, xzr                         /* flags = 0 */



Home | Main Index | Thread Index | Old Index