feat(ACPI): Add rudimentary ACPI support

This commit is contained in:
Daniel Hammer
2025-05-08 19:20:19 +02:00
parent d63addfb64
commit 0874aa8784
6 changed files with 177 additions and 1 deletions
+12
View File
@@ -13,6 +13,8 @@
#include <Memory/PageFrameAllocator.hpp>
#include <Common/Panic.hpp>
#include <initializer_list>
namespace kcp
{
template<typename T>
@@ -29,6 +31,16 @@ namespace kcp
array = nullptr;
}
vector(std::initializer_list<T> initList) {
sz = 0;
array = nullptr;
for (auto itr = initList.begin(); itr != initList.end(); itr++) {
T item = *itr;
push_back(item);
}
}
T& operator[](std::size_t position)
{
if (position > (capacity - 1)) {