Quellcode durchsuchen

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.
Andreas Kling vor 6 Jahren
Ursprung
Commit
5dd79736c5
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      Kernel/i386.cpp

+ 2 - 2
Kernel/i386.cpp

@@ -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);