Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc bus_dmamem_alloc: ensure alignment is a...
details: https://anonhg.NetBSD.org/src/rev/40777b9f958b
branches: trunk
changeset: 486305:40777b9f958b
user: pk <pk%NetBSD.org@localhost>
date: Thu May 18 10:10:55 2000 +0000
description:
bus_dmamem_alloc: ensure alignment is always at least the page size.
diffstat:
sys/arch/sparc/sparc/machdep.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 3296ddd99f5f -r 40777b9f958b sys/arch/sparc/sparc/machdep.c
--- a/sys/arch/sparc/sparc/machdep.c Thu May 18 09:54:59 2000 +0000
+++ b/sys/arch/sparc/sparc/machdep.c Thu May 18 10:10:55 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.163 2000/05/10 14:27:51 pk Exp $ */
+/* $NetBSD: machdep.c,v 1.164 2000/05/18 10:10:55 pk Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -1222,7 +1222,7 @@
segs[0].ds_addr = 0;
segs[0].ds_len = 0;
segs[0]._ds_va = 0;
- segs[0]._ds_alignment = round_page(alignment);
+ segs[0]._ds_alignment = (alignment == 0) ? NBPG : round_page(alignment);
segs[0]._ds_boundary = boundary;
*rsegs = 1;
return (0);
Home |
Main Index |
Thread Index |
Old Index