Xyris
0.5
cxx.cpp
Go to the documentation of this file.
1
/**
2
* @file cxx.cpp
3
* @author Micah Switzer <
[email protected]
>
4
* @brief C++ dynamic memory management functions
5
* @version 0.1
6
* @date 2021-07-25
7
*
8
* @copyright Copyright the Xyris Contributors (c) 2021
9
*
10
* References:
11
* https://wiki.osdev.org/C++
12
*/
13
#include <
Memory/heap.hpp
>
14
15
void
*
operator
new
(
size_t
size
)
16
{
17
return
malloc
(
size
);
18
}
19
20
void
*
operator
new
[](
size_t
size
)
21
{
22
return
malloc
(
size
);
23
}
24
25
void
operator
delete
(
void
* p)
26
{
27
free
(p);
28
}
29
30
void
operator
delete
[](
void
* p)
31
{
32
free
(p);
33
}
34
35
void
operator
delete
(
void
* p,
long
unsigned
int)
36
{
37
free
(p);
38
}
39
40
void
operator
delete
[](
void
* p,
long
unsigned
int)
41
{
42
free
(p);
43
}
size
uint16_t size
Definition:
regs.hpp:2
free
void free(void *)
malloc
void * malloc(size_t)
heap.hpp
Liballoc heap implementation.
Kernel
Support
cxx.cpp
Generated by
1.8.17