summaryrefslogtreecommitdiff
path: root/Kernel/Devices/SerialDevice.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-16 01:27:42 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-16 01:27:42 +0100
commita356e4815098e5398e103aa69865bd6c88f7ad36 (patch)
tree50437c6444405f12671bce7f04a8c1b10cff70f8 /Kernel/Devices/SerialDevice.cpp
parentd42f0f46616168bdff492f880b3ea432a49f7345 (diff)
downloadserenity-a356e4815098e5398e103aa69865bd6c88f7ad36.zip
Kernel: Move all code into the Kernel namespace
Diffstat (limited to 'Kernel/Devices/SerialDevice.cpp')
-rw-r--r--Kernel/Devices/SerialDevice.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/Devices/SerialDevice.cpp b/Kernel/Devices/SerialDevice.cpp
index c84d4ded06..cf923499be 100644
--- a/Kernel/Devices/SerialDevice.cpp
+++ b/Kernel/Devices/SerialDevice.cpp
@@ -27,6 +27,8 @@
#include <Kernel/Devices/SerialDevice.h>
#include <LibBareMetal/IO.h>
+namespace Kernel {
+
SerialDevice::SerialDevice(int base_addr, unsigned minor)
: CharacterDevice(4, minor)
, m_base_addr(base_addr)
@@ -134,3 +136,5 @@ char SerialDevice::get_line_status() const
{
return IO::in8(m_base_addr + 5);
}
+
+}