vppinfra: Provide FreeBSD implementation of clib_mem functions
Working from the implementation in linux/mem.c add FreeBSD specific functionality. This duplicates parts of the Linux implementation and a depuplication job could be run in the future. Stub out some parts of the API for now, they are either use unavailable features on FreeBSD or require further implementation than this initial implementation. Type: improvement Change-Id: I1e443e32304d19776a9a4d5e34adfa16ec919427 Signed-off-by: Tom Jones <thj@freebsd.org>
This commit is contained in:
@@ -222,6 +222,11 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
|
||||
perfmon/bundle_core_power.c
|
||||
perfmon/perfmon.c
|
||||
)
|
||||
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
|
||||
list(APPEND VPPINFRA_SRCS
|
||||
elf_clib.c
|
||||
freebsd/mem.c
|
||||
)
|
||||
endif()
|
||||
|
||||
option(VPP_USE_EXTERNAL_LIBEXECINFO "Use external libexecinfo (useful for non-glibc targets)." OFF)
|
||||
|
471
src/vppinfra/freebsd/mem.c
Normal file
471
src/vppinfra/freebsd/mem.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user