aboutsummaryrefslogtreecommitdiff
path: root/sys/conf
diff options
context:
space:
mode:
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
parent1d071ce340d77e086e2d3ee85de9b68508fe1666 (diff)
downloadsrc-6e481f83f7ff59b62539d608ba87818588fd5797.tar.gz
src-6e481f83f7ff59b62539d608ba87818588fd5797.zip
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
Notes: svn path=/head/; revision=331056
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/files.amd641
-rw-r--r--sys/conf/files.i3861
2 files changed, 2 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
diff --git a/sys/conf/files.i386 b/sys/conf/files.i386
index 2f2b84c0c9a6..d2b735202702 100644
--- a/sys/conf/files.i386
+++ b/sys/conf/files.i386
@@ -88,6 +88,7 @@ compat/linprocfs/linprocfs.c optional linprocfs
compat/linsysfs/linsysfs.c optional linsysfs
compat/linux/linux_event.c optional compat_linux
compat/linux/linux_emul.c optional compat_linux
+compat/linux/linux_errno.c optional compat_linux
compat/linux/linux_file.c optional compat_linux
compat/linux/linux_fork.c optional compat_linux
compat/linux/linux_futex.c optional compat_linux