diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c index 9318ffadee7d..6f087222e027 100644 --- a/sys/kern/subr_disklabel.c +++ b/sys/kern/subr_disklabel.c @@ -281,3 +281,19 @@ bad: return(-1); } +#ifdef __alpha__ +void +alpha_fix_srm_checksum(bp) + struct buf *bp; +{ + u_int64_t *p; + u_int64_t sum; + int i; + + p = (u_int64_t *) bp->b_data; + sum = 0; + for (i = 0; i < 63; i++) + sum += p[i]; + p[63] = sum; +} +#endif diff --git a/sys/kern/subr_diskmbr.c b/sys/kern/subr_diskmbr.c index 7561c801afc6..d8dc817a7081 100644 --- a/sys/kern/subr_diskmbr.c +++ b/sys/kern/subr_diskmbr.c @@ -525,20 +525,3 @@ mbr_setslice(sname, lp, sp, dp, br_offset) #endif return (0); } - -#ifdef __alpha__ -void -alpha_fix_srm_checksum(bp) - struct buf *bp; -{ - u_int64_t *p; - u_int64_t sum; - int i; - - p = (u_int64_t *) bp->b_data; - sum = 0; - for (i = 0; i < 63; i++) - sum += p[i]; - p[63] = sum; -} -#endif