The checksum should be inverted.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33536 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2009-10-11 20:48:43 +00:00
parent dc33329747
commit 30580df348

View File

@ -33,6 +33,7 @@ int main(int argc, char **argv)
if (sum < old)
sum++;
}
sum = ~sum;
fprintf(stderr, "checksum: %lu\n", sum);
// big endian
((uint32_t *)bootblock)[1] = htonl(sum);