436 Commits

Author SHA1 Message Date
Jennifer Averett
8fa929e60d Added more initialization of FIXME_ucred elements. 2012-07-18 11:43:05 -05:00
Jennifer Averett
e4f2591430 Fixed rtems_bsdnet_makeFdForSocket to work with file system change. 2012-07-18 11:42:04 -05:00
Jennifer Averett
21cc0aa57a Added initilization of pcpu info for cpu0. 2012-07-18 11:40:30 -05:00
Joel Sherrill
19ffee0716 link01: Only include fxp on pc386 2012-07-17 13:09:58 -05:00
Joel Sherrill
9189462908 Makefile: Copied files are now in dedicated subdirectory
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.
2012-07-17 13:08:04 -05:00
Jennifer Averett
e1e0a6a86e Remove debug that got turned on. 2012-07-17 08:58:15 -05:00
Jennifer Averett
325120c875 Fix curthread so it returns a valid value. 2012-07-17 08:20:46 -05:00
Jennifer Averett
9ee8629924 Restructure init and add more detailed initialization. 2012-07-17 08:19:04 -05:00
Jennifer Averett
db280c9613 Add call to uma_startup2 so that booted gets set. 2012-07-17 08:17:55 -05:00
Jennifer Averett
19288d665e Add back in code to set booted. 2012-07-17 08:13:57 -05:00
Jennifer Averett
fbdd6b6ed0 Fix priv_check methods to return passing value. 2012-07-17 08:12:42 -05:00
Joel Sherrill
aa8c37d59c rpcb_prot.h: Remove generated file 2012-07-14 14:05:58 -05:00
Joel Sherrill
a30cd8ca65 Makefile: sparc/sis builds again
+ 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.
2012-07-14 14:02:44 -05:00
Joel Sherrill
08084e4357 .gitignore: Add generated pci_cfgreg.h and legacyvar.h 2012-07-14 13:50:17 -05:00
Joel Sherrill
e45ee8125a Makefile: Use i386 PCI code for all targets until proven otherwise
The i386 PCI code appears to be target independent with the RTEMS
conditionals and support code. Compiled for SuperH.
2012-07-14 13:48:42 -05:00
Joel Sherrill
7566e9dcca .gitignore: Add generated files 2012-07-14 12:27:16 -05:00
Joel Sherrill
e43b452e28 Makefile: Use MIPS generic in_cksum when no target specific implementation
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.
2012-07-14 12:15:57 -05:00
Joel Sherrill
865a290ee4 Makefile: Correct dependencies for parallelism 2012-07-14 11:20:42 -05:00
Joel Sherrill
0d0637ffaf Makefile: Use dummy PIC code on Simple Vectored targets 2012-07-14 10:45:30 -05:00
Joel Sherrill
b3739004bb Add dummy PIC IRQ support for Simple Vectored Architectures
The current implementation assumes that the architecture supports the Programmable
Interrupt Controller interrupt API in RTEMS. Most architectures do not use this
model and provide only the Simple Vectored interrupt API. The SPARC port has an
implementation of the PIC API that builds on the Simple Vectored API.

The code added here is just enough to compile. The hope is that a generic
PIC API wrapper will be implemented on top of the Simple Vectored which will
instantly provide support for all other architectures.

For now, the issues of code portability related to PCI support, in_cksum,
cpufunc.h, linkcmds etc are sufficiently challenging that just ensuring we are
able to compile for all RTEMS supported architectures will let us address many
issues.

