mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Move alpha_fix_srm_checksum() from subr_diskmbr.c to subr_disklabel.c
This commit is contained in:
parent
40f683a443
commit
ffffe9203f
2 changed files with 16 additions and 17 deletions
|
|
@ -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…
Reference in a new issue