aboutsummaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-05-06 10:26:37 -0600
committerKevin Wolf <kwolf@redhat.com>2016-05-12 15:22:09 +0200
commit441692ddd8321d5e0f09b163e86410e578d87236 (patch)
tree976fca6ae8171f26574a889f058c039778ba8eea /HACKING
parent9fc0d361cc412251500cfe3fe9a548a363c635be (diff)
downloadqemu-441692ddd8321d5e0f09b163e86410e578d87236.zip
qemu-441692ddd8321d5e0f09b163e86410e578d87236.tar.gz
qemu-441692ddd8321d5e0f09b163e86410e578d87236.tar.bz2
onenand: Switch to byte-based block access
Sector-based blk_write() should die; switch to byte-based blk_pwrite() instead. Likewise for blk_read(). This particular device picks its size during onenand_initfn(), and can be at most 0x80000000 bytes; therefore, shifting an 'int sec' request to get back to a byte offset should never overflow 32 bits. But adding assertions to document that point should not hurt. Signed-off-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'HACKING')
0 files changed, 0 insertions, 0 deletions