Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys G/C ISSET() macro copies. It has been defined in <sys/t...
details: https://anonhg.NetBSD.org/src/rev/b4b8e5fa1ef9
branches: trunk
changeset: 369876:b4b8e5fa1ef9
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Sep 05 14:14:42 2022 +0000
description:
G/C ISSET() macro copies. It has been defined in <sys/types.h> since 2006.
diffstat:
sys/arch/evbarm/stand/board/epcom.c | 4 +---
sys/arch/evbarm/stand/board/ns16550.c | 4 +---
sys/arch/evbarm/stand/board/sscom.c | 4 +---
sys/arch/hpcmips/stand/lcboot/extern.h | 4 +---
sys/arch/i386/stand/lib/comio_direct.c | 4 +---
sys/compat/linux/arch/i386/linux_ptrace.c | 5 ++---
sys/compat/linux/arch/powerpc/linux_ptrace.c | 5 ++---
7 files changed, 9 insertions(+), 21 deletions(-)
diffs (142 lines):
diff -r de32316eaa8d -r b4b8e5fa1ef9 sys/arch/evbarm/stand/board/epcom.c
--- a/sys/arch/evbarm/stand/board/epcom.c Mon Sep 05 09:18:39 2022 +0000
+++ b/sys/arch/evbarm/stand/board/epcom.c Mon Sep 05 14:14:42 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: epcom.c,v 1.5 2009/10/23 00:39:30 snj Exp $ */
+/* $NetBSD: epcom.c,v 1.6 2022/09/05 14:14:42 tsutsui Exp $ */
/*
* Copyright (c) 2004 Jesse Off
@@ -47,8 +47,6 @@
#define SYSCON_WRITE(x, v) *((volatile uint32_t *) \
(SCADDR + (EP93XX_SYSCON_ ## x))) = (v)
-#define ISSET(t,f) ((t) & (f))
-
void
cons_init(void)
{
diff -r de32316eaa8d -r b4b8e5fa1ef9 sys/arch/evbarm/stand/board/ns16550.c
--- a/sys/arch/evbarm/stand/board/ns16550.c Mon Sep 05 09:18:39 2022 +0000
+++ b/sys/arch/evbarm/stand/board/ns16550.c Mon Sep 05 14:14:42 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ns16550.c,v 1.4 2008/10/30 06:23:13 cliff Exp $ */
+/* $NetBSD: ns16550.c,v 1.5 2022/09/05 14:14:42 tsutsui Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
@@ -54,8 +54,6 @@
#define OUTB(x, v) *((volatile uint8_t *) (CONADDR + (x))) = (v)
#endif
-#define ISSET(t,f) ((t) & (f))
-
#ifndef NS16550_FREQ
#define NS16550_FREQ COM_FREQ
#endif
diff -r de32316eaa8d -r b4b8e5fa1ef9 sys/arch/evbarm/stand/board/sscom.c
--- a/sys/arch/evbarm/stand/board/sscom.c Mon Sep 05 09:18:39 2022 +0000
+++ b/sys/arch/evbarm/stand/board/sscom.c Mon Sep 05 14:14:42 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sscom.c,v 1.6 2013/11/04 21:57:26 christos Exp $ */
+/* $NetBSD: sscom.c,v 1.7 2022/09/05 14:14:42 tsutsui Exp $ */
/*
@@ -93,8 +93,6 @@
#define OUTB(x, v) (*((volatile uint8_t *) ((CONADDR) + (x))) = (v))
#define OUTW(x, v) (*((volatile uint32_t *) ((CONADDR) + (x))) = (v))
-#define ISSET(t,f) ((t) & (f))
-
static long get_com_freq(void);
static int
diff -r de32316eaa8d -r b4b8e5fa1ef9 sys/arch/hpcmips/stand/lcboot/extern.h
--- a/sys/arch/hpcmips/stand/lcboot/extern.h Mon Sep 05 09:18:39 2022 +0000
+++ b/sys/arch/hpcmips/stand/lcboot/extern.h Mon Sep 05 14:14:42 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.4 2005/12/11 12:17:34 christos Exp $ */
+/* $NetBSD: extern.h,v 1.5 2022/09/05 14:14:42 tsutsui Exp $ */
/*
* Copyright (c) 2003 Naoto Shimazaki.
@@ -80,8 +80,6 @@
#define __REG_2(reg) *((volatile u_int16_t*) (reg))
#define __REG_4(reg) *((volatile u_int32_t*) (reg))
-#define ISSET(t, f) ((t) & (f))
-
#define REGWRITE_1(base, off, val) \
(__REG_1(MIPS_PHYS_TO_KSEG1((u_int32_t) (base) + (off))) \
= (val))
diff -r de32316eaa8d -r b4b8e5fa1ef9 sys/arch/i386/stand/lib/comio_direct.c
--- a/sys/arch/i386/stand/lib/comio_direct.c Mon Sep 05 09:18:39 2022 +0000
+++ b/sys/arch/i386/stand/lib/comio_direct.c Mon Sep 05 14:14:42 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: comio_direct.c,v 1.11 2014/01/05 20:49:20 jakllsch Exp $ */
+/* $NetBSD: comio_direct.c,v 1.12 2022/09/05 14:14:42 tsutsui Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995, 1996, 1997
@@ -80,8 +80,6 @@
static int serbuf_write = 0;
static int stopped = 0;
-#define ISSET(t,f) ((t) & (f))
-
#define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */
#define RATE_9600 divrnd((COM_FREQ / 16), 9600)
diff -r de32316eaa8d -r b4b8e5fa1ef9 sys/compat/linux/arch/i386/linux_ptrace.c
--- a/sys/compat/linux/arch/i386/linux_ptrace.c Mon Sep 05 09:18:39 2022 +0000
+++ b/sys/compat/linux/arch/i386/linux_ptrace.c Mon Sep 05 14:14:42 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_ptrace.c,v 1.35 2021/09/07 11:43:04 riastradh Exp $ */
+/* $NetBSD: linux_ptrace.c,v 1.36 2022/09/05 14:14:42 tsutsui Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.35 2021/09/07 11:43:04 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.36 2022/09/05 14:14:42 tsutsui Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -114,7 +114,6 @@
};
#define LUSR_OFF(member) offsetof(struct linux_user, member)
-#define ISSET(t, f) ((t) & (f))
int linux_ptrace_disabled = 1; /* bitrotted */
diff -r de32316eaa8d -r b4b8e5fa1ef9 sys/compat/linux/arch/powerpc/linux_ptrace.c
--- a/sys/compat/linux/arch/powerpc/linux_ptrace.c Mon Sep 05 09:18:39 2022 +0000
+++ b/sys/compat/linux/arch/powerpc/linux_ptrace.c Mon Sep 05 14:14:42 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_ptrace.c,v 1.33 2021/09/07 11:43:04 riastradh Exp $ */
+/* $NetBSD: linux_ptrace.c,v 1.34 2022/09/05 14:14:42 tsutsui Exp $ */
/*-
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.33 2021/09/07 11:43:04 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.34 2022/09/05 14:14:42 tsutsui Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -91,7 +91,6 @@
#define LUSR_OFF(member) offsetof(struct linux_user, member)
#define LUSR_REG_OFF(member) offsetof(struct linux_pt_regs, member)
-#define ISSET(t, f) ((t) & (f))
int linux_ptrace_disabled = 1; /* bitrotted */
Home |
Main Index |
Thread Index |
Old Index