Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-07-16 | zap trailing newlines; "go for it" deraadt | Okan Demirmen | |
2014-07-13 | KASSERTMSG(9): New kernel assertion with message | Masao Uebayashi | |
KASSERT() is annoying as it only prints the expression as a string. If you (developers) want to know a little more information, you have to do: #ifdef DIAGNOSTIC if (bad) panic(...); #endif KASSERTMSG() replaces it into a single line: KASSERTMSG(!bad, ...); Taken from NetBSD. (There is a concern that KASSERT() messages are too long; consume more memory, and not friendly for small monitors. This have to be considered & revisited later.) "Like" from henning@ Man page review & advices from jmc@ and schwarze@ | |||
2014-07-13 | obvious conversion to mallocarray() | Theo de Raadt | |
2014-07-13 | Stop using old n_long and n_short types. | Martin Pieuchot | |
2014-07-13 | move putchar() into libsa | Jasper Lievisse Adriaanse | |
"sure" miod@ | |||
2014-07-12 | move getchar() into libsa where applicable | Jasper Lievisse Adriaanse | |
ok miod@ | |||
2014-07-12 | guenther (who also should have been credited in previous free size commits) | Ted Unangst | |
noticed that i missed committing one file. | |||
2014-07-01 | Make normalizeRoundAndPackFloat{32,64} non-static; they will be used outside | Miod Vallat | |
of softfloat.c shortly. | |||
2014-06-21 | Protect explicit_bzero() from link-time optimization | Matthew Dempsky | |
Modern compiler toolchains are capable of optimizing even across translation unit boundaries, so simply moving the memory clearing into a separate function is not guaranteed to clear memory. To avoid this, we take advantage of ELF weak symbol semantics, and insert a call to an empty, weakly named function. The semantics of calling this function aren't determinable until load time, so the compiler and linker need to keep the memset() call. There are still ways a toolchain might defeat this trick (e.g., optimistically expecting the weak symbol to not be overloaded, and only calling memset() if it is; promoting weak symbols to strong symbols at link-time when emitting a static binary because they won't be interposed; implementing load-time optimizations). But at least for the foreseeable future, these seem unlikely. ok deraadt | |||
2014-06-10 | Rearrange the inequality. | Brad Smith | |
Pointed out by LLVM. tftp.c:331:17: error: comparison of unsigned expression < 0 is always false From NetBSD ok miod@ | |||
2014-06-10 | mop up #ifdef _KERNEL goo; ok miod | Theo de Raadt | |
2014-05-21 | Typo in comment noticed during some recent hibernate debugging. No code | Mike Larkin | |
change. | |||
2014-04-29 | Fix typo: d_addrt -> daddr_t | David Coppa | |
ok bmercer@ | |||
2014-04-16 | Add ufs2 support and get one step closer to making ffs2 bootable. This work ↵ | Brandon Mercer | |
was done by Pedro Martelletto for bitrig. One small tweak to make it buildable with -Werror. "Please commit" miod@ | |||
2014-03-28 | Fix alignment of tftp structure by changing the 'header' member's type | Philip Guenther | |
to a struct with the necessary alignment. analysis and ok kettenis@ | |||
2014-03-18 | Retire hp300, mvme68k and mvme88k ports. These ports have no users, keeping | Miod Vallat | |
this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish. | |||
2014-02-25 | Do not actually write to the area spanned by the PT_OPENBSD_RANDOMIZE if | Miod Vallat | |
LOAD_DATA is not set in flags; allows a two-pass kernel load using COUNT_KERNEL and then LOAD_KERNEL to work; similar to sparc loadfile_sparc.c 1.3. | |||
2014-01-19 | Initialize ci_randseed better using arc4random() + a trick. Remove the | Theo de Raadt | |
libkern srandom() API since it is not suitable for this use. ok kettenis miod | |||
2014-01-09 | tiny tweak to asm. prefer memcpy and memmove, with bcopy wrapper | Ted Unangst | |
ok guenther | |||
2013-12-28 | Try to load entropy data from disk:/etc/random.seed, and additionally | Theo de Raadt | |
use a MD-supplied random function. Then, insert this into the ELF openbsd.randomdata of the kernel, so that it has entropy right from the start. Some help from jsing for the softraid aspects. Also tested by phessler | |||
2013-11-12 | avoid math on void * pointers | Theo de Raadt | |
(a few years ago, people went far too void * happy, it was like a drug or something) | |||
2013-10-17 | more a.out/ecoff removal; ok phessler | Theo de Raadt | |
2013-07-11 | add fls/flsl functions to find the last bit set in a value | Jonathan Gray | |
from FreeBSD ok mikeb@ haesbaert@ deraadt@ | |||
2013-07-05 | VAX ELF kernel bits. | Miod Vallat | |
2013-06-17 | m68k kernel memcpy/memmove/bcopy implementation in libkern, remove ovbcopy, ↵ | Janne Johansson | |
fix for larger than 128k size copies. Parts from deraadt@, ok (and off-by-one fix) miod@ | |||
2013-06-15 | Fast memmove() implementation for PowerPC, from NetBSD via martin@; with | Miod Vallat | |
bcopy() and memcpy() wrappers. | |||
2013-06-15 | Fix evil typo causing the wrong pointer to be returned for < 32 bytes | Miod Vallat | |
memcpy() or memmove(). | |||
2013-06-15 | Preserve %o5 around Lbcopy_doubles; prevents the return value from memcpy() | Miod Vallat | |
and memmove() to be incorrect for copies of 32 bytes or more, when the source and destination addresses are nicely aligned. | |||
2013-06-15 | Make bcopy() involve memmove(), not memcpy(). | Miod Vallat | |
Do not bogusly return NULL if dst == src (spotted by tedu@) | |||
2013-06-15 | Correctly handle a length of zero in memcpy(). | Miod Vallat | |
Return the original destination pointer in memcpy() and memmove(). | |||
2013-06-15 | Don't return garbage in memcpy() but the original destination pointer. | Miod Vallat | |
2013-06-15 | give bcopy() the ovbcopy() semantics | Miod Vallat | |
2013-06-14 | regen | Mark Kettenis | |
2013-06-14 | ovbcopy begone | Mark Kettenis | |
2013-06-14 | regen | Mark Kettenis | |
2013-06-14 | Fix memcpy/memmove return value. | Mark Kettenis | |
2013-06-14 | regen | Mark Kettenis | |
2013-06-13 | new integral bcopy/memmove/memcpy, pulled out of sparc locore | Theo de Raadt | |
tested by beck | |||
2013-06-13 | syncronize "look in other file" messages | Theo de Raadt | |
2013-06-13 | merged bcopy/memmove/memcpy | Theo de Raadt | |
tested by bcallah, proofed by jasper, ok tedu | |||
2013-06-13 | rework the memcpy family to all use one function body and implement | Ted Unangst | |
desired semantics. ok deraadt | |||
2013-06-13 | Remove pointless instruction in the memcpy path that snuck in with the | Mark Kettenis | |
previous commit. ok deraadt@ | |||
2013-06-13 | take libc bcopy, gut the #ifdefs for other modes, and place it here. | Theo de Raadt | |
Now deficient architectures can use this if they need to. conf/files already tries to pull this in (pointed out by mlarkin) | |||
2013-06-13 | ovbcopy begone | Theo de Raadt | |
2013-06-13 | same bcopy/memmove/memcpy methodology for vax. | Theo de Raadt | |
checked over by mlarkin | |||
2013-06-13 | merge bcopy/memmove/memcpy into one file, with jumps so that it is more | Theo de Raadt | |
likely to be in the cache (like how the explanation is split between multiple commits?) tested by various | |||
2013-06-13 | merge memcpy/memmove/bcopy into one file, with sub-jumps. | Theo de Raadt | |
ok .... I guess noone, because it is summer | |||
2013-06-13 | merge bcopy/memcpy/memmove into one function. | Theo de Raadt | |
ok mlarkin tedu | |||
2013-06-12 | From now on, the MI libkern memcpy should not do overlap handling. | Theo de Raadt | |
2013-06-11 | regen | Mark Kettenis | |