In summary, this is just a placeholder which lets the RTEMS LibBSD code compile
on Simple Vectored architectures.
2012-07-14 10:41:02 -05:00
Joel Sherrill
5cf6031a15 rtems-bsd-nexus.c: Always include rtems/irq-extension.h 2012-07-14 10:40:40 -05:00
Joel Sherrill
8c9c98db11 Makefile: install all CPU specific contents correctly 2012-07-13 13:03:10 -05:00
Joel Sherrill
b0b2e0e2d6 Add stub cpu_func.h files for all other RTEMS targets 2012-07-13 11:40:48 -05:00
Joel Sherrill
a8030171cc Add ARM, PowerPC, and SPARC64 cpufunc.h files from FreeBSD 2012-07-13 11:38:40 -05:00
Kevin Polulak
8fe603a947 Readd MIPS cpu specific .h files
At least 80 files in this tree have an advertisting clause. 56 in
the old TCP/IP stack did. We will not have a functional stack unless
we accept this unfortunate situation.
2012-07-13 11:29:43 -05:00
Joel Sherrill
3457ff633c Makefile: Clean up build and do not use install point 2012-07-13 11:27:44 -05:00
Joel Sherrill
e78d6ab1c3 MIPS: Remove code with advertising clause
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.
2012-07-13 10:40:11 -05:00
Joel Sherrill
14b4d25d8e Makefile: Do not fail if FreeBSD CPU directory does not exist. 2012-07-13 08:58:33 -05:00
Kevin Polulak
8db44c6776 Add MIPS cpu specific .h files 2012-07-13 08:57:28 -05:00
Joel Sherrill
1543249d3e port_before.h: Add _ALIGNBYTES and enable getservent.c 2012-07-11 17:54:57 -05:00
Joel Sherrill
939b12b52e Makefile: Enable most files to build 2012-07-11 17:38:09 -05:00
Joel Sherrill
2f14df7190 port_before.h: Ensure enough BSD types are defined 2012-07-11 17:37:54 -05:00
Joel Sherrill
a98a274dbe gethostbydns.c: dprintf conflicts with POSIX - rename to DPRINTF
This is done by the from-freebsd.sh script.
2012-07-11 17:36:34 -05:00
Joel Sherrill
cac1c867a4 rpcb_prot.h: Add generated file 2012-07-11 17:36:15 -05:00
Joel Sherrill
822aae2c91 arpa/nameser*.h: Reneable BIND_4_COMPAT and include FreeBSD endian.h 2012-07-11 17:35:10 -05:00
Joel Sherrill
479f4eb6d9 Add _XXX_ENDIAN constants 2012-07-11 17:33:09 -05:00
Joel Sherrill
028aaafa79 freebsd-userspace: All files in old libnetworking/libc now present
But they don't all compile. Multiple issues left to address.
2012-07-11 16:01:37 -05:00
Jennifer Averett
6d78dca3a1 Makefile: Fix clean and install of user space 2012-07-11 14:39:41 -05:00
Joel Sherrill
e25eda8a0f Add RTEMS Network Setup Helper 2012-07-11 14:34:10 -05:00
Joel Sherrill
079c3f27ea userspace: Add install support 2012-07-11 14:31:26 -05:00
Joel Sherrill
4f44b24fae link01: Initialize interfaces 2012-07-11 14:31:09 -05:00
Joel Sherrill
514a0e5841 Build freebsd-userspace 2012-07-11 14:25:18 -05:00
Joel Sherrill
1b13f6981a FreeBSD user space support - First additions
This requires a full checkout of the FreeBSD 8.2 source code.
The checkout we have been using is missing at least the libc,
include, and sys directories.  The script to copy files in is
crude.

This eventually needs to separate the manually written .h files
out and add the RTEMS specific network initialization support
with functionality to program the IP addresses and gateways as
the old stack did.
2012-07-11 13:23:45 -05:00
Kevin Polulak
c90c2126ac Clarified information in libbsd.txt. 2012-07-11 13:11:04 -05:00
Kevin Polulak
9fc8b41074 Removed in_cksum_arm.S file. 2012-07-11 13:10:31 -05:00
Jennifer Averett
59f69ea3cd Some cleanup to allow build for multiple architectures. 2012-07-11 12:48:58 -05:00
Jennifer Averett
2f50f0a7a9 Added nexus_setup_intr support and did some cleanup. 2012-07-11 08:49:13 -05:00
Joel Sherrill
237c763486 Makefile: Do not install contrib .h files until proven needed
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.
2012-07-10 11:58:29 -05:00
Joel Sherrill
842c238a37 Makefile: updated to probably install architecture specific .h files 2012-07-09 17:21:36 -05:00
Joel Sherrill
9c99de7d0e link01: Add static_hints and make nic-sysinit.h generic 2012-07-09 14:34:08 -05:00