| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
disabled. Explicitly re-enable some that we want to use, namely:
* memcpy() -> __builtin_memcpy()
* memcmp() -> __builtin_memcmp()
* memset() -> __builtin_memset()
* strcpy() -> __builtin_strcpy()
* strcmp() -> __builtin_strcmp()
* strlen() -> __builtin_strlen()
We might also consider some others for GCC 3.x.
|
|
|
|
|
|
problem on assym.h is sorted out and TRW to get at CACHELINESIZE in
the kernel is determined.
|
|
|
|
|
|
|
|
existance before running the submake. This makes it possible to run a
make build (which runs cleandir before make obj) in a r/o source tree
|
|
bcopy.S is no longer needed
memmove and memcpy were both stacking r0 and unstacking it to keep the return value, so push this down into _memcpy.
rename _memcpy.S to memcpy.S.
memmove.S is now just a placeholder otherwise the make system automagically adds a memmove.c file to libkern.
memmove is just another entry point for memcpy.
|
|
|
|
handling for kernel libraries.
XXX this build method should be replaced by something more sane
|
|
alignment.
|
|
|
|
the program headers in one operation into an internal buffer.
|
|
a non-_STANDALONE environment (e.g. installboot(8)): internalize and
externalize the exec, program, and section headers as necessary.
Reviewed and OK'd by Christos.
|
|
|
|
|
|
each separately and explicitly. BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
|
|
objects.
|
|
Primary goal: explcitly select which ELF format (elf32 or elf64) to
support for a cross tool which uses loadfile().
|
|
the system's byte-order:
- host to {big,little}-endian {16,32}
- {big,little}-endian {16,32} to host
These are not intended to be used in libsa directly, but are rather
intended to be used by host tools which may use libsa routines (such
as loadfile()) which need to use explicit byte-ordering.
|
|
O(log(N)) insertation, deletion, and lookup times. However, unlike most
red-black implemenations, this one does no additional memory allocations.
|
|
Fixes kern/6440 by R. C. Dowdeswell
|
|
|
|
Machine-dependent code can eject the floppy to prompt the next volume in it.
(Or add another method in devsw?)
|
|
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
|
|
|
|
only 16-bit align the region and use loop mode with longwords
to do the bulk of the work.
On the 68020+, fixed an optimization bug where all regions that start
on odd addresses would not be properly longword aligned.
|
|
Mostly identical with libsa/bcopy.c.
|
|
|
|
as discussed on tech-net.
|
|
be converted to <sys/queue.h> macros, _insque()/_remque() would be eliminated
altogether.
|
|
'u_char' instead of 'int' (per the prototype and usage and other scanc
implementations)
|
|
The e_shstrndx field in the ELF header, since we don't load .shstrtab.
The sh_name field in each section header, for the same reason.
The sh_offset field for any section we don't load.
This means the kernel has some chance of knowing what it's being given. It
also means that the behaviour of old kernels with new loaders should be
deterministic (if not terribly useful: they still can't find the symbol
table).
|
|
|
|
ALLOC'ed if (LOAD_SYM|COUNT_SYM), but FREEd if (LOAD_SYM)).
|
|
load those STRTAB sections that are referenced by a SYMTAB that we're loading.
The main advantage of this is that (at least with the binaries output by my
ARM ELF linker) this removes the need to seek backwards through the file, which
is a big win when loading a gzipped kernel.
While we're here, don't allocate space for string tables we don't load.
|
|
|
|
|
|
as explained in the code.
|
|
The MacOS booter needs them.
|
|
|
|
|
|
libsa builds again.
|
|
tested this time. (Slap self repeatedly.)
|