summaryrefslogtreecommitdiff
path: root/sys/lib
AgeCommit message (Collapse)Author
2010-03-15Add memset to libkern on vax, moving existing memset.S to src/common.uwe
While kernel source code is supposed to use <machine/macros.h> via <sys/param.h> and pick an inline asm version from there, gcc itself can generate direct calls to memset() for structure initialization, so the symbol must be provided. Fixes INSTALL kernel, for which -Os caused gcc to use memset() call to initialize a struct in uvm_fault_internal().
2010-03-12DTrace: Add support for CTF sections in the netbsd elf image, load thesedarran
at boot. Add a ksyms_mod_foreach() function to iterate a callback function over the set of elf symbols for a specific module (netbsd included). Add kern_ctf.c and mod_ctf_get() to allow the retrieval and decompression of CTF sections for a specific module.
2010-02-11Add a prototype.martin
2010-02-10fix includesmartin
2010-02-10Utility function to lookup a symbol value in an elf symbol table - allows,martin
for example, a bootloader to access symbols in the just loaded kernel (or module).
2010-01-20Remove kern_assert.c - it's not needed here cuz it's already pulled inpgoyette
by sys/lib/libkern/Makefile.libkern OK pooka@
2010-01-20__assert.c -> kern_assert.cpooka
(I don't fully understand why __assert.c is needed here. maybe it can be removed, but I don't have time to do a full set of mips builds tonight)
2010-01-19Get rid of last "easy" kernel symbols starting with __:pooka
__assert -> kern_assert __sigtimedwait1 -> sigtimedwait1 __wdstart -> wdstart1 The rest are MD and/or shared with userspace, so they will require a little more involvement than what is available for this quick "ride the 5.99.24 bump" action.
2010-01-19Add long long (%lld etc.) support and width (%02x etc.) supporttsutsui
in libsa printf(3). Disabled by default but enabled by -DLIBSA_PRINTF_LONGLONG_SUPPORT and -DLIBSA_PRINTF_WIDTH_SUPPORT. Provided by tnozaki@ for my libsa debugging. Thanks!
2010-01-18Keep arc4_i and arc4_j synchronised after a rekeying. This preventsjoerg
accidentally ending up in a short ARC4 cycle.
2010-01-14Move AMD64's bswap64 implementation from libc to src/common and share itjoerg
with the kernel.
2010-01-13RFC783 says the ErrMsg sent with an ERROR packet needs to bedrochner
NUL-terminated
2009-12-29Don't abuse INSECURE for allowing exec() to load files not owned by uid 0.elad
Adjust references where this has been used.
2009-12-14Build fix for the mips64 merge:uebayasi
- If memset2.c is in ${SRCS}, exclude conflicting memset.c. - If MD byte_swap_8.* is in ${SRCS}, exclude conflicting bswap64.c.
2009-12-14Merge from matt-nb5-mips64matt
2009-12-10Rename L_ADDR to L_PCBskrll
2009-12-01Remove U_PCB as requested by rmind.skrll
Same code before and after.
2009-11-21Redo the previous inverted logic. Sort alphabetically.uebayasi
2009-11-21Don't build quad support code on 64-bit platforms.uebayasi
2009-10-21Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder).snj
2009-10-19Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsenbouyer
for the booring work !
2009-09-22Don't build spcopy for rumpkern. Fixes hp700 build failure pointedpooka
out by nick. XXX: spcopy should be in the main kernel instead of libkern in any case
2009-08-25Uh, move loadfile_aout.c in under the check for ${SA_USE_LOADFILE}he
again, so that it's not unconditionally compiled, fixing the previous.
2009-08-21If we're on mips, don't build exec.c or loadfile_aout.c, since theyhe
both deal with a.out format executables.
2009-08-16Change include of <sys/exec.h> to <sys/exec_aout.h> since these files wantmatt
the a.out stuff.
2009-08-14Move that majority of the 'SRCS+= foo.c' into the main Makefile.libkern.dsl
Any .S files added by the arch/*/Makefile.inc cause the .c file to be excluded. Specific exclusions added using NO_SRCS to match previous files. At least sparc, sparc64, i386, amd64 and vax GENERIC still build. (There is a fubar with the naming of the byte-swap files ...)
2009-08-12Put back random.S. Hi dsl!skrll
2009-08-12Remove some .c files accidentally left on the .S linesdsl
2009-08-12Split the lines that add .c to SRCS from those that add .Sdsl
No changes (apart from the order) intended.
2009-08-12Use stuff from libc/Makefile to auto-remove .c files if a .S has been added.dsl
Use it to dispose of tne .c files that were already only conditionally added.
2009-07-21Move popcount et al to src/common and add popcount32/popcount64.joerg
Requested by rmind@. MD should now override popcount32/popcount64 and provide the aliases as fitting.
2009-07-20Fix little bit, and add a few files.kiyohara
current status is to see following thread. http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
2009-07-10Use a function to add extra data to the vendor area so that data addedroy
remains constant for both DISCOVER and REQUEST messages.
2009-07-10We should request the DHCP parameters we need.roy
2009-06-18Back out the addition of memset.c to the vax libkern, and instead dohe
as tsutsui@ suggested, and include <sys/param.h> in sha2.c instead. On the vax, this causes <machine/macros.h> to be included, and it contains that machine's memset() macro+inline.
2009-06-18Add memset.c, so that the references from sha2.c can be satisfied, andhe
so that the kernel and puffs applications can link again.
2009-05-13Implement snprintb_m(3) to provide multi-line bit/bit-field decode.pgoyette
Discussed on tech-kern.
2009-05-06We should check for potential overflows.roy
ok: martin
2009-04-30Merge nick-hppapmap.skrll
This is a port of the OpenBSD pmap and trap handling code to get us - Performance boost on some/all machines. - Well on the way to PA2.0 (in 32bit mode) support. Several machines probe hardware, but fail sometime after interrupts are enabled. Other things changed / fixed on the branch are - update autoconf to use the OpenBSD code. - com @ dino is very close to being supported. - HPPA_REDZONE has been replaced with a working redzone which is enabled with DIAGNOSTIC. - UPAGES has been halved in size. - power(4) from OpenBSD to fix a few bugs. - updated list of modules from OpenBSD. - initial ports of uturn(4), astro(4) and elroy(4). - update some copyrights (remove advertising clause, etc.) Thanks to mjf for some of the above, testing and listening.
2009-04-11fix sign-compare issuelukem
2009-03-26Make the function declaration the same for the big-endian case ashe
for the little-endian case, and consistent with the libkern.h declaration. Fixes build problem for at least hp700 and evbbarm-eb.
2009-03-25Fix compilation error on 64-bit platforms.tls
2009-03-25Fix build problems caused by crc32 addition to libkern. Also, this makestls
the i386 bootblocks about 2K smaller than they were before we monkeyed with crc32 at all.
2009-03-25Fixes PR kern/41069 and PR kern/41070.darran
Extends the Opencrypto API to allow the destination buffer size to be specified when its not the same size as the input buffer (i.e. for operations like compress and decompress). The crypto_op and crypt_n_op structures gain a u_int dst_len field. The session_op structure gains a comp_alg field to specify a compression algorithm. Moved four ioctls to new ids; CIOCGSESSION, CIOCNGSESSION, CIOCCRYPT, and CIOCNCRYPTM. Added four backward compatible ioctls; OCIOCGSESSION, OCIOCNGSESSION, OCIOCCRYPT, and OCIOCNCRYPTM. Backward compatibility is maintained in ocryptodev.h and ocryptodev.c which implement the original ioctls and set dst_len and comp_alg to 0. Adds user-space access to compression features. Adds software gzip support (CRYPTO_GZIP_COMP). Adds the fast version of crc32 from zlib to libkern. This should be generally useful and provide a place to start normalizing the various crc32 routines in the kernel. The crc32 routine is used in this patch to support GZIP. With input and support from tls@NetBSD.org.
2009-03-23Don't use gcc's __builtin_*() functions #if defined(_STANDALONE)tsutsui
because they could be larger than __OPTIMIZE_SIZE__'ed libsa ones and __builtin_memcpy() on vax rejects NULL (i.e. copying from/to address 0x0). No particular comments on tech-toolchain. Tested on alpha, arc, cobalt, hp300, i386, landisk, macppc, news68k, sgimips, sparc, sparc64, sun3, and vax (on simh).
2009-03-20Allow MD standalone Makefiles overriding MI libsa settingstsutsui
by SA_EXTRADIR variable passed via SAMISCMAKEFLAGS.
2009-03-19Revert previous. MI libsa doesn't provide bcmp().tsutsui
2009-03-19Add a prototype for the bcmp() function as well.he
2009-03-18bzero -> memsetcegger
2009-03-18- remove bcmp(9), bcopy(9), and bzero(9) from libkern since <sys/systm.h> hastsutsui
macro which replace them with mem*() functions in #ifdef _KERNEL as noted in man pages - move declarations of bcopy(3) and bzero(3) into <lib/libsa/stand.h> since they are still in libsa for some MD standalone sources (I guess all bcmp(3) in standalone sources have been replaced with memcmp(3) but they should be replaced with memcmp() anyway)