Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | tiny tweak to asm. prefer memcpy and memmove, with bcopy wrapper | 2014-01-09 | 2 | -29/+28 | ||
| | | | | ok guenther | |||||
* | add fls/flsl functions to find the last bit set in a value | 2013-07-11 | 3 | -1/+95 | ||
| | | | | | from FreeBSD ok mikeb@ haesbaert@ deraadt@ | |||||
* | VAX ELF kernel bits. | 2013-07-05 | 5 | -79/+79 | ||
| | ||||||
* | m68k kernel memcpy/memmove/bcopy implementation in libkern, remove ovbcopy, fix for larger than 128k size copies. Parts from deraadt@, ok (and off-by-one fix) miod@ | 2013-06-17 | 3 | -3/+134 | ||
| | ||||||
* | Fast memmove() implementation for PowerPC, from NetBSD via martin@; with | 2013-06-15 | 3 | -1/+170 | ||
| | | | | bcopy() and memcpy() wrappers. | |||||
* | Fix evil typo causing the wrong pointer to be returned for < 32 bytes | 2013-06-15 | 1 | -2/+2 | ||
| | | | | memcpy() or memmove(). | |||||
* | Preserve %o5 around Lbcopy_doubles; prevents the return value from memcpy() | 2013-06-15 | 1 | -4/+5 | ||
| | | | | | and memmove() to be incorrect for copies of 32 bytes or more, when the source and destination addresses are nicely aligned. | |||||
* | Make bcopy() involve memmove(), not memcpy(). | 2013-06-15 | 2 | -4/+3 | ||
| | | | | Do not bogusly return NULL if dst == src (spotted by tedu@) | |||||
* | Correctly handle a length of zero in memcpy(). | 2013-06-15 | 1 | -7/+14 | ||
| | | | | Return the original destination pointer in memcpy() and memmove(). | |||||
* | Don't return garbage in memcpy() but the original destination pointer. | 2013-06-15 | 1 | -0/+1 | ||
| | ||||||
* | give bcopy() the ovbcopy() semantics | 2013-06-15 | 1 | -1/+2 | ||
| | ||||||
* | regen | 2013-06-14 | 2 | -2/+0 | ||
| | ||||||
* | ovbcopy begone | 2013-06-14 | 2 | -4/+2 | ||
| | ||||||
* | regen | 2013-06-14 | 2 | -0/+4 | ||
| | ||||||
* | Fix memcpy/memmove return value. | 2013-06-14 | 2 | -2/+6 | ||
| | ||||||
* | new integral bcopy/memmove/memcpy, pulled out of sparc locore | 2013-06-13 | 3 | -3/+421 | ||
| | | | | tested by beck | |||||
* | syncronize "look in other file" messages | 2013-06-13 | 4 | -4/+4 | ||
| | ||||||
* | merged bcopy/memmove/memcpy | 2013-06-13 | 3 | -129/+142 | ||
| | | | | tested by bcallah, proofed by jasper, ok tedu | |||||
* | rework the memcpy family to all use one function body and implement | 2013-06-13 | 3 | -272/+248 | ||
| | | | | desired semantics. ok deraadt | |||||
* | Remove pointless instruction in the memcpy path that snuck in with the | 2013-06-13 | 1 | -2/+0 | ||
| | | | | | | previous commit. ok deraadt@ | |||||
* | take libc bcopy, gut the #ifdefs for other modes, and place it here. | 2013-06-13 | 1 | -0/+116 | ||
| | | | | | Now deficient architectures can use this if they need to. conf/files already tries to pull this in (pointed out by mlarkin) | |||||
* | ovbcopy begone | 2013-06-13 | 1 | -4/+1 | ||
| | ||||||
* | same bcopy/memmove/memcpy methodology for vax. | 2013-06-13 | 3 | -158/+19 | ||
| | | | | checked over by mlarkin | |||||
* | merge bcopy/memmove/memcpy into one file, with jumps so that it is more | 2013-06-13 | 3 | -3/+113 | ||
| | | | | | | likely to be in the cache (like how the explanation is split between multiple commits?) tested by various | |||||
* | merge memcpy/memmove/bcopy into one file, with sub-jumps. | 2013-06-13 | 3 | -3/+271 | ||
| | | | | ok .... I guess noone, because it is summer | |||||
* | merge bcopy/memcpy/memmove into one function. | 2013-06-13 | 3 | -104/+89 | ||
| | | | | ok mlarkin tedu | |||||
* | From now on, the MI libkern memcpy should not do overlap handling. | 2013-06-12 | 1 | -16/+4 | ||
| | ||||||
* | regen | 2013-06-11 | 1 | -45/+45 | ||
| | ||||||
* | Optimize memcpy(9) by always doing a forward copy; it should never be used | 2013-06-11 | 1 | -9/+9 | ||
| | | | | | | | | for overlapping copies. Attempt to be instruction cache friendly by turning things around and make memcpy(9) use the forward copy branch of memmove(9), and implement bcopy(9) by swapping its arguments and dropping into memmove(9). Same change as the one just made to for hppa. | |||||
* | remove ovbcopy support | 2013-06-11 | 14 | -20/+0 | ||
| | | | | ok kettenis | |||||
* | regen | 2013-06-11 | 1 | -43/+43 | ||
| | ||||||
* | Optimize memcpy(9) by always doing a forward copy; it should never be used | 2013-06-11 | 1 | -9/+9 | ||
| | | | | | | | | for overlapping copies. Attempt to be instruction cache friendly by turning things around and make memcpy(9) use the forward copy branch of memmove(9), and implement bcopy(9) by swapping its arguments and dropping into memmove(9). ok deraadt@ | |||||
* | portable memmove(), for if an architecture lacks a custom optimized | 2013-06-11 | 1 | -0/+53 | ||
| | | | | version. | |||||
* | Add CTASSERT macro, for compile time assertions | 2013-06-08 | 1 | -1/+4 | ||
| | | | | ok kettenis@ | |||||
* | Add {,u}{div,mod}si3 to libkern and to the kernel as well. | 2013-06-07 | 4 | -0/+195 | ||
| | ||||||
* | fix an oft copied typo that i'm tired of looking at | 2013-06-03 | 39 | -39/+39 | ||
| | ||||||
* | Fix kernel profiling on MP systems by using per-CPU buffers and teach | 2013-03-12 | 1 | -8/+16 | ||
| | | | | | | | | | | | kgmon(8) to deal with them, this time without public header changes. Previously various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok deraadt@, mikeb@, haesbaert@ | |||||
* | Back out per-CPU kernel profiling, it shouldn't modify a public header | 2013-02-12 | 1 | -16/+8 | ||
| | | | | at this moment. | |||||
* | Fix kernel profiling on MP systems by using per-CPU buffer. Previously | 2013-02-11 | 1 | -8/+16 | ||
| | | | | | | | | | various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok mikeb@, haesbaert@ | |||||
* | Kernel bits for m68k/ELF, mostly from NetBSD. In addition, the `pmod' symbel | 2013-02-02 | 13 | -163/+163 | ||
| | | | | in fpsp has to be renamed due to a clash with other parts of the kernel. | |||||
* | replace __attribute__((unused)) with __used, which will be defined to the | 2013-01-16 | 1 | -6/+2 | ||
| | | | | | | | | | right thing for whichever compiler we use. found while trying to build a profiled kernel on sparc64. solution found by guenther and refined by miod and kettenis. ok guenther@ kettenis@ | |||||
* | Switch m88k ports to ELF. | 2013-01-05 | 2 | -200/+200 | ||
| | ||||||
* | Remove excessive sys/cdefs.h inclusion | 2012-12-05 | 3 | -7/+4 | ||
| | | | | ok guenther millert kettenis | |||||
* | Add strnlen() to libkern. | 2012-04-26 | 2 | -1/+38 | ||
| | | | | ok deraadt | |||||
* | Remove assembly version of strlen from i386 and amd64, where it's | 2012-01-17 | 2 | -38/+0 | ||
| | | | | | | | up to 3 times slower than the C code most of the time. This was brought up by DragonflyBSD guys initially. ok deraadt, guenther. miod will not miss it. | |||||
* | Regen. | 2011-11-27 | 2 | -68/+68 | ||
| | ||||||
* | Switch to proper PA-RISC 2.0 mnemonics. Works around a bug in the assembler | 2011-11-27 | 1 | -22/+22 | ||
| | | | | getting rid of the (hopefully) last bug in this code. | |||||
* | Regen. | 2011-11-27 | 1 | -3/+3 | ||
| | ||||||
* | Fix return value of memcpy. | 2011-11-27 | 1 | -4/+3 | ||
| | ||||||
* | Oops, jsing@ changed spcopy.S without realizing that that file is generated | 2011-11-27 | 1 | -7/+3 | ||
| | | | | from bcopy.m4. Fix that. |