mirror of
https://github.com/opnsense/src.git
synced 2026-02-21 17:00:58 -05:00
on the AES-NI code, and modified as needed for use on ARMv8. When loaded the driver will check the appropriate field in the id_aa64isar0_el1 register to see if AES is supported, and if so the probe function will signal the driver should attach. With this I have seen up to 2000Mb/s from the cryptotest test with a single thread on a ThunderX Pass 2.0. Reviewed by: imp Obtained from: ABT Systems Ltd MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8297
20 lines
472 B
Makefile
20 lines
472 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../crypto/armv8
|
|
|
|
KMOD= armv8crypto
|
|
SRCS= armv8_crypto.c
|
|
SRCS+= device_if.h bus_if.h opt_bus.h cryptodev_if.h
|
|
|
|
OBJS+= armv8_crypto_wrap.o
|
|
|
|
# Remove -nostdinc so we can get the intrinsics.
|
|
armv8_crypto_wrap.o: armv8_crypto_wrap.c
|
|
${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \
|
|
${WERROR} ${PROF} \
|
|
-march=armv8a+crypto ${.IMPSRC}
|
|
${CTFCONVERT_CMD}
|
|
|
|
armv8_crypto_wrap.o: armv8_crypto.h
|
|
|
|
.include <bsd.kmod.mk>
|