summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-29riscv64 libc, more pieces.Dale Rahn
largely derived from aarch64 code. usertc.c taken from hppa with cleanup to Symbols.list and tfork_thread.S Further cleanup and enhancement will be performed in-tree. ok kettenis@
2021-04-29Use relative reference URIs in Location header on directory redirects.dv
This adds support for front-ending httpd(8) with a TLS-terminating gateway like relayd(8) that forwards unencrypted http traffic. Previously httpd(8) would use a full URL in the Location header in 301 redirects when a user-agent requests a directory but without the trailing '/'. If the user-agent originally connected with https, this caused the redirected url to be http. This change conforms to RFC7231 section 7.1.2. Reported by Vincent Lee. OK claudio@
2021-04-29Clean up <machine/ieeefp.h> and make sure the rounding mode bits match theMark Kettenis
hardware. Implement fp[gs]etround(3) and fp[gs]etsticky(3) and tweak the fp[gs]etmask(3) implementation to provide the right weak symbols. This implementation deliberately ignores the additional "round to nearest, away from zero" as this interface is derived from i386-specific code and the i387 FPU doesn't implement such a rounding mode. This is a legacy API and code should use <fenv.h> instead. ok drahn@
2021-04-29Revert part of the previous uvm_km_zalloc(9) to km_alloc(9) commit.Alexander Bluhm
The chunk with mapping for pm_pdir_intel causes crashes for sthen@ and bluhm@. i386 pagedaemon panic: kernel diagnostic assertion "pg->wire_count == 0" failed: file "/usr/src/sys/uvm/uvm_page.c", line 1265 One of my 8 CPU 3 GB RAM machines can reproduce it when building clang with make -j 9. This commit hides the underlying bug. OK mpi@
2021-04-29Replace uvm_km_alloc(9) calls with km_alloc(9) calls. Make the copied ROMMark Kettenis
contents executable using pmap_kenter_pa(9) since uvm stops us from doing so using higher-level interfaces (for good reasons). Maintaining W^X of course! ok mpi@
2021-04-29Extend the fork and exit test with threads. Simultaneously killAlexander Bluhm
30 processes with 30 threads each.
2021-04-29Remove unused RM7000 ICR handling.Visa Hankala
2021-04-29descend into arch/riscv64Jonathan Gray
2021-04-29add riscv64 efibind.hJonathan Gray
ok drahn@ kettenis@
2021-04-29regenJonathan Gray
2021-04-29add RISCVJonathan Gray
2021-04-29riscv64 clang support.Dale Rahn
With several fixes from review integrated. ok patrick@
2021-04-29Remove extraneous for() likely caused by copy & paste.Todd C. Miller
From trondd, OK pjanzen@
2021-04-29Use a universally understood example time (with AM, which is even easierTheo de Raadt
to understand) from Edgar Pettijohn
2021-04-29syncTheo de Raadt
2021-04-28Build libcompiler_rt for riscv64Dale Rahn
ok kettenis@
2021-04-28Enable libunwind on riscv64Dale Rahn
getWCookie() is an OpenBSD addition that is needed on new architectures. ok kettenis@
2021-04-28Use mq_delist() to fetch the ARP mbuf hold queue once and feed theAlexander Bluhm
mbuf list to if_output(). OK sashan@ mvs@
2021-04-28syncTheo de Raadt
2021-04-28syncTheo de Raadt
2021-04-28Add sndio.pc file for pkg-config, mostly from brad@Alexandre Ratchov
ok and help from espie@
2021-04-28riscv64 efiboot bootloaderDale Rahn
Ported from arm64 with changes for riscv64. Initial effort by Mickael Torres, with additional updates ACPI api removed per request ok kettenis@
2021-04-28To hunt kernel bugs during exit, terminate processes simultaneously.Alexander Bluhm
Fork 300 children that sleep. Kill them together as process group. Sleeping can optionally be done with individual memory layout by executing sleep(1).
2021-04-28Revert "Handle X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE in newTheo Buehler
verifier." (r1.27). While this may have "fixed" one corner case, it broke expectations of Perl Net::SSLeay and Ruby OpenSSL regression tests. ok bcook
2021-04-28Use "new" vmctl syntax in the example.Theo Buehler
2021-04-28Implement __flt_rounds() for RISC-V. RISC-V is "interesting" since itMark Kettenis
implements a variation on the traditional "to nearest" rounding mode that rounds away from zero when tied. The upcoming C2x includes support for that and LLVM already implements this so provide an implementation that matches our system compiler. ok drahn@
2021-04-28riscv64 libc setjmp functions,Dale Rahn
Based on arm64 versions this implementation is missing jmpxor security enhancement. Good enough deraadt@
2021-04-28riscv64 ld.soDale Rahn
derived from arm64 go ahead deraadt@
2021-04-28build eeprom on riscv64Jonathan Gray
2021-04-28descend into riscv64 dirsJonathan Gray
ok deraadt@
2021-04-28add a Makefile for riscv64 man8Jonathan Gray
2021-04-28recognise riscv64 as a valid arch in mandocJonathan Gray
ok jmc@ deraadt@
2021-04-28create riscv64 man dirsJonathan Gray
ok deraadt@
2021-04-28syncPatrick Wildt
2021-04-28Update build infrastructure for libc++ and libc++abi version 11.1.0.Patrick Wildt
2021-04-28Merge libc++, libc++abi and libunwind version 11.1.0.Patrick Wildt
2021-04-28Import libc++ 11.1.0 release.Patrick Wildt
2021-04-28Import libc++abi 11.1.0 release.Patrick Wildt
2021-04-28Import libunwind 11.1.0 release.Patrick Wildt
2021-04-28syncPatrick Wildt
2021-04-28Update clang build infrastructure for LLVM 11.1.0.Patrick Wildt
Heavy lifting by mortimer@, thank you so much!
2021-04-28Merge LLVM 11.1.0.Patrick Wildt
2021-04-28Import LLVM 11.1.0 release including clang, lld and lldb.Patrick Wildt
2021-04-28Enable dt(4) on amd64, arm64, i386, and powerpc64 in GENERIC kernel.Alexander Bluhm
Support to skip frames is missing on arm64 and i386, but the stack traces are useful anyway. sparc64 should work, but I could not test it. Other architectures do not have stacktrace_save_at() and dynamic tracer does not link. from patrick@; OK semarie@
2021-04-28Document the locking mechanism of the global variables in ARP code.Alexander Bluhm
The global list of ARP llinfo is protected by net lock. This is not sufficent when we switch to shared netlock. Add a mutex for insertion and removal when net lock is not exclusive. This is needed if we want run IP output on multiple CPU. Put an assertion for shared net lock into arp_rtrequest. input mvs@; OK sashan@
2021-01-02Import libc++abi 10.0.1 release.Patrick Wildt
2021-01-02Import libc++ 10.0.1 release.Patrick Wildt
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-04-28Introduce a global vnode_mtx and use it to make vn_lock() safe to be calledClaudio Jeker
without the KERNEL_LOCK. This moves VXLOCK and VXWANT to a mutex protected v_lflag field and also v_lockcount is protected by this mutex. The vn_lock() dance is overly complex and all of this should probably replaced by a proper lock on the vnode but such a diff is a lot more complex. This is an intermediate step so that at least some calls can be modified to grab the KERNEL_LOCK later or not at all. OK mpi@