Move alpha_fix_srm_checksum() from subr_diskmbr.c to subr_disklabel.c
This commit is contained in:
parent
40f683a443
commit
ffffe9203f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user