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