This commit is contained in:
刘可亮
2024-01-27 08:47:24 +08:00
parent d3bd993b5f
commit 9f7ba67007
2345 changed files with 74421 additions and 76616 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -33,7 +33,7 @@ static struct aic_partition *aic_part_parse(char *parts, u32 start)
part->size = 0;
p++;
} else {
part->size = strtoul(p, &p, 0);
part->size = strtoull(p, &p, 0);
if ((*p == 'k') || (*p == 'K')) {
part->size *= 1024;
p++;
@@ -48,7 +48,7 @@ static struct aic_partition *aic_part_parse(char *parts, u32 start)
if (*p == '@') {
p++;
/* Don't care offset here, just skip it */
part->start = strtoul(p, &p, 0);
part->start = strtoull(p, &p, 0);
}
if (*p != '(') {
printf("%s: Partition name should be next of size.\n", __FUNCTION__);
@@ -104,14 +104,6 @@ struct aic_partition *aic_part_gpt_parse(char *parts)
p = parts;
while ((*p != '\0') && (*p != ':'))
p++;
if (*p != ':') {
printf("%s: parts is invalid: %s\n", __FUNCTION__, parts);
return NULL;
}
p++;
return aic_part_parse(p, 0x4400);
}