git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update readme for more up-to-date information
[lunaix-os.git]
/
lunaix-os
/
kernel
/
block
/
blkpart_gpt.c
diff --git
a/lunaix-os/kernel/block/blkpart_gpt.c
b/lunaix-os/kernel/block/blkpart_gpt.c
index 85c87e7e51e5a973d99fb08d60587e0c6f2eac12..0bc977df9ea901f4801ca66cd120a9f6e3665a8a 100644
(file)
--- a/
lunaix-os/kernel/block/blkpart_gpt.c
+++ b/
lunaix-os/kernel/block/blkpart_gpt.c
@@
-46,7
+46,8
@@
blkpart_parse(struct device* master, struct gpt_header* header)
}
// Convert UEFI's 512B LB representation into local LBA range.
}
// Convert UEFI's 512B LB representation into local LBA range.
- u64_t slba_local = (ent->start_lba * GPT_BLKSIZE) / bdev->blk_size;
+ u64_t slba_local =
+ (ent->start_lba * GPT_BLKSIZE) / (u64_t)bdev->blk_size;
u64_t elba_local = (ent->end_lba * GPT_BLKSIZE) / (u64_t)bdev->blk_size;
kprintf("%s: guid part#%d: %d..%d\n",
u64_t elba_local = (ent->end_lba * GPT_BLKSIZE) / (u64_t)bdev->blk_size;
kprintf("%s: guid part#%d: %d..%d\n",