summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-16 21:54:33 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-16 21:54:33 +0000
commit72f98a4d2b3f7334a19ec9b642d25c0d9777e2b5 (patch)
tree697df020bd095de215ed5c3d628675895751e459 /sys/arch
parentab38c9213f5970eafddade392e3a63e7a1a44ef2 (diff)
round -- not truncate the buffer size
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/gsc/harmony.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/gsc/harmony.c b/sys/arch/hppa/gsc/harmony.c
index 6a294c6b50a..2f32b08798c 100644
--- a/sys/arch/hppa/gsc/harmony.c
+++ b/sys/arch/hppa/gsc/harmony.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: harmony.c,v 1.23 2004/02/13 21:28:19 mickey Exp $ */
+/* $OpenBSD: harmony.c,v 1.24 2005/04/16 21:54:32 mickey Exp $ */
/*
* Copyright (c) 2003 Jason L. Wright (jason@thought.net)
@@ -1012,7 +1012,7 @@ harmony_freem(void *vsc, void *ptr, int pool)
size_t
harmony_round_buffersize(void *vsc, int direction, size_t size)
{
- return (size & (size_t)(-HARMONY_BUFSIZE));
+ return ((size + HARMONY_BUFSIZE - 1) & (size_t)(-HARMONY_BUFSIZE));
}
int