From ed13c9664b994c0ddb156c715cf792f1b37289b1 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 15 Apr 2005 13:05:15 +0000 Subject: make sure aligment does not return zero block size --- sys/arch/sparc64/dev/ce4231.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/ce4231.c b/sys/arch/sparc64/dev/ce4231.c index 496ad60b954..8e7fc4e32ad 100644 --- a/sys/arch/sparc64/dev/ce4231.c +++ b/sys/arch/sparc64/dev/ce4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ce4231.c,v 1.17 2004/11/09 14:30:34 miod Exp $ */ +/* $OpenBSD: ce4231.c,v 1.18 2005/04/15 13:05:14 mickey Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -668,7 +668,7 @@ ce4231_round_blocksize(addr, blk) void *addr; int blk; { - return (blk & (-4)); + return ((blk + 3) & (-4)); } int -- cgit v1.2.3