1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

Kernel: Remove the one client of Vector-with-custom-allocator.

This was a silly experiment. If I want to save space here, I can do it in
one of many other ways.
This commit is contained in:
Andreas Kling 2019-03-16 13:19:58 +01:00
parent 313ee8dd19
commit 5dd79736c5

View file

@ -22,7 +22,7 @@ static Descriptor* s_gdt;
static IRQHandler** s_irq_handler;
static Vector<word, KmallocEternalAllocator>* s_gdt_freelist;
static Vector<word>* s_gdt_freelist;
static word s_gdtLength;
@ -345,7 +345,7 @@ void gdt_init()
s_gdt = static_cast<Descriptor*>(kmalloc_eternal(sizeof(Descriptor) * 256));
s_gdtLength = 5;
s_gdt_freelist = new Vector<word, KmallocEternalAllocator>();
s_gdt_freelist = new Vector<word>();
s_gdt_freelist->ensure_capacity(256);
for (size_t i = s_gdtLength; i < 256; ++i)
s_gdt_freelist->append(i * 8);