1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 12:07:35 +00:00

Kernel: Use PANIC() in a bunch of places :^)

This commit is contained in:
Andreas Kling 2021-02-14 09:30:31 +01:00
parent c598a95b1c
commit b712345c92
8 changed files with 26 additions and 42 deletions

View file

@ -27,11 +27,10 @@
#include <Kernel/ACPI/Parser.h>
#include <Kernel/CommandLine.h>
#include <Kernel/IO.h>
#include <Kernel/Net/E1000NetworkAdapter.h>
#include <Kernel/Net/RTL8139NetworkAdapter.h>
#include <Kernel/PCI/IOAccess.h>
#include <Kernel/PCI/Initializer.h>
#include <Kernel/PCI/MMIOAccess.h>
#include <Kernel/Panic.h>
namespace Kernel {
namespace PCI {
@ -46,8 +45,7 @@ static Access::Type detect_optimal_access_type(bool mmio_allowed)
if (test_pci_io())
return Access::Type::IO;
klog() << "No PCI bus access method detected!";
Processor::halt();
PANIC("No PCI bus access method detected!");
}
void initialize()