search for: sectorbuf

Displaying 2 results from an estimated 2 matches for "sectorbuf".

2007 Feb 12
4
Read disk not working in 3.35+
...s like read disk function which was launched in 3.35 isnt working. Did anyone test this on any hardware? I'm using it thru the com32 interface to read contents of the active partition of a USB boot key (syslinux). I did a sample test like: void scanAndPrint() { com32sys_t regs_in; char *sectorBuf = __com32.cs_bounce; int i; memset(sectorBuf, 0x0, 512); // XXX MARK 1 for (i=0; i< 10; i++) { int j; memset(&regs_in, 0, sizeof regs_in); regs_in.eax.l = 0x0019; regs_in.edx.l = i; // sector number regs_in.ecx.l = 1; // sector count regs_in.es...
2007 Apr 05
0
Patch: Add io.c functions, and vfat library
...ter = libfat_searchdir(fat_fs, 0, "BOOT CFG", NULL); if (bootcfg_cluster <= 0) { error("No boot config file found"); } bootcfg_sector = libfat_clustertosector(fat_fs, bootcfg_cluster) + rFd.partition->start_lba; if (!syslinux_read_disk(&disk_info, sectorbuf, bootcfg_sector, 1)) { printf("boot.cfg: %s\n", sectorbuf); } I will change chain.c to use the library functions, but kinda busy with other stuff at the moment. I'll do it next week hopefully. thanks. -- Ram (patch is attached, not sure if attachments work though!) ------...