:: commit e3dbdad6c80a19e5163a2fa18f47029204a8aeb2

mintsuki <mintsuki@protonmail.com> — 2020-05-01 00:30

parents: 2ec27cbeee

Align disk buffer to 16 for perf reasons

diff --git a/qloader2.bin b/qloader2.bin
index acd1bd6d..cbd41ac0 100644
Binary files a/qloader2.bin and b/qloader2.bin differ
diff --git a/src/drivers/disk.c b/src/drivers/disk.c
index 8fb85bfc..b04474cf 100644
--- a/src/drivers/disk.c
+++ b/src/drivers/disk.c
@@ -28,7 +28,7 @@ static int cache_block(int drive, uint64_t block) {
         return 0;
 
     if (!cache)
-        cache = balloc(BLOCK_SIZE);
+        cache = balloc_aligned(BLOCK_SIZE, 16);
 
     dap.segment = rm_seg(cache);
     dap.offset  = rm_off(cache);
tab: 248 wrap: offon