search for: lba2ch

Displaying 7 results from an estimated 7 matches for "lba2ch".

Did you mean: lba2chs
2012 Nov 06
50
chain.c32 (and partiter) updates v2
This is a bit updated set of chain.c32 changes that simplifies a few things (and in partiter part), fixes few minor issues and adds a few new features. Details are in the following commits, below is the summary and pull details at the end. Shao - any chance to peek over them ? Most of those are relatively simple changes and well tested, though of course something might have slipped my attention.
2013 Oct 18
0
[RFC/PATCH 1/3] Move partiter from com32/chain to com32/lib/syslinux
...ewhere - * between cs and cs+1; in this particular case, we bump the cs to be able - * to return matching chs triplet - * cmax - assume we can use any cylinder value - * - * by default cadd seems most reasonable, giving consistent results with e.g. - * sfdisk's behavior - */ -void lba2chs(disk_chs *dst, const struct disk_info *di, uint64_t lba, int mode) -{ - uint32_t c, h, s, t; - uint32_t cs, hs, ss; - - /* - * Not much reason here, but if we have no valid CHS geometry, we assume - * "typical" ones to have something to return. - */ - if (di->c...
2015 Jul 22
0
[PULL 1/8] Move partiter from com32/chain to com32/lib/syslinux
...ewhere - * between cs and cs+1; in this particular case, we bump the cs to be able - * to return matching chs triplet - * cmax - assume we can use any cylinder value - * - * by default cadd seems most reasonable, giving consistent results with e.g. - * sfdisk's behavior - */ -void lba2chs(disk_chs *dst, const struct disk_info *di, uint64_t lba, int mode) -{ - uint32_t c, h, s, t; - uint32_t cs, hs, ss; - - /* - * Not much reason here, but if we have no valid CHS geometry, we assume - * "typical" ones to have something to return. - */ - if (di->c...
2015 Jul 22
13
[PULL 0/8] MultiFS suppport for BIOS and EFI
So last week I was wondering if XFS was still working -- even with its last on-disk structure changes -- and it _suprisingly_ worked as expected. Right, now I can finally get rid of GRUB and use Syslinux to boot my Linux on EFI from a rootfs with xfs. Shit, I have two partitions (the first one being the required ESP) so there is no way to access the other partitions since because Syslinux does not
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...2 +- 34 files changed, 368 insertions(+), 184 deletions(-) rename core/include/pxe.h => com32/lib/syslinux/pxe_dns.c (62%) diff --git a/com32/chain/utility.c b/com32/chain/utility.c index fb59551..b54e0cd 100644 --- a/com32/chain/utility.c +++ b/com32/chain/utility.c @@ -94,24 +94,30 @@ void lba2chs(disk_chs *dst, const struct disk_info *di, uint64_t lba, uint32_t m uint32_t get_file_lba(const char *filename) { com32sys_t inregs; - uint32_t lba; + uint32_t lba = 0; + int size = 65536; + char *buf; /* Start with clean registers */ memset(&inregs, 0, sizeof(co...
2012 Jul 16
5
[PATCH 0/5] Deleting __intcall() from Syslinux
From: Matt Fleming <matt.fleming at intel.com> Since we can't use __intcall() for EFI, and since we can now have the ELF module code resolve all our symbols at runtime, we should delete as many references to __intcall() as possible and just access the symbols directly. The most interesting patch is the support for weak symbols. We need to be able to reference derivative-specific
2012 Aug 14
1
[GIT PULL] elflink fixes
...2/chain/utility.c @@ -4,7 +4,9 @@ #include <errno.h> #include <unistd.h> #include <string.h> +#include <fs.h> #include <syslinux/disk.h> +#include <syslinux/pmapi.h> #include "utility.h" static const char *bpbtypes[] = { @@ -93,14 +95,11 @@ void lba2chs(disk_chs *dst, const struct disk_info *di, uint64_t lba, uint32_t m uint32_t get_file_lba(const char *filename) { - com32sys_t inregs; + struct com32_filedata fd; uint32_t lba = 0; int size = 65536; char *buf; - /* Start with clean registers */ - memset(&inregs...