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 Parentheses police.
details: https://anonhg.NetBSD.org/src/rev/1fbc9ace7c87
branches: trunk
changeset: 372289:1fbc9ace7c87
user: simonb <simonb%NetBSD.org@localhost>
date: Tue Nov 08 13:47:09 2022 +0000
description:
Parentheses police.
diffstat:
sys/arch/riscv/include/sysreg.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 17f03009a427 -r 1fbc9ace7c87 sys/arch/riscv/include/sysreg.h
--- a/sys/arch/riscv/include/sysreg.h Tue Nov 08 13:35:32 2022 +0000
+++ b/sys/arch/riscv/include/sysreg.h Tue Nov 08 13:47:09 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysreg.h,v 1.20 2022/11/08 13:35:32 simonb Exp $ */
+/* $NetBSD: sysreg.h,v 1.21 2022/11/08 13:47:09 simonb Exp $ */
/*
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -210,8 +210,8 @@
}
// Cause register
-#define CAUSE_INTERRUPT_P(cause) ((cause) & __BIT(XLEN-1)))
-#define CAUSE_CODE(cause) ((cause) & __BITS((XLEN-2), 0))
+#define CAUSE_INTERRUPT_P(cause) ((cause) & __BIT(XLEN-1))
+#define CAUSE_CODE(cause) ((cause) & __BITS(XLEN-2, 0))
// Cause register - exceptions
#define CAUSE_FETCH_MISALIGNED 0
Home |
Main Index |
Thread Index |
Old Index