Add a malloc_dyn upcall for dynamically sized allocations on the shared heap.

This commit is contained in:
Michael Sullivan
2012-06-13 17:59:21 -07:00
parent 31f4b63dff
commit 4c0d41cffa
7 changed files with 103 additions and 40 deletions

View File

@@ -62,6 +62,11 @@ rust_kernel::malloc(size_t size, const char *tag) {
return _region.malloc(size, tag);
}
void *
rust_kernel::calloc(size_t size, const char *tag) {
return _region.calloc(size, tag);
}
void *
rust_kernel::realloc(void *mem, size_t size) {
return _region.realloc(mem, size);