mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-09 01:20:46 +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.
18 lines
534 B
C
18 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; }
|