search for: sec_per_block

Displaying 4 results from an estimated 4 matches for "sec_per_block".

2009 Jun 01
1
Exporting real-mode functions
A question was asked on the IRC channel about how to get the address of a real-mode symbol -- or any assembly symbol in general. The answer is that you have to declare it global. In NASM syntax: global func func: In GAS syntax: .globl func func: -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
2012 Aug 02
0
[PATCH 3/3] ALPHA: implement and use rdwr_bytes
...uf, core_xfer_buf, len); + } + done += len; + } + + return done; +} + struct edd_disk_params { uint16_t len; uint16_t flags; @@ -292,9 +366,7 @@ static inline bool is_power_of_2(uint32_t x) void getoneblk(struct disk *disk, char *buf, block_t block, int block_size) { - int sec_per_block = block_size / disk->sector_size; - - disk->rdwr_sectors(disk, buf, block * sec_per_block, sec_per_block, 0); + rdwr_bytes(disk, buf, (bytes_t)block * block_size, block_size, 0); } @@ -373,6 +445,8 @@ struct disk *disk_init(uint8_t devno, bool cdrom, sector_t part_start, is_...
2009 Jun 03
2
[Syslinux-GSoC]Successed in converting the cache code to C
hi there, The cache code of C version worked well(at least for extlinux, and this is what I'm doing). you can go and check it on my git web<http://git.zytor.com/?p=users/liu/gsoc09_liu.git;a=shortlog;h=refs/heads/extlinux> . Besides this, I got some new trouble: the first is about git. When I cloned all the syslinux code from the syslinux.git, then I'll do my work on it. And after
2012 Sep 10
19
Initial support for sector size >512
This set of patches add some support for sector size >512. Currently it fixes extlinux, MBR for GPT and ext partitions. Other code is unaffected. This set of patches has been tested on a read Dell machine running a beta firmware.