summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-10-16 10:13:09 +0000
committerjkh <jkh@FreeBSD.org>1998-10-16 10:13:09 +0000
commit725fd5a89680632e1c95b28895a0ef37318b209c (patch)
treec02b500a34a4f259f5d10dc1dccf1651634d789d /sys/alpha
parentef590ab720d2b41a7c3412358b42245f48dcf8ae (diff)
downloadFreeBSD-src-725fd5a89680632e1c95b28895a0ef37318b209c.zip
FreeBSD-src-725fd5a89680632e1c95b28895a0ef37318b209c.tar.gz
fixup for the alpha. tag slid forward, since it's benign for the x86.
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/diskslice_machdep.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/alpha/alpha/diskslice_machdep.c b/sys/alpha/alpha/diskslice_machdep.c
index 72b92e3..e58dfd5 100644
--- a/sys/alpha/alpha/diskslice_machdep.c
+++ b/sys/alpha/alpha/diskslice_machdep.c
@@ -36,7 +36,7 @@
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
* from: i386/isa Id: diskslice_machdep.c,v 1.31 1998/08/10 07:22:14 phk Exp
- * $Id: diskslice_machdep.c,v 1.3 1998/08/11 07:17:36 dfr Exp $
+ * $Id: diskslice_machdep.c,v 1.4 1998/10/06 08:38:58 dfr Exp $
*/
#include <sys/param.h>
@@ -459,3 +459,16 @@ done:
bp->b_flags |= B_INVAL | B_AGE;
brelse(bp);
}
+
+void
+alpha_fix_srm_checksum(bp)
+ struct buf *bp;
+{
+ u_int64_t *p = (u_int64_t *) bp->b_data;
+ u_int64_t sum = 0;
+ int i;
+
+ for (i = 0; i < 63; i++)
+ sum += p[i];
+ p[63] = sum;
+}
OpenPOWER on IntegriCloud