From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/sysdeps/managarm/generic/memory.cpp | 30 --------------------------- 1 file changed, 30 deletions(-) delete mode 100644 lib/mlibc/sysdeps/managarm/generic/memory.cpp (limited to 'lib/mlibc/sysdeps/managarm/generic/memory.cpp') diff --git a/lib/mlibc/sysdeps/managarm/generic/memory.cpp b/lib/mlibc/sysdeps/managarm/generic/memory.cpp deleted file mode 100644 index 91e47af..0000000 --- a/lib/mlibc/sysdeps/managarm/generic/memory.cpp +++ /dev/null @@ -1,30 +0,0 @@ - -#include - -#include -#include -#include -#include - -#include -#include - -namespace mlibc { - -int sys_anon_allocate(size_t size, void **pointer) { - // This implementation is inherently signal-safe. - __ensure(!(size & 0xFFF)); - HelWord out; - HEL_CHECK(helSyscall1_1(kHelCallSuper + posix::superAnonAllocate, size, &out)); - *pointer = reinterpret_cast(out); - return 0; -} - -int sys_anon_free(void *pointer, size_t size) { - // This implementation is inherently signal-safe. - HEL_CHECK(helSyscall2(kHelCallSuper + posix::superAnonDeallocate, (HelWord)pointer, size)); - return 0; -} - -} //namespace mlibc - -- cgit v1.2.3