From 3f7a25c913bdda5bd94e4849e328d31280552a75 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 16 Nov 2025 20:18:37 +0100 Subject: feat: bug: chk.efi breaks ne_kernel on AHCI. Signed-off-by: Amlal El Mahrouss --- dev/kernel/DmaKit/DmaPool.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'dev/kernel/DmaKit') diff --git a/dev/kernel/DmaKit/DmaPool.h b/dev/kernel/DmaKit/DmaPool.h index 99f43725..ee7a333c 100644 --- a/dev/kernel/DmaKit/DmaPool.h +++ b/dev/kernel/DmaKit/DmaPool.h @@ -23,11 +23,7 @@ #define kNeDMAPoolSize (0x1000000) #endif -#ifdef __GNUC__ -#define kNeDMABestAlign __BIGGEST_ALIGNMENT__ -#else #define kNeDMABestAlign (8) -#endif namespace Kernel { /// @brief DMA pool base pointer, here we're sure that AHCI or whatever tricky standard sees it. @@ -41,7 +37,7 @@ inline const UInt8* kDmaPoolEnd = (UInt8*) (kNeDMAPoolStart + kNeDMAPoolSize); /***********************************************************************************/ inline VoidPtr rtl_dma_alloc(SizeT size, SizeT align) { if (!size) { - ++size; + return nullptr; } /// Check alignement according to architecture. -- cgit v1.2.3