maybe fix colors in kmalloc

This commit is contained in:
2026-09-25 17:20:56 +02:00
parent b0ab02c634
commit 318fe96319
+3 -3
View File
@@ -55,15 +55,15 @@ void* kmalloc(size_t size) {
size_t alloc_index;
{
uint8_t leading_zeros = __builtin_clzll(size);
if (__builtin_popcountll(size) == 1) {
if (/*__builtin_popcountll(size) == */1) {
alloc_index = leading_zeros;
} else {
alloc_index = sizeof(size) * CHAR_BIT - leading_zeros;
}
if (alloc_index > KMALLOC_MAX_SIZE) {
// NOT IMPLEMENTED
printk("Cannot allocate [%lu] bytes: \e[1MNOT "
"IMPLEMENTED!\e[8M\n",
printk("Cannot allocate [%lu] bytes: \e[1mNOT "
"IMPLEMENTED!\e[0m\n",
size);
return NULL;
}