Move alpha_fix_srm_checksum() from subr_diskmbr.c to subr_disklabel.c

This commit is contained in:
Poul-Henning Kamp 2003-01-17 19:37:55 +00:00
parent 40f683a443
commit ffffe9203f
2 changed files with 16 additions and 17 deletions

View File

@ -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

View File

@ -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