From e8507d23ee41e968b26e33436e81d9307fe45fb4 Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 11 May 2023 19:27:05 +0200 Subject: [PATCH] kernel: Warn if no ATA controller is found --- kernel/src/arch/x86_64/disk/ATA.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/src/arch/x86_64/disk/ATA.cpp b/kernel/src/arch/x86_64/disk/ATA.cpp index 0c371d4d..0336ed0d 100644 --- a/kernel/src/arch/x86_64/disk/ATA.cpp +++ b/kernel/src/arch/x86_64/disk/ATA.cpp @@ -23,6 +23,8 @@ namespace ATA }, { .klass = 1, .subclass = 1 }); + if (!g_controller) kwarnln("ata: No ATA controller found."); + return {}; }