summaryrefslogtreecommitdiff
path: root/sys/lib
AgeCommit message (Collapse)Author
2008-05-14These files are not used (and some of them would not compile anyway).Miod Vallat
2008-05-08KNFJoel Sing
2008-05-08Fix alignment - sizeof(long) does not always match the address size of theJoel Sing
ELF image being loaded. ok miod@
2008-04-20Catch up with dismantled libkern.Mark Kettenis
2008-04-20Remove the random() function from locore.s (which used sparcv7 instructions,Mark Kettenis
including mulscc to do multiplications) and switch to the generic random.c code.
2008-04-19Change ELF loader to use the LMA as the load address for theTobias Weingartner
various segments. Hopefully this will help remove various hacks in the boot loader in the future. This should have no effect on most architectures (as we tend to have LMA == VMA). ok drahn@, soft ok's various others.
2008-03-31Correctly load ZMAGIC a.out binaries.Miod Vallat
2008-03-31Fix format strings in a.out loader.Miod Vallat
2008-03-30Let this compile with BOOT_AOUT defined.Miod Vallat
2008-02-25delete prototypes for functions which the kernel does not haveTheo de Raadt
from brynet@gmail.com
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2008-01-06repair build of boot code where it uses an undefind __ashldi3 on some archsOtto Moerbeek
boot code uses 32-bit blknos anyway
2007-12-29Override SoftFloat's countLeadingZeros32() with a faster, ff1-based, versionMiod Vallat
on m88k.
2007-12-29Unifdef NO_IEEE in the libkern softfloat code, and put an appropriate ruleMiod Vallat
in files.alpha to compensate for NO_IEEE kernels. This will allow the softfloat code to be used by other platforms than alpha.
2007-11-28place a comment as to why these are otherwise emptyTheo de Raadt
2007-11-27mips64 also needs memcpy.S, otherwise memcpy.c gets built, which conflictsJoel Sing
with bcopy.S ok miod@
2007-11-26mips64 needs at least these to build; spotted by jsingTheo de Raadt
2007-11-25libkern, begone. Move to a new mechanism where config(8)'s "file"Theo de Raadt
directive can select between MI and MD versions of these files. At the same time, adjust the boot programs to pick exactly what they need, instead of the 7 or 8 mechanisms previously used. There will be some fallout from this, but testing it all by myself is a ridiculously slow process; it will be finished in-tree. Various developers were very nice and avoided making fun of me when I was gibbering in the corner..
2007-11-24SCCS junk, bit by bitTheo de Raadt
2007-11-24junk RCSTheo de Raadt
2007-11-24junk SCCSTheo de Raadt
2007-11-24more junk SCCSTheo de Raadt
2007-11-24junk SCCSTheo de Raadt
2007-11-24delete unused junk RCS idsTheo de Raadt
2007-11-24ansi CTheo de Raadt
2007-10-13Uncomment rule to build bcopy.S, and use that as our bcopy(9) implementation.Mark Kettenis
2007-10-13Make this actually work by using the right register numbers. In the conversionMark Kettenis
from hppa the fact that t1-t4 actually number down from r22-r19 got somehow lost.
2007-09-10Make function pointer calls look all alike; from Holger Mikolon.Miod Vallat
No change in generated code.
2007-06-26Fix the description of loadfile() semantics in comment (and kill "andTom Cosgrove
and" at the same time).
2007-05-30Pull out the ELF loadfile pieces from the standalone libraries, so thatTom Cosgrove
both 32- and 64-bit versions can be created (previously only one or the other could be built for a given boot loader). Use this to allow the i386 and amd64 boot blocks to boot both ELF32 and ELF64 kernels (i.e. amd64 boot blocks can now load i386 kernels, and vice versa). Obviously the system must support LONG mode in order to successfully run the amd64 kernel once it is loaded. Advice and discussions from/with dale@ (going back three years). Much testing nick@ and todd@; thanks.
2007-05-25"boundries" -> "boundaries" in various comments. Started by Diego Casati.Kenneth R Westerback
2007-05-14move hppa to __HAVE_CPUINFOMartin Reindl
input from miod@, ok kettenis@
2007-05-04more locc() diesTheo de Raadt
2007-05-04locc() is dead, spotted by miodTheo de Raadt
2007-05-04move bcd tables to the only place that uses them (the unused mcd driver);Theo de Raadt
ok miod
2007-05-04remove strcpy and strcat from the kernel; they are dead and unused code.Reyk Floeter
(OpenBSD does not use strcat/strcpy in the kernel, if people do it in external modules they should update their code) ok deraadt@
2007-05-03some shorter code is better codeTheo de Raadt
2007-03-16Re-initialise f_seekp to 0 on a successful read_inode() return.Marc Aurele La France
Fixes a problem that prevented the booting of a kernel that, to be found, needs more than one block per directory iin its path to be read. ok miod@, deraadt@
2007-01-04Revert 1.11 and load .shstrtab, as it is currently needed for /dev/ksymsMiod Vallat
proper operation.
2006-12-30do not load unneeded stringtab sections; avoids backward seeking; from ↵Michael Shalayeff
netbsd; tested by miod@ and martin@; deraadt@ ok
2006-11-29make it compile w/ debug defined; miod@ okMichael Shalayeff
2006-11-17Move m88k memory copy and fill functions to libkern. The copy functions willMiod Vallat
no longer share the same code, but will be instead be duplicated from the same source, so that bcopy() and memcpy() do not need to check for overlap, and memcpy() and memmove() are shorter.
2006-11-09typoTheo de Raadt
2006-10-11use SEEK_SET; chl@tuxfamily.orgTheo de Raadt
2006-10-06import supah pieces from netbsdMichael Shalayeff
2006-09-18Import a slightly stripped down strtoll(3) from stdlibMarco Pfatschbacher
into libsa as it is needed for boot(8) > 4G support. With help from mickey@ i386 and amd64 tests by me, alpha test by mickey@ OK mickey@, miod@, deraadt@
2006-09-18Add a hand rolled 64bit hex printf that can be used outside ofMarco Pfatschbacher
LIBSA_LONGLONG_PRINTF which requires 64bit math support. With help from mickey@ Tested on i386, amd64 and on alpha by mickey@ OK mickey@, miod@, deraadt@
2006-07-20adler32_combine() is not used by anything AND requires qdivrem so ifdef it ↵Michael Shalayeff
out; millert@ deraadt@ ok
2006-02-06typos from alexey dobriyan;Jason McIntyre
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable