summaryrefslogtreecommitdiffstats
path: root/sys/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Enable radeondrm(4) on loongson to get accelerated graphicsvisa2017-05-211-0/+317
| | | | | | with the RS780E chipset. OK kettenis@, jsg@
* Guard debug printf with NFS_DEBUG ifdef like the other debug prints.patrick2017-05-081-1/+3
| | | | ok tom@
* In preparation of compiling our kernels with -ffreestanding, explicitly mapkettenis2017-01-247-7/+22
| | | | | | | | | a few performance-critical functions to compiler builtins. Since the builtins supported by gcc3, gcc4 and clang are not the same, there are (unfortunately) some compiler checks to make sure we only do the mapping for builtins that are actually supported by the compiler. ok jca@, tom@, guenther@
* Add missing OpenBSD CVS tagsreyk2016-11-272-0/+4
|
* Fix signedness warnings with careful casts and replace a re-defined variable.reyk2016-11-252-17/+17
| | | | OK krw@
* Copy data by using 64-bit loads and stores rather than 32-bitvisa2016-11-141-1/+53
| | | | | | | operations. This about doubles the routine's throughput. No binary change on the 32-bit bootblocks Discussed with miod@ long ago
* Add an implementation of __aeabi_ldivmode() and __aeabi_uldivmod(); clangkettenis2016-09-242-0/+183
| | | | | | | | | generates calls to these functions when compiling an armv7 kernel. Code from NetBSD's unified userland+kernel implementation, with lots of irrelevant (for us) #ifdefs removed. ok patrick@, guenther@
* Add aeabi aliases.kettenis2016-09-221-1/+4
| | | | ok guenther@, patrick@
* Add bcrypt pbkdf support to the softraid crypto boot loader code.jsing2016-09-181-5/+28
| | | | Based on a diff from djm@
* Correctly handle short read()s in the libsa gzip handling lseek(). Alsojsing2016-09-181-5/+8
| | | | | | avoid masking the errno from a failed read(). ok guenther@ tom@
* move the .SUNW_ctf section name definition to exec_elf.h and document it in elf(5)jasper2016-09-171-2/+2
| | | | | feedback from guenther@ ok guenther@ kettenis@
* unifdef SAVE_MEMORY which is no longer set nor usedjasper2016-09-161-9/+1
| | | | ok deraadt@ millert@
* when loading the kernel binary, also load the .SUNW_ctf section when present,jasper2016-09-131-2/+3
| | | | | | which holds the CTF data. ok mpi@
* Provide initial libsa softraid - this is currently just the data structuresjsing2016-09-112-0/+260
| | | | and softraid crypto key handling code.
* Add bcrypt_pbkdf to libsa, from libutil. This will soon allow the bootjsing2016-09-102-0/+189
| | | | loader to support softraid crypto volumes using bcrypt pbkdf.
* Add blowfish to libsa, taken from libc - needed for bcrypt_pbkdf.jsing2016-09-102-0/+767
|
* Add sha2 to libsa, taken from libc - needed for bcrypt_pbkdf.jsing2016-09-102-0/+1107
|
* Rename libsa pbkdf2.c to pkcs5_pbkdf2.c so that we match libutil.jsing2016-09-102-15/+13
|
* Sync libsa pkcs5_pbkdf2() with libutil.jsing2016-09-102-12/+14
|
* retire sparctedu2016-09-0121-3422/+0
|
* Declare lseek() instead of assuming it'll be provided elsewhereguenther2016-08-271-1/+2
| | | | ok deraadt@
* remove hppa64 port, which we never got going beyond broken single users.deraadt2016-05-117-2035/+0
| | | | | | hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis
* remove vax handlingnatano2016-03-231-5/+2
| | | | ok millert
* " the the " -> " the ", or in a couple of cases replace the superfluouskrw2016-03-201-2/+2
| | | | | | "the" with the obviously intended word. Started with a "the the" spotted by Mihal Mazurek.
* Change a bunch of (<blah> *)0 to NULL.krw2016-03-146-21/+21
| | | | ok beck@ deraadt@
* more pieces of vaxderaadt2016-03-107-319/+0
|
* Sync no-argument function declaration and definition by adding (void).naddy2016-03-072-4/+4
| | | | ok mpi@ millert@
* Replace unbounded gets() in libsa with getln() which takes a buffer size,miod2015-11-164-16/+22
| | | | | and convert all gets() users. ok deraadt@
* (char *)0 -> NULLmmcc2015-10-261-2/+2
| | | | ok tedu@
* Cast isdigit()'s argument to unsigned char.mmcc2015-10-261-2/+2
| | | | ok guenther@
* Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In oneguenther2015-10-011-3/+0
| | | | | | | case, by deleting some useless '& of an array' we also eliminate the need for the casts which prompted the original lint warnings ok deraadt@
* Remove orphaned files.miod2015-09-183-239/+1
|
* unify free(NULL,size) behaviour by allowing passing NULLsemarie2015-09-141-3/+7
| | | | ok millert@ jasper@
* Initial commit of uefi boot loader of OpenBSD.yasuoka2015-09-022-4/+4
| | | | ok deraadt yuo
* When sendrecv() returns -1, have rpc_call() return -1 as well. Otherwise, duemiod2015-08-151-2/+2
| | | | | to the cast to unsigned, it fails the error test and returns a bogus partial read to the caller, which is painful to debug.
* Use signed variables to store the result of rpc_call().miod2015-08-151-3/+3
|
* Remove {LOAD,COUNT}_TEXTA from libsa loadfile, it only made sense for a.outmiod2015-07-171-5/+3
| | | | kernels and we no longer have any.
* Adjust type of link_len to match type of di_size in underlying struct, andkspillner2015-07-172-11/+9
| | | | | | | | | | change type of len to size_t to match strlen(3) result. Drop unneeded casts. u_int64_t is overkill because the actual size is still limited to SYMLINK_MAX but it is probably better to match the filesystem types. ok miod@, guenther@
* Expand ancient NTOHL/NTOHS/HTONS/HTONL macros.mpi2015-07-162-7/+7
| | | | ok guenther@, henning@
* Fix 1.26; kdoprnt() should not attempt to invoke va_end() at all, it's themiod2015-06-141-4/+2
| | | | caller's responsibility to do so.
* At some point arm moved to a unified syntax for arm and thumb instructions.jsg2015-06-082-39/+43
| | | | | | | | | While binutils supports both "unified" and "divided" syntax (defaulting to divided) the integrated assembler in clang only supports unified names so switch some files to unified syntax. Similiar changes were made in bitrig and freebsd. No difference in objdump -d output. tested on zaurus by deraadt@, ok miod@
* Extend the libsa loadfile(9) granularity to tell apart randomness from the restmiod2015-05-192-6/+15
| | | | | | | | | of the kernel, and extend the array filled by loadfile to report the location of the randomness area. This doesn't introduce any change for bootblocks (save for a slightly larger stack usage due to the larger array), for the new {LOAD,COUNT}_RANDOM bits are included in the {LOAD,COUNT}_ALL masks everything uses or computes from.
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-1/+0
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* Remove unused static local variable; mickey@miod2015-03-101-3/+1
|
* Invoke va_end() before returning, rather than in an unreachable place; mickey@miod2015-03-101-3/+4
|
* Include sys/stdint.h for SIZE_MAX. OK deraadt@ miod@millert2015-02-051-1/+2
|
* Revert some $OpenBSD$ additions about which there are doubts.krw2015-01-201-1/+0
| | | | Suggested by deraadt@
* Missing $OpenBSD$'s.krw2015-01-201-0/+1
| | | | ok deraadt@
* Make some $OpenBSD$ lines prettier/standardier by eliminatingkrw2015-01-191-1/+1
| | | | | | | superflous '*' after '/*' and adding blank after terminating '$'. Also eases parsing of the lines by simple awk scripts. Aesthetic approval from tedu@.
* Sync with libc version.millert2015-01-152-43/+42
|