Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/atari Use proper TAILQ(3) macro as other bus_...
details: https://anonhg.NetBSD.org/src/rev/1323adae4308
branches: trunk
changeset: 368300:1323adae4308
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Jul 03 16:40:29 2022 +0000
description:
Use proper TAILQ(3) macro as other bus_dma(9) implementation.
No binary change.
diffstat:
sys/arch/atari/atari/bus.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r b5a2b26156ba -r 1323adae4308 sys/arch/atari/atari/bus.c
--- a/sys/arch/atari/atari/bus.c Sun Jul 03 16:33:31 2022 +0000
+++ b/sys/arch/atari/atari/bus.c Sun Jul 03 16:40:29 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.c,v 1.64 2022/07/03 16:33:31 tsutsui Exp $ */
+/* $NetBSD: bus.c,v 1.65 2022/07/03 16:40:29 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#include "opt_m68k_arch.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.64 2022/07/03 16:33:31 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.65 2022/07/03 16:40:29 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1058,14 +1058,14 @@
* Compute the location, size, and number of segments actually
* returned by the VM code.
*/
- m = mlist.tqh_first;
+ m = TAILQ_FIRST(&mlist);
curseg = 0;
lastaddr = VM_PAGE_TO_PHYS(m);
segs[curseg].ds_addr = lastaddr + offset;
segs[curseg].ds_len = PAGE_SIZE;
- m = m->pageq.queue.tqe_next;
+ m = TAILQ_NEXT(m, pageq.queue);
- for (; m != NULL; m = m->pageq.queue.tqe_next) {
+ for (; m != NULL; m = TAILQ_NEXT(m, pageq.queue)) {
curaddr = VM_PAGE_TO_PHYS(m);
#ifdef DIAGNOSTIC
if (curaddr < low || curaddr >= high) {
Home |
Main Index |
Thread Index |
Old Index