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: round-up `alignment' ...
details: https://anonhg.NetBSD.org/src/rev/b51931c8f9b5
branches: trunk
changeset: 485987:b51931c8f9b5
user: pk <pk%NetBSD.org@localhost>
date: Wed May 10 14:27:51 2000 +0000
description:
bus_dmamem_alloc: round-up `alignment' to a be a multiple of the page size.
diffstat:
sys/arch/sparc/sparc/machdep.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r b5359c4bdf50 -r b51931c8f9b5 sys/arch/sparc/sparc/machdep.c
--- a/sys/arch/sparc/sparc/machdep.c Wed May 10 14:25:43 2000 +0000
+++ b/sys/arch/sparc/sparc/machdep.c Wed May 10 14:27:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.162 2000/05/10 11:17:50 pk Exp $ */
+/* $NetBSD: machdep.c,v 1.163 2000/05/10 14:27:51 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 = alignment;
+ segs[0]._ds_alignment = round_page(alignment);
segs[0]._ds_boundary = boundary;
*rsegs = 1;
return (0);
Home |
Main Index |
Thread Index |
Old Index