From cb2f383f45dda8d1cdcef0b87fe4c70243659701 Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 27 Apr 2025 17:30:36 +0200 Subject: dev, kernel: AHCI, HeFS filesystem, SysChk, and BootSATA improvements. what? - AHCI now writes to disk, forgot to do it. - Codebase's architecutre has been used to reuse the Generic+AHCI driver in SysChk for AHCI. (tradeoff is 256K in size instead of 36K) - DriveMgr now detects EPM. - And HeFS is still being worked on. Signed-off-by: Amlal --- dev/kernel/StorageKit/DMA.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dev/kernel/StorageKit') diff --git a/dev/kernel/StorageKit/DMA.h b/dev/kernel/StorageKit/DMA.h index 17dda29a..c572ffa3 100644 --- a/dev/kernel/StorageKit/DMA.h +++ b/dev/kernel/StorageKit/DMA.h @@ -52,15 +52,13 @@ inline VoidPtr rtl_dma_alloc(SizeT size, SizeT align) { } inline Void rtl_dma_free(SizeT size) { - if (!size) - return; + if (!size) return; kDmaPoolPtr = (UInt8*) (kDmaPoolPtr - size); } inline Void rtl_dma_flush(Void* ptr, SizeT size_buffer) { - if (ptr > (Void*)(DMA_POOL_START + DMA_POOL_SIZE)) - { + if (ptr > (Void*) (DMA_POOL_START + DMA_POOL_SIZE)) { return; } -- cgit v1.2.3