Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/include Remove unnecessary cast.



details:   https://anonhg.NetBSD.org/src/rev/2d78f01274d1
branches:  trunk
changeset: 369956:2d78f01274d1
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Sep 10 09:28:26 2022 +0000

description:
Remove unnecessary cast.

diffstat:

 sys/arch/riscv/include/sysreg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6d60133320d9 -r 2d78f01274d1 sys/arch/riscv/include/sysreg.h
--- a/sys/arch/riscv/include/sysreg.h   Sat Sep 10 07:30:41 2022 +0000
+++ b/sys/arch/riscv/include/sysreg.h   Sat Sep 10 09:28:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysreg.h,v 1.13 2021/05/01 07:09:55 skrll Exp $ */
+/* $NetBSD: sysreg.h,v 1.14 2022/09/10 09:28:26 skrll Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -292,7 +292,7 @@
        uintptr_t satp;
        __asm __volatile("csrr  %0, satp" : "=r" (satp));
        satp &= ~SATP_ASID;
-       satp |= __SHIFTIN((uintptr_t)asid, SATP_ASID);
+       satp |= __SHIFTIN(asid, SATP_ASID);
        __asm __volatile("csrw  satp, %0" :: "r" (satp));
 }
 



Home | Main Index | Thread Index | Old Index