|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0 |
|
| #
dd2350f9 |
| 09-Sep-2019 |
Warner Losh <[email protected]> |
MFC: r351429,351430,351485,351497,351498
Merge changes to turn off -Werror for gcc 4.2.1 by default as part of the plan to deorbit gcc 4.2.1 from -head before 13.0.
Relnotes: Yes
|
|
Revision tags: release/11.3.0 |
|
| #
beacac45 |
| 22-May-2019 |
Dmitry Chagin <[email protected]> |
MFC r347196:
The build process generates assym.inc from genassym.o, so don't forget to clean genassym.o
|
|
Revision tags: release/12.0.0 |
|
| #
ccca101f |
| 03-Jul-2018 |
Bryan Drewery <[email protected]> |
All genassym.sh usage need offset.inc
|
|
Revision tags: release/11.2.0 |
|
| #
0cde66af |
| 24-Apr-2018 |
Konstantin Belousov <[email protected]> |
Fix futexes on i386 after the 4/4G split.
Use proper method to access userspace. For now, only the slow copyout path is implemented.
Reported and tested by: tijl (previous version) Sponsored by: T
Fix futexes on i386 after the 4/4G split.
Use proper method to access userspace. For now, only the slow copyout path is implemented.
Reported and tested by: tijl (previous version) Sponsored by: The FreeBSD Foundation
show more ...
|
| #
6469bdcd |
| 06-Apr-2018 |
Brooks Davis <[email protected]> |
Move most of the contents of opt_compat.h to opt_global.h.
opt_compat.h is mentioned in nearly 180 files. In-progress network driver compabibility improvements may add over 100 more so this is close
Move most of the contents of opt_compat.h to opt_global.h.
opt_compat.h is mentioned in nearly 180 files. In-progress network driver compabibility improvements may add over 100 more so this is closer to "just about everywhere" than "only some files" per the guidance in sys/conf/options.
Keep COMPAT_LINUX32 in opt_compat.h as it is confined to a subset of sys/compat/linux/*.c. A fake _COMPAT_LINUX option ensure opt_compat.h is created on all architectures.
Move COMPAT_LINUXKPI to opt_dontuse.h as it is only used to control the set of compiled files.
Reviewed by: kib, cem, jhb, jtl Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14941
show more ...
|
| #
fc2a8776 |
| 20-Mar-2018 |
Ed Maste <[email protected]> |
Rename assym.s to assym.inc
assym is only to be included by other .s files, and should never actually be assembled by itself.
Reviewed by: imp, bdrewery (earlier) Sponsored by: The FreeBSD Foundati
Rename assym.s to assym.inc
assym is only to be included by other .s files, and should never actually be assembled by itself.
Reviewed by: imp, bdrewery (earlier) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D14180
show more ...
|
| #
6e481f83 |
| 16-Mar-2018 |
Ed Maste <[email protected]> |
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 ar
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
show more ...
|
| #
85059bc4 |
| 05-Feb-2018 |
Ed Maste <[email protected]> |
Move assym.s to DPSRCS in linux modules
assym.s exists only to be included by other .s files, and should not actually be assembled by itself.
Sponsored by: Turing Robotic Industries Inc.
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
e2e6a2a1 |
| 04-Jun-2017 |
Dmitry Chagin <[email protected]> |
Revert r319053 due to lack of sence. As pointed out by kib@ opt_global.h contains such fundamental settings as e.g. SMP option and fake opt_global.h almost never match real configured kernels.
Repor
Revert r319053 due to lack of sence. As pointed out by kib@ opt_global.h contains such fundamental settings as e.g. SMP option and fake opt_global.h almost never match real configured kernels.
Reported by: kib@
show more ...
|
| #
9ecc1abc |
| 28-May-2017 |
Dmitry Chagin <[email protected]> |
On success, getrandom() Linux system call returns the number of bytes that were copied to the buffer supplied by the user.
Also fix getrandom() if Linuxulator modules are built without the kernel.
On success, getrandom() Linux system call returns the number of bytes that were copied to the buffer supplied by the user.
Also fix getrandom() if Linuxulator modules are built without the kernel.
PR: 219464 Submitted by: Maciej Pasternacki Reported by: Maciej Pasternacki MFC after: 1 week
show more ...
|
| #
1a8ea9fb |
| 28-May-2017 |
Dmitry Chagin <[email protected]> |
Strip _binary_linux_locore_o_size from ${VDSO}.so as it is a low absolute symbol, and this breaks symbol lookup in ddb.
Requested by: bde@
MFC after: 1 week
|
| #
193d9e76 |
| 04-Mar-2017 |
Enji Cooper <[email protected]> |
sys/modules: normalize .CURDIR-relative paths to SRCTOP
This simplifies make output/logic
Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon
|
| #
0e8b3ab3 |
| 21-Feb-2017 |
Ed Maste <[email protected]> |
Exclude -flto when building *genassym.o
The build process generates *assym.h using nm from *genassym.o (which is in turn created from *genassym.c).
When compiling with link-time optimization (LTO)
Exclude -flto when building *genassym.o
The build process generates *assym.h using nm from *genassym.o (which is in turn created from *genassym.c).
When compiling with link-time optimization (LTO) using -flto, .o files are LLVM bitcode, not ELF objects. This is not usable by genassym.sh, so remove -flto from those ${CC} invocations.
Submitted by: George Rimar Reviewed by: dim MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D9659
show more ...
|
|
Revision tags: release/11.0.1, release/11.0.0 |
|
| #
97d06da6 |
| 10-Jul-2016 |
Dmitry Chagin <[email protected]> |
Fix a copy/paste bug introduced during X86_64 Linuxulator work. FreeBSD support NX bit on X86_64 processors out of the box, for i386 emulation use READ_IMPLIES_EXEC flag, introduced in r302515.
Whil
Fix a copy/paste bug introduced during X86_64 Linuxulator work. FreeBSD support NX bit on X86_64 processors out of the box, for i386 emulation use READ_IMPLIES_EXEC flag, introduced in r302515.
While here move common part of mmap() and mprotect() code to the files in compat/linux to reduce code dupcliation between Linuxulator's.
Reported by: Johannes Jost Meixner, Shawn Webb
MFC after: 1 week XMFC with: r302515, r302516
show more ...
|
|
Revision tags: release/10.3.0 |
|
| #
621a9c54 |
| 25-Feb-2016 |
Ed Maste <[email protected]> |
pass -fPIC to the assembler, not linker
-fPIC has no effect on linking although it seems to be ignored by GNU ld.bfd. However, it causes ld.lld to terminate with an invalid argument error.
Reviewe
pass -fPIC to the assembler, not linker
-fPIC has no effect on linking although it seems to be ignored by GNU ld.bfd. However, it causes ld.lld to terminate with an invalid argument error.
Reviewed by: dchagin, kib MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5444
show more ...
|
|
Revision tags: release/10.2.0 |
|
| #
c5d87f33 |
| 25-May-2015 |
Craig Rodrigues <[email protected]> |
For objcopy, use --input-target and --output-target
When building with gcc 4.9 and binutils 2.25, using '--input' and '--output' returns an error message: objcopy: option `--input' is ambiguous
For objcopy, use --input-target and --output-target
When building with gcc 4.9 and binutils 2.25, using '--input' and '--output' returns an error message: objcopy: option `--input' is ambiguous
Reported by: Jenkins
show more ...
|
| #
4ab7403b |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Rework signal code to allow using it by other modules, like linprocfs:
1. Linux sigset always 64 bit on all platforms. In order to move Linux sigset code to the linux_common module define it as 64 b
Rework signal code to allow using it by other modules, like linprocfs:
1. Linux sigset always 64 bit on all platforms. In order to move Linux sigset code to the linux_common module define it as 64 bit int. Move Linux sigset manipulation routines to the MI path.
2. Move Linux signal number definitions to the MI path. In general, they are the same on all platforms except for a few signals.
3. Map Linux RT signals to the FreeBSD RT signals and hide signal conversion tables to avoid conversion errors.
4. Emulate Linux SIGPWR signal via FreeBSD SIGRTMIN signal which is outside of allowed on Linux signal numbers.
PR: 197216
show more ...
|
| #
e16fe1c7 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Implement epoll family system calls. This is a tiny wrapper around kqueue() to implement epoll subset of functionality. The kqueue user data are 32bit on i386 which is not enough for epoll user data,
Implement epoll family system calls. This is a tiny wrapper around kqueue() to implement epoll subset of functionality. The kqueue user data are 32bit on i386 which is not enough for epoll user data, so we keep user data in the proc emuldata.
Initial patch developed by rdivacky@ in 2007, then extended by Yuri Victorovich @ r255672 and finished by me in collaboration with mjg@ and jillies@.
Differential Revision: https://reviews.freebsd.org/D1092
show more ...
|
| #
bc273677 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Refund the proc emuldata struct for future use. For now move flags from thread emuldata to proc emuldata as it was originally intended.
As we can have both 64 & 32 bit Linuxulator running any eventh
Refund the proc emuldata struct for future use. For now move flags from thread emuldata to proc emuldata as it was originally intended.
As we can have both 64 & 32 bit Linuxulator running any eventhandler can be called twice for us. To prevent this move eventhandlers code from linux_emul.c to the linux_common.ko module.
Differential Revision: https://reviews.freebsd.org/D1073
show more ...
|
| #
67d39748 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Introduce a new module linux_common.ko which is intended for the following primary purposes:
1. Remove the dependency of linsysfs and linprocfs modules from linux.ko, which will be architecture spec
Introduce a new module linux_common.ko which is intended for the following primary purposes:
1. Remove the dependency of linsysfs and linprocfs modules from linux.ko, which will be architecture specific on amd64.
2. Incorporate into linux_common.ko general code for platforms on which we'll support two Linuxulator modules (for both instruction set - 32 & 64 bit).
3. Move malloc(9) declaration to linux_common.ko, to enable getting memory usage statistics properly.
Currently linux_common.ko incorporates a code from linux_mib.c and linux_util.c and linprocfs, linsysfs and linux kernel modules depend on linux_common.ko.
Temporarily remove dtrace garbage from linux_mib.c and linux_util.c
Differential Revision: https://reviews.freebsd.org/D1072 In collaboration with: Vassilis Laganakos.
Reviewed by: trasz
show more ...
|
| #
bdc37934 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Implement vdso - virtual dynamic shared object. Through vdso Linux exposes functions from kernel with proper DWARF CFI information so that it becomes easier to unwind through them. Using vdso is a ma
Implement vdso - virtual dynamic shared object. Through vdso Linux exposes functions from kernel with proper DWARF CFI information so that it becomes easier to unwind through them. Using vdso is a mandatory for a thread cancelation && cleanup on a modern glibc.
Differential Revision: https://reviews.freebsd.org/D1060
show more ...
|
|
Revision tags: release/10.1.0 |
|
| #
528013d5 |
| 06-Nov-2014 |
Warner Losh <[email protected]> |
Retire the '@' symlink. It isn't really needed and causes more problems than it solves. SYSDIR is already defined almost always and can be used instead. Working around the one case where it isn't is
Retire the '@' symlink. It isn't really needed and causes more problems than it solves. SYSDIR is already defined almost always and can be used instead. Working around the one case where it isn't is much easier than working around the fact that @ may not exist in 18 other places.
Differential Revision: https://reviews.freebsd.org/D1100
show more ...
|
| #
b3ee0d3b |
| 27-Oct-2014 |
John Baldwin <[email protected]> |
Add foo_genassym.c files to DPSRCS so dependencies for them are generated. This ensures these objects are rebuilt to generate an updated header of assembly constants if needed.
|
| #
0ffd63f0 |
| 17-Oct-2014 |
Warner Losh <[email protected]> |
move linux*_locore.s and linux*_support.s to SRCS, remove the OBJS entry and remove now-redunant dependencies. Add assym.s to linux*_locore.s build, as it depends on it.
With this change, linux*.ko
move linux*_locore.s and linux*_support.s to SRCS, remove the OBJS entry and remove now-redunant dependencies. Add assym.s to linux*_locore.s build, as it depends on it.
With this change, linux*.ko no longer builds every time through a KERNFAST run.
Sponsored by: Netflix
show more ...
|
| #
0a041f3b |
| 18-Sep-2014 |
Bjoern A. Zeeb <[email protected]> |
Implement most of timer_{create,settime,gettime,getoverrun,delete} for amd64/linux32. Fix the entirely bogus (untested) version from r161310 for i386/linux using the same shared code in compat/linux
Implement most of timer_{create,settime,gettime,getoverrun,delete} for amd64/linux32. Fix the entirely bogus (untested) version from r161310 for i386/linux using the same shared code in compat/linux.
It is unclear to me if we could support more clock mappings but the current set allows me to successfully run commercial 32bit linux software under linuxolator on amd64.
Reviewed by: jhb Differential Revision: D784 MFC after: 3 days Sponsored by: DARPA, AFRL
show more ...
|