Luna/kernel/include/std/stdlib.h
apio 6bd3529f32 Port liballoc to get proper kmalloc/kcalloc/krealloc/kfree functions.
Yes, that's not completely-from-scratch.
But let's be honest, am I going to do everything from scratch? Probably not. I'm not making my own bootloader.
And making a proper smaller-than-4-KB allocator is not something I want to do.
Plus, liballoc works perfectly in this rewrite, seeing as the MM code actually works, instead of leaking all your poor memory
And liballoc_{lock, unlock} can be actually defined, since we have spinlocks here!
2022-09-24 22:40:59 +02:00

14 lines
345 B
C

#pragma once
#include <stdint.h>
char* itoa(int32_t number, char* arr, int base);
char* utoa(uint32_t number, char* arr, int base);
char* ltoa(int64_t number, char* arr, int base);
char* ultoa(uint64_t number, char* arr, int base);
void sleep(uint64_t ms);
#define __skip_bindings
#include "memory/liballoc/liballoc.h"
#undef __skip_bindings