12940b44dSPeter Avalos /////////////////////////////////////////////////////////////////////////////// 22940b44dSPeter Avalos // 32940b44dSPeter Avalos /// \file hardware_physmem.c 42940b44dSPeter Avalos /// \brief Get the total amount of physical memory (RAM) 52940b44dSPeter Avalos // 62940b44dSPeter Avalos // Author: Jonathan Nieder 72940b44dSPeter Avalos // 82940b44dSPeter Avalos // This file has been put into the public domain. 92940b44dSPeter Avalos // You can do whatever you want with this file. 102940b44dSPeter Avalos // 112940b44dSPeter Avalos /////////////////////////////////////////////////////////////////////////////// 122940b44dSPeter Avalos 132940b44dSPeter Avalos #include "common.h" 142940b44dSPeter Avalos 152940b44dSPeter Avalos #include "tuklib_physmem.h" 162940b44dSPeter Avalos 172940b44dSPeter Avalos 182940b44dSPeter Avalos extern LZMA_API(uint64_t) lzma_physmem(void)192940b44dSPeter Avaloslzma_physmem(void) 202940b44dSPeter Avalos { 212940b44dSPeter Avalos // It is simpler to make lzma_physmem() a wrapper for 22*e151908bSDaniel Fojt // tuklib_physmem() than to hack appropriate symbol visibility 232940b44dSPeter Avalos // support for the tuklib modules. 242940b44dSPeter Avalos return tuklib_physmem(); 252940b44dSPeter Avalos } 26