hardware_physmem.c 614 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: 0BSD
  2. ///////////////////////////////////////////////////////////////////////////////
  3. //
  4. /// \file hardware_physmem.c
  5. /// \brief Get the total amount of physical memory (RAM)
  6. //
  7. // Author: Jonathan Nieder
  8. //
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #include "common.h"
  11. #include "tuklib_physmem.h"
  12. extern LZMA_API(uint64_t)
  13. lzma_physmem(void)
  14. {
  15. // It is simpler to make lzma_physmem() a wrapper for
  16. // tuklib_physmem() than to hack appropriate symbol visibility
  17. // support for the tuklib modules.
  18. return tuklib_physmem();
  19. }