hardware_physmem.c 683 B

12345678910111213141516171819202122232425
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. /// \file hardware_physmem.c
  4. /// \brief Get the total amount of physical memory (RAM)
  5. //
  6. // Author: Jonathan Nieder
  7. //
  8. // This file has been put into the public domain.
  9. // You can do whatever you want with this file.
  10. //
  11. ///////////////////////////////////////////////////////////////////////////////
  12. #include "common.h"
  13. #include "tuklib_physmem.h"
  14. extern LZMA_API(uint64_t)
  15. lzma_physmem(void)
  16. {
  17. // It is simpler to make lzma_physmem() a wrapper for
  18. // tuklib_physmem() than to hack appropriate symbol visibility
  19. // support for the tuklib modules.
  20. return tuklib_physmem();
  21. }