diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-04-15 13:05:15 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-04-15 13:05:15 +0000 |
commit | ed13c9664b994c0ddb156c715cf792f1b37289b1 (patch) | |
tree | f81d31a3cbff5f5f2034801acc087230736ec159 /sys/arch/sparc | |
parent | bee6b17d20ce07473a4628b85fef532562745a0d (diff) |
make sure aligment does not return zero block size
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/cs4231.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/cs4231.c b/sys/arch/sparc/dev/cs4231.c index 8abb7e7aa9d..febf89afa67 100644 --- a/sys/arch/sparc/dev/cs4231.c +++ b/sys/arch/sparc/dev/cs4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231.c,v 1.21 2004/09/29 07:35:11 miod Exp $ */ +/* $OpenBSD: cs4231.c,v 1.22 2005/04/15 13:05:14 mickey Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -753,7 +753,7 @@ cs4231_round_blocksize(addr, blk) void *addr; int blk; { - return (blk & (-4)); + return ((blk + 3) & (-4)); } int |