diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-22 16:34:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-22 16:34:49 +0200 |
commit | 8925ad3fa08102c4c4ff2ef36cf5570ddf27c8cd (patch) | |
tree | 0b545d6a1a5257ea261d6929b2645d829727c2c9 /Kernel/Devices | |
parent | b0a24a83be9d3885a18ae95870fff664e8c8d118 (diff) | |
download | serenity-8925ad3fa08102c4c4ff2ef36cf5570ddf27c8cd.zip |
Revert "Kernel: Move Singleton class to AK"
This reverts commit f0906250a181c831508a45434b9f645ff98f33e4.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r-- | Kernel/Devices/BXVGADevice.cpp | 4 | ||||
-rw-r--r-- | Kernel/Devices/Device.cpp | 4 | ||||
-rw-r--r-- | Kernel/Devices/KeyboardDevice.cpp | 4 | ||||
-rw-r--r-- | Kernel/Devices/NullDevice.cpp | 4 | ||||
-rw-r--r-- | Kernel/Devices/PATAChannel.cpp | 4 | ||||
-rw-r--r-- | Kernel/Devices/PS2MouseDevice.cpp | 4 | ||||
-rw-r--r-- | Kernel/Devices/SB16.cpp | 4 | ||||
-rw-r--r-- | Kernel/Devices/VMWareBackdoor.cpp | 4 |
8 files changed, 16 insertions, 16 deletions
diff --git a/Kernel/Devices/BXVGADevice.cpp b/Kernel/Devices/BXVGADevice.cpp index ee822dac29..c31e6ec1f1 100644 --- a/Kernel/Devices/BXVGADevice.cpp +++ b/Kernel/Devices/BXVGADevice.cpp @@ -25,11 +25,11 @@ */ #include <AK/Checked.h> -#include <AK/Singleton.h> #include <Kernel/Devices/BXVGADevice.h> #include <Kernel/IO.h> #include <Kernel/PCI/Access.h> #include <Kernel/Process.h> +#include <Kernel/Singleton.h> #include <Kernel/VM/AnonymousVMObject.h> #include <Kernel/VM/MemoryManager.h> #include <LibC/errno_numbers.h> @@ -57,7 +57,7 @@ namespace Kernel { #define VBE_DISPI_ENABLED 0x01 #define VBE_DISPI_LFB_ENABLED 0x40 -static auto s_the = AK::make_singleton<BXVGADevice>(); +static auto s_the = make_singleton<BXVGADevice>(); void BXVGADevice::initialize() { diff --git a/Kernel/Devices/Device.cpp b/Kernel/Devices/Device.cpp index e08a0ac6f5..d89a57506c 100644 --- a/Kernel/Devices/Device.cpp +++ b/Kernel/Devices/Device.cpp @@ -24,14 +24,14 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <AK/Singleton.h> #include <Kernel/Devices/Device.h> #include <Kernel/FileSystem/InodeMetadata.h> +#include <Kernel/Singleton.h> #include <LibC/errno_numbers.h> namespace Kernel { -static auto s_all_devices = AK::make_singleton<HashMap<u32, Device*>>(); +static auto s_all_devices = make_singleton<HashMap<u32, Device*>>(); HashMap<u32, Device*>& Device::all_devices() { diff --git a/Kernel/Devices/KeyboardDevice.cpp b/Kernel/Devices/KeyboardDevice.cpp index 192b54c721..2fd53797e6 100644 --- a/Kernel/Devices/KeyboardDevice.cpp +++ b/Kernel/Devices/KeyboardDevice.cpp @@ -26,12 +26,12 @@ #include <AK/Assertions.h> #include <AK/ByteBuffer.h> -#include <AK/Singleton.h> #include <AK/StringView.h> #include <AK/Types.h> #include <Kernel/Arch/i386/CPU.h> #include <Kernel/Devices/KeyboardDevice.h> #include <Kernel/IO.h> +#include <Kernel/Singleton.h> #include <Kernel/TTY/VirtualConsole.h> //#define KEYBOARD_DEBUG @@ -336,7 +336,7 @@ void KeyboardDevice::handle_irq(const RegisterState&) } } -static auto s_the = AK::make_singleton<KeyboardDevice>(); +static auto s_the = make_singleton<KeyboardDevice>(); void KeyboardDevice::initialize() { diff --git a/Kernel/Devices/NullDevice.cpp b/Kernel/Devices/NullDevice.cpp index e879759d1d..5e64920acc 100644 --- a/Kernel/Devices/NullDevice.cpp +++ b/Kernel/Devices/NullDevice.cpp @@ -25,12 +25,12 @@ */ #include "NullDevice.h" -#include <AK/Singleton.h> #include <AK/StdLibExtras.h> +#include <Kernel/Singleton.h> namespace Kernel { -static auto s_the = AK::make_singleton<NullDevice>(); +static auto s_the = make_singleton<NullDevice>(); void NullDevice::initialize() { diff --git a/Kernel/Devices/PATAChannel.cpp b/Kernel/Devices/PATAChannel.cpp index 553acd412b..59295e5373 100644 --- a/Kernel/Devices/PATAChannel.cpp +++ b/Kernel/Devices/PATAChannel.cpp @@ -25,13 +25,13 @@ */ #include <AK/ByteBuffer.h> -#include <AK/Singleton.h> #include <AK/StringView.h> #include <Kernel/Devices/PATAChannel.h> #include <Kernel/Devices/PATADiskDevice.h> #include <Kernel/FileSystem/ProcFS.h> #include <Kernel/IO.h> #include <Kernel/Process.h> +#include <Kernel/Singleton.h> #include <Kernel/VM/MemoryManager.h> namespace Kernel { @@ -108,7 +108,7 @@ namespace Kernel { #define PCI_Mass_Storage_Class 0x1 #define PCI_IDE_Controller_Subclass 0x1 -static auto s_pata_lock = AK::make_singleton<Lock>(); +static auto s_pata_lock = make_singleton<Lock>(); static Lock& s_lock() { diff --git a/Kernel/Devices/PS2MouseDevice.cpp b/Kernel/Devices/PS2MouseDevice.cpp index 913b6d5c73..dfb5f01bec 100644 --- a/Kernel/Devices/PS2MouseDevice.cpp +++ b/Kernel/Devices/PS2MouseDevice.cpp @@ -25,10 +25,10 @@ */ #include <AK/Memory.h> -#include <AK/Singleton.h> #include <Kernel/Devices/PS2MouseDevice.h> #include <Kernel/Devices/VMWareBackdoor.h> #include <Kernel/IO.h> +#include <Kernel/Singleton.h> namespace Kernel { @@ -57,7 +57,7 @@ namespace Kernel { //#define PS2MOUSE_DEBUG -static auto s_the = AK::make_singleton<PS2MouseDevice>(); +static auto s_the = make_singleton<PS2MouseDevice>(); PS2MouseDevice::PS2MouseDevice() : IRQHandler(IRQ_MOUSE) diff --git a/Kernel/Devices/SB16.cpp b/Kernel/Devices/SB16.cpp index 8e5611a836..38f81f2680 100644 --- a/Kernel/Devices/SB16.cpp +++ b/Kernel/Devices/SB16.cpp @@ -25,13 +25,13 @@ */ #include <AK/Memory.h> -#include <AK/Singleton.h> #include <AK/StringView.h> #include <Kernel/Devices/SB16.h> #include <Kernel/Thread.h> #include <Kernel/VM/AnonymousVMObject.h> #include <Kernel/VM/MemoryManager.h> #include <Kernel/IO.h> +#include <Kernel/Singleton.h> //#define SB16_DEBUG @@ -77,7 +77,7 @@ void SB16::set_sample_rate(uint16_t hz) dsp_write((u8)hz); } -static auto s_the = AK::make_singleton<SB16>(); +static auto s_the = make_singleton<SB16>(); SB16::SB16() : IRQHandler(SB16_DEFAULT_IRQ) diff --git a/Kernel/Devices/VMWareBackdoor.cpp b/Kernel/Devices/VMWareBackdoor.cpp index 04499e522a..8ba15600da 100644 --- a/Kernel/Devices/VMWareBackdoor.cpp +++ b/Kernel/Devices/VMWareBackdoor.cpp @@ -26,13 +26,13 @@ #include <AK/Assertions.h> #include <AK/OwnPtr.h> -#include <AK/Singleton.h> #include <AK/String.h> #include <Kernel/Arch/i386/CPU.h> #include <Kernel/CommandLine.h> #include <Kernel/Devices/VMWareBackdoor.h> #include <Kernel/API/MousePacket.h> #include <Kernel/IO.h> +#include <Kernel/Singleton.h> namespace Kernel { @@ -111,7 +111,7 @@ private: OwnPtr<VMWareBackdoor> m_backdoor; }; -static auto s_vmware_backdoor = AK::make_singleton<VMWareBackdoorDetector>(); +static auto s_vmware_backdoor = make_singleton<VMWareBackdoorDetector>(); VMWareBackdoor* VMWareBackdoor::the() { |