Each target has the option of reusing a file from another target.
To be able to get pieces from different architectures cleanly,
files are copied by the Makefile to a central directory named "copied".
This makes them easier to remove and keeps the source tree clean.
+ sparc did not really have a unique in_cksum.c and Makefile
needed to be adjusted to reflect this
+ some destination directories for copied files did not exist.
make the destination directory before copying.
This is really not a great thing to do as it messes with the source
tree but it works for now. It would be better to make a special
place to put generated source and integrate that into the build system.
The MIPS in_cksum.c method supports big and little endian targets. This
does not include any inline assembly and should be reasonable for most
targets.
At this point, we are unsure what actual functionality will be
required for a functional MIPS port so just provide a stub.
This lets the build complete and avoids the code with the
advertising clause.
They were not installed in the correct subdirectory for the
way they were included in the kernel source anyway. If they
are needed at the user level, then we can re-address it then.
The code in rtemsbsd/freebsd/machine/bus.h assumed that all bus space
accesses were through memory in a simple fashion. The i386 has a true
distinction between I/O and memory space which must be accounted for.
This may not be the eventual structure of this code but we must
have different bus space accessors for different hardware configurations.
And in many, if not most, cases we will want these to be inlined for
performance.
In this file the copyright information was wrong. It claimed to be
copyrighted by embedded brains GmbH, but this is not the case. It seems
to be a partial copy from FreeBSD "kern/kern_prot.c" with format
changes.