search for: disk_write_sector

Displaying 9 results from an estimated 9 matches for "disk_write_sector".

Did you mean: disk_write_sectors
2013 Sep 17
1
[PATCH 2/4 v3] com32/disk: Code cleanup at disk_write_sectors and disk_read_sectors.
...if (disk_int13_retry(&inreg, NULL)) goto out; @@ -233,7 +276,6 @@ void *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, if (data) memcpy(data, buf, count * diskinfo->bps); out: - lfree(dapa); lfree(buf); return data; } @@ -254,7 +296,6 @@ int disk_write_sectors(const struct disk_info *const diskinfo, uint64_t lba, const void *data, uint8_t count) { com32sys_t inreg; - struct disk_ebios_dapa *dapa; void *buf; uint32_t maxcnt; uint32_t size = 65536; @@ -264,57 +305,23 @@ int disk_write_sectors(const struct disk_info *const...
2013 Sep 06
1
[PATCH 2/2] com32/disk: Improve flow at disk_write_sectors and disk_read_sectors.
This patch will improve the flow at disk_write_sectors and disk_read_sectors significantly, but it *will* introduce bugs if either of the above functions gets called before disk_get_params. --- com32/include/syslinux/disk.h | 21 +++++ com32/lib/syslinux/disk.c | 170 +++++++++++++++++++++-------------------- 2 files changed, 108 insertions(+)...
2013 Sep 06
1
[PATCH 2/2 v2] com32/disk: Improve flow at disk_write_sectors and disk_read_sectors.
This patch will improve the flow at disk_write_sectors and disk_read_sectors. It does that by creating a table of values respective to the operation. Besides, read and write operations are pretty similar to each other, so I redesigned the routines to avoid duplication. Signed-off-by: Raphael S.Carvalho <raphael.scarv at gmail.com> --- com32/i...
2014 Jan 05
2
Syslinux: Pending patches
...0/18 MultiFS from MultiDisk 10/07 Lua get_key & example (is this in the 5.2.2 upgrade?) -More Review/work required before inclusion (based on threads) 09/30 [PATCH v2] core: Check size of ldlinux.sys at building time (needs core shrink first) 09/06-09/17 [PATCH 2/2] com32/disk: Improve flow at disk_write_sectors and disk_read_sectors (rework needed) 09/06-09/30 [PATCH 1/2] com32/lib/: Avoid unneeded allocation. 07/22 [PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer. 07/19 core/fs: Add support to Unix File system 1/2. 07/18 core/serial: Add support for serial output functions. -Pending rejection 10...
2015 Sep 24
0
[PATCH] com32/disk: add UEFI support
...inreg, com32sys_t * outreg); +#endif + extern int disk_get_params(int disk, struct disk_info *const diskinfo); extern void *disk_read_sectors(const struct disk_info *const diskinfo, - uint64_t lba, uint8_t count); + uint64_t lba, uint8_t count); extern int disk_write_sectors(const struct disk_info *const diskinfo, - uint64_t lba, const void *data, uint8_t count); + uint64_t lba, const void *data, uint8_t count); extern int disk_write_verify_sectors(const struct disk_info *const diskinfo, - uint64_t lba, const void *buf, ui...
2014 Sep 09
2
Are any of these still relevant?
...ng was applied: http://www.syslinux.org/archives/2013-September/020910.html So I'm not sure the prior one, "Avoid unneeded allocation" is still needed / awaiting. _ More review/work required before inclusion (based on threads) 2013Sep06-17 [PATCH 2/2] com32/disk: Improve flow at disk_write_sectors and disk_read_sectors (rework needed) http://www.syslinux.org/archives/2013-September/020860.html _ 2014Jan [PATCH] efi: off-by-one in gdt allocation http://www.syslinux.org/archives/2014-February/021725.html (By now the original patch is off by a few lines, because additional patches were...
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.
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...nfo, uint64_t lba, } if (disk_int13_retry(&inreg, NULL)) - return NULL; + goto out; data = malloc(count * diskinfo->bps); if (data) memcpy(data, buf, count * diskinfo->bps); +out: + lfree(dapa); + lfree(buf); return data; } @@ -233,17 +254,27 @@ int disk_write_sectors(const struct disk_info *const diskinfo, uint64_t lba, const void *data, uint8_t count) { com32sys_t inreg; - struct disk_ebios_dapa *dapa = __com32.cs_bounce; - void *buf = (char *)__com32.cs_bounce + diskinfo->bps; + struct disk_ebios_dapa *dapa; + void *buf; u...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello, the following patches should get multidisk access working. The syntax accepted is the following: (hdx,y)/path/to/file where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk. the other accepted syntax is using MBR's 32 bits disk signature so for example: (mbr:0x12345678,2)/foo/bar would address