banan-os/kernel/arch/x86_64
Bananymous d9c05b7378 Kernel: rewrite the whole kmalloc (again)
Performance of the old kmalloc implementation was terrible.
We now use fixed-width linked list allocations for sizes <= 60 bytes.
This is much faster than variable size allocation.

We don't use bitmap scanning anymore since it was probably the slow
part. Instead we use headers that tell allocations size and aligment.

I removed the kmalloc_eternal, even though it was very fast, there is
not really any need for it, since the only place it was used in was IDT.

These changes allowed my psf (font) parsing to go from ~500 ms to ~20 ms.
(coming soon :D)
2023-02-22 16:32:50 +02:00
..
IDT.cpp Kernel: rewrite the whole kmalloc (again) 2023-02-22 16:32:50 +02:00
MMU.cpp All: rename every function from UpperCamelCase to snake_case 2023-02-01 21:05:44 +02:00
SpinLock.S Kernel: Implement basic SpinLock 2023-02-01 01:52:52 +02:00
Thread.S Kernel: Sleep now actually sleeps and allows idling 2023-02-19 18:52:25 +02:00
boot.S Kernel: Only allocate single GDT entry during boot.S 2023-01-31 18:43:09 +02:00
crti.S Kernel: Finally managed to get 64-bit working 2023-01-25 19:19:28 +02:00
crtn.S Kernel: Finally managed to get 64-bit working 2023-01-25 19:19:28 +02:00
interrupts.S Kernel: Add actual register values to x86_64 kernel panic 2023-01-30 18:52:38 +02:00
linker.ld Kernel: Finally managed to get 64-bit working 2023-01-25 19:19:28 +02:00
make.config Kernel: Improve multithreading support 2023-02-02 23:24:12 +02:00