Align disk buffer to 16 for perf reasons
This commit is contained in:
parent
2ec27cbeee
commit
e3dbdad6c8
BIN
qloader2.bin
BIN
qloader2.bin
Binary file not shown.
@ -28,7 +28,7 @@ static int cache_block(int drive, uint64_t block) {
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!cache)
|
if (!cache)
|
||||||
cache = balloc(BLOCK_SIZE);
|
cache = balloc_aligned(BLOCK_SIZE, 16);
|
||||||
|
|
||||||
dap.segment = rm_seg(cache);
|
dap.segment = rm_seg(cache);
|
||||||
dap.offset = rm_off(cache);
|
dap.offset = rm_off(cache);
|
||||||
|
Loading…
Reference in New Issue
Block a user