feat(ACPI): Add rudimentary ACPI support
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user