Add realloc method to rust_kernel
This commit is contained in:
parent
130006cdda
commit
2e2e1f7cb3
2 changed files with 6 additions and 0 deletions
|
|
@ -206,6 +206,11 @@ rust_kernel::malloc(size_t size) {
|
|||
return _region->malloc(size);
|
||||
}
|
||||
|
||||
void *
|
||||
rust_kernel::realloc(void *mem, size_t size) {
|
||||
return _region->realloc(mem, size);
|
||||
}
|
||||
|
||||
void rust_kernel::free(void *mem) {
|
||||
_region->free(mem);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ public:
|
|||
virtual ~rust_kernel();
|
||||
|
||||
void *malloc(size_t size);
|
||||
void *realloc(void *mem, size_t size);
|
||||
void free(void *mem);
|
||||
|
||||
// FIXME: this should go away
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue