Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/ingenic Type consistency
details: https://anonhg.NetBSD.org/src/rev/05013204fa63
branches: trunk
changeset: 937106:05013204fa63
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Aug 09 07:08:29 2020 +0000
description:
Type consistency
diffstat:
sys/arch/mips/ingenic/ingenic_regs.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2b2d1977fc2d -r 05013204fa63 sys/arch/mips/ingenic/ingenic_regs.h
--- a/sys/arch/mips/ingenic/ingenic_regs.h Sun Aug 09 07:03:06 2020 +0000
+++ b/sys/arch/mips/ingenic/ingenic_regs.h Sun Aug 09 07:08:29 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ingenic_regs.h,v 1.25 2017/05/21 06:49:13 skrll Exp $ */
+/* $NetBSD: ingenic_regs.h,v 1.26 2020/08/09 07:08:29 skrll Exp $ */
/*-
* Copyright (c) 2014 Michael Lorenz
@@ -118,7 +118,7 @@
static inline void
writereg(uint32_t reg, uint32_t val)
{
- *(volatile int32_t *)MIPS_PHYS_TO_KSEG1(reg) = val;
+ *(volatile uint32_t *)MIPS_PHYS_TO_KSEG1(reg) = val;
wbflush();
}
@@ -126,7 +126,7 @@
readreg(uint32_t reg)
{
wbflush();
- return *(volatile int32_t *)MIPS_PHYS_TO_KSEG1(reg);
+ return *(volatile uint32_t *)MIPS_PHYS_TO_KSEG1(reg);
}
Home |
Main Index |
Thread Index |
Old Index