Make RAM infinite in POSIX env
Since the calculation that's being used right now isn't too acurate
anyways, let's just get rid of it, maybe we'll find more memory-related
bugs.
@@ -180,7 +180,7 @@ static inline void env_secure_free(const void *ptr, size_t size)
static inline uint64_t env_get_free_memory(void)
{
- return sysconf(_SC_PAGESIZE) * sysconf(_SC_AVPHYS_PAGES);
+ return (uint64_t)(-1);
}
/* ALLOCATOR */
