252 Commits

Author SHA1 Message Date
Sebastian Huber
0c9f27ba24 Use kqueue() and kevent() from FreeBSD 2013-10-31 13:18:52 +01:00
Sebastian Huber
bae343a308 Use compile-time constant for vm_guest 2013-10-31 13:18:52 +01:00
Sebastian Huber
ea87228a26 TASKQUEUE(9): Use FreeBSD implementation 2013-10-31 13:18:52 +01:00
Sebastian Huber
08264c8b21 Use poll() from FreeBSD 2013-10-31 13:18:52 +01:00
Sebastian Huber
3e2938873d ZONE(9): Add and use red-black tree chunk alloc 2013-10-31 13:18:52 +01:00
Sebastian Huber
4adeb59b18 rwlock01: New test 2013-10-31 13:18:52 +01:00
Sebastian Huber
6ca6aa893b Delete kern_proc.c and kern_resource.c 2013-10-31 13:18:51 +01:00
Sebastian Huber
5d288bc6ee Use compile-time constants for exactly one CPU 2013-10-31 13:18:50 +01:00
Sebastian Huber
87fdc14286 Use RTEMS provides zlib 2013-10-31 13:18:50 +01:00
Sebastian Huber
0967858024 sleep01: New test 2013-10-31 13:18:50 +01:00
Sebastian Huber
24732b6de5 Rename file to reflect FreeBSD origin 2013-10-31 13:18:50 +01:00
Sebastian Huber
616f6000b6 Map <sys/md5.h> to RTEMS <md5.h> 2013-10-31 13:18:50 +01:00
Sebastian Huber
1f6caf381c commands01: New test 2013-10-31 13:18:49 +01:00
Sebastian Huber
c14bb23117 IFCONFIG(8): Disable IEEE80211 support
This module depends on a XML parser and mmap().
2013-10-31 13:18:49 +01:00
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