mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-25 15:39:55 +00:00
85b886c2e0
It still requires an ELF compiler and linker, but at least it builds. I need to get rid of the "Unix" namespace. This does a lot of that.
17 lines
534 B
C
17 lines
534 B
C
#pragma once
|
|
|
|
void kmalloc_init();
|
|
void *kmalloc(dword size) __attribute__ ((malloc));
|
|
void* kmalloc_eternal(size_t) __attribute__ ((malloc));
|
|
void* kmalloc_page_aligned(size_t) __attribute__ ((malloc));
|
|
void kfree(void*);
|
|
|
|
bool is_kmalloc_address(void*);
|
|
|
|
extern volatile size_t sum_alloc;
|
|
extern volatile size_t sum_free;
|
|
extern volatile size_t kmalloc_sum_eternal;
|
|
extern volatile size_t kmalloc_sum_page_aligned;
|
|
|
|
inline void* operator new(size_t, void* p) { return p; }
|
|
inline void* operator new[](size_t, void* p) { return p; }
|