path: root/sys/conf/files.amd64
diff options
authorEd Maste <emaste@FreeBSD.org>2018-03-16 14:46:38 +0000
committerEd Maste <emaste@FreeBSD.org>2018-03-16 14:46:38 +0000
commit6e481f83f7ff59b62539d608ba87818588fd5797 (patch)
treea7925d8d87225d5a35202e44696ae8b9d0db31b8 /sys/conf/files.amd64
parent1d071ce340d77e086e2d3ee85de9b68508fe1666 (diff)
Share a single bsd-linux errno table across MD consumers
Three copies of the linuxulator linux_sysvec.c contained identical BSD to Linux errno translation tables, and future work to support other architectures will also use the same table. Move the table to a common file to be used by all. Make it 'const int' to place it in .rodata. (Some existing Linux architectures use MD errno values, but x86 and Arm share the generic set.) This change should introduce no functional change; a followup will add missing errno values. MFC after: 3 weeks Sponsored by: Turing Robotic Industries Inc. Differential Revision: https://reviews.freebsd.org/D14665
Notes: svn path=/head/; revision=331056
Diffstat (limited to 'sys/conf/files.amd64')
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files.amd64 b/sys/conf/files.amd64
index 25dbd5a0d008..3a57be5323f9 100644
--- a/sys/conf/files.amd64
+++ b/sys/conf/files.amd64
@@ -616,6 +616,7 @@ amd64/linux32/linux32_support.s optional compat_linux32 \
amd64/linux32/linux32_sysent.c optional compat_linux32
amd64/linux32/linux32_sysvec.c optional compat_linux32
compat/linux/linux_emul.c optional compat_linux32
+compat/linux/linux_errno.c optional compat_linux32
compat/linux/linux_file.c optional compat_linux32
compat/linux/linux_fork.c optional compat_linux32
compat/linux/linux_futex.c optional compat_linux32