138 Commits

Author SHA1 Message Date
Sebastian Huber
9a3fa151b2 Use unmodified FreeBSD versions for port_*.h 2013-10-31 13:18:49 +01:00
Sebastian Huber
cdf6024953 Add MAC support functions
WARNING: They are not thread-safe!  This is a known FreeBSD issue.
2013-10-31 13:18:49 +01:00
Sebastian Huber
ffcd542fe2 Move TIMEOUT(9) and ZONE(9) initialization
Delete most of virtual memory support.
2013-10-31 13:18:48 +01:00
Sebastian Huber
a9be4b0481 Move shell items to separate file 2013-10-31 13:18:48 +01:00
Sebastian Huber
d01564c473 Move program control to thread structure 2013-10-31 13:18:48 +01:00
Sebastian Huber
9d9bfaff8d Use send/recv functions from FreeBSD
Use recvfrom(), recvmsg(), sendto() and sendmsg() from FreeBSD.
2013-10-31 13:18:48 +01:00
Sebastian Huber
caf8eded60 Import socket() implementation from FreeBSD
Add new test syscalls01.
2013-10-31 13:18:47 +01:00
Sebastian Huber
69b29a0c0d Disable user credentials and use default values 2013-10-31 13:18:47 +01:00
Sebastian Huber
cc5f4b2705 Use default PID value for all process identifiers 2013-10-31 13:18:46 +01:00
Sebastian Huber
c9db0f5ecb Use RTEMS API for file handling 2013-10-31 13:18:46 +01:00
Sebastian Huber
8eb42e8884 Avoid references to kern_descrip.c
Use the standard RTEMS file descriptors instead.
2013-10-31 13:18:46 +01:00
Sebastian Huber
032b3b7940 Use Newlib provided <sys/fcntl.h> 2013-10-31 13:18:46 +01:00
Sebastian Huber
ebabe9b195 Import <sys/sysproto.h> from FreeBSD 2013-10-31 13:18:46 +01:00
Sebastian Huber
cd75897ea8 Import <security/audit/audit.h> from FreeBSD 2013-10-31 13:18:46 +01:00
Sebastian Huber
ed2ce44cd9 Makefile: Generate map file 2013-10-31 13:18:45 +01:00
Sebastian Huber
ab415f95a9 Use extension to attach a struct thread to threads
Add test thread01.
2013-10-10 09:09:19 +02:00
Sebastian Huber
58c4fda800 Do not run interactive netshell01 test 2013-10-10 09:09:19 +02:00
Sebastian Huber
e599318e91 Update files to match FreeBSD layout
Add compatibility with Newlib header files.  Some FreeBSD header files
are mapped by the translation script:

     o rtems/bsd/sys/_types.h
     o rtems/bsd/sys/errno.h
     o rtems/bsd/sys/lock.h
     o rtems/bsd/sys/param.h
     o rtems/bsd/sys/resource.h
     o rtems/bsd/sys/time.h
     o rtems/bsd/sys/timespec.h
     o rtems/bsd/sys/types.h
     o rtems/bsd/sys/unistd.h

It is now possible to include <sys/socket.h> directly for example.

Generate one Makefile which builds everything including tests.
2013-10-10 09:08:23 +02:00
Sebastian Huber
937461c950 Avoid per-CPU features 2013-09-20 16:18:23 +02:00
Sebastian Huber
a71a32535f Use empty <sys/ucontext.h> 2013-09-20 16:18:23 +02:00
Jennifer Averett
0bde19eee0 Switch to a version of select that is closer to bsd's version. 2012-11-26 09:47:09 -06:00
Jennifer Averett
af4b6f2ac8 Added mman.h
This will be needed when the ifconfig command is added.
2012-09-07 11:41:09 -05:00
Jennifer Averett
c6cbb24186 Added contrib/pf
This will be needed for adding the ifconfig command.
2012-09-07 11:38:35 -05:00
Jennifer Averett
6d7f48849e Added netatalk files
This is part of a larger patch where network command structure is being
ported.  It was easier to move these files in than to carve it out of
the command code.
2012-09-06 09:17:47 -05:00
Jennifer Averett
4d0d5ae00c freebsd-to-rtems.py: Removed cdefs.h, signal.h, and signalvar.h
These are now included as part of the tools.
2012-09-06 09:06:38 -05:00
Joel Sherrill
b7923cd15b freebsd-to-rtems.py: Multiple fixes and supporting modifications
+ SED_PATTERN was broken when IPV6 enabled. The sed produced a
  zero length rtems-bsd-config.h.
+ "make install" without all did not produce GENERATED_FILES
+ Install .h files in contrib/altq. Needed by new libc commands
  being added shortly.
+ Do not copy <sys/uio.h> and <sys/_iovec.h> from FreeBSD. They
  are provided by RTEMS now.
+ net/if_stf.c appears to be strictly IPV6 functionality. Make building
  it conditional on IPV6.
2012-09-05 12:58:09 -05:00
Joel Sherrill
f333955d79 Build System: Add option to disable IPV6 in orderly fashion
If you define DISABLE_IPV6=yes to the config.inc, then the
rtems-bsd-config.h file will be modified accordingly and
the IPV6 kernel sources will not be built. This is easier
to manage and more correct than having a patch to do the same.
2012-08-31 18:50:17 -05:00
Jennifer Averett
2c3d8b981b Added rtems specific page tracking methods for uma page allocation. 2012-07-20 14:17:05 -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
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
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
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
8c9c98db11 Makefile: install all CPU specific contents correctly 2012-07-13 13:03:10 -05:00
Joel Sherrill
a8030171cc Add ARM, PowerPC, and SPARC64 cpufunc.h files from FreeBSD 2012-07-13 11:38:40 -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
Jennifer Averett
6d78dca3a1 Makefile: Fix clean and install of user space 2012-07-11 14:39:41 -05:00
Joel Sherrill
514a0e5841 Build freebsd-userspace 2012-07-11 14:25:18 -05:00
Kevin Polulak
9fc8b41074 Removed in_cksum_arm.S file. 2012-07-11 13:10:31 -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
dbda80875a Put CPU specific bus_space routines into separate files
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.
2012-07-06 10:57:12 -05:00
Jennifer Averett
d972692540 Add a couple of isa header files. 2012-07-02 09:54:00 -05:00
Jennifer Averett
348f0a00ee Added missing header file. 2012-06-29 15:06:34 -05:00
Jennifer Averett
36ebd68c02 Added legacy in order to get pcib to work correctly and resoleved fxp attach issue.
The fxp attach has a resource allocation issue still to address, but
should work as soon as that is debugged.
2012-06-29 12:42:00 -05:00
Jennifer Averett
58ea5ee27a Added pcib. 2012-06-11 09:42:08 -05:00