Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/riscv Fix register usage



details:   https://anonhg.NetBSD.org/src/rev/7046805a142b
branches:  trunk
changeset: 956829:7046805a142b
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Nov 08 10:08:28 2020 +0000

description:
Fix register usage

diffstat:

 sys/arch/riscv/riscv/locore.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c8eee4b27eaf -r 7046805a142b sys/arch/riscv/riscv/locore.S
--- a/sys/arch/riscv/riscv/locore.S     Sun Nov 08 09:48:52 2020 +0000
+++ b/sys/arch/riscv/riscv/locore.S     Sun Nov 08 10:08:28 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.19 2020/11/08 08:12:17 skrll Exp $ */
+/* $NetBSD: locore.S,v 1.20 2020/11/08 10:08:28 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
 
        add     s1, s1, s10             // PAGE_SIZE
        addi    s1, s1, -1              //   -1 == PAGE_MASK
-       neg     a1, a0                  // -PAGE_SIZE
+       neg     a1, s10                 // -PAGE_SIZE
        and     s1, s1, a1              // s1 is page aligned end of kernel
                                        // s1 = uarea
        add     s2, s1, s9              // s2 = first PDE page



Home | Main Index | Thread Index | Old Index