summaryrefslogtreecommitdiff
path: root/Kernel/kmalloc.h
blob: 3862b68aefd89bdfbbb68d3eab3c6f214b7ca724 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

void kmalloc_init();
void *kmalloc(DWORD size) __attribute__ ((malloc));
void kfree(void*);

extern volatile DWORD sum_alloc;
extern volatile DWORD sum_free;

inline void* operator new(size_t, void* p) { return p; }
inline void* operator new[](size_t, void* p) { return p; }