126 Commits

Author SHA1 Message Date
Sebastian Huber
f3b2913422 Move core system initialization references 2013-10-10 09:09:19 +02:00
Sebastian Huber
a9f141a221 Change license to BSD 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
bceabc95c1 Move files to match FreeBSD layout 2013-10-10 09:06:58 +02:00
Sebastian Huber
82800c518f Update due to header file changes 2013-09-20 16:30:53 +02:00
Sebastian Huber
83cb10f952 There is no main thread in RTEMS
The resolv module has a questionable fall back strategy on error.
2013-09-20 16:18:23 +02:00
Sebastian Huber
937461c950 Avoid per-CPU features 2013-09-20 16:18:23 +02:00
Sebastian Huber
473437ccd7 Update due to header file changes 2013-09-20 16:18:23 +02:00
Sebastian Huber
a3dde3ee78 Update due to Newlib <sys/cdefs.h> changes 2013-09-20 12:52:44 +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
9d3ac2b51a Add custom limits.h and timespec.h
These will be needed for added a version of select that is
closer to bsd's select.
2012-11-26 09:24:57 -06:00
Sebastian Huber
0bc8807943 CAM: Update due to API changes 2012-11-05 16:15:31 +01:00
Jennifer Averett
cb5035400c _sx_xlock(): Added check for not in interrupt. 2012-10-24 15:01:23 -05:00
Joel Sherrill
8ddbc30f41 rtems-bsd-sx.c: Disable check for interruptible blocking until it is supported 2012-10-23 14:21:44 -05:00
Joel Sherrill
7b43b62c17 rtems-bsd-symbols.h: Do not hide sysctlbyname(). 2012-10-23 11:13:57 -05:00
Jennifer Averett
d4ceffbe23 rtems-bsd-symbols.h: Add _bsd_ipsec_set_policy. 2012-10-11 08:32:10 -05:00
Jennifer Averett
45a81cdc5e Added rtems specific version of _pthread_main_np()
This required adding rtems_id rtems_init_task_id to identify the
main task.
2012-10-05 09:34:09 -05:00
Jennifer Averett
a4e4484df6 rtems-bsd-config.h.in: Added defines for O_NOFOLLOW and O_SHLOCK 2012-09-12 10:51:59 -05:00
Joel Sherrill
1dff51a7ec freebsd/bsd.h: Add include of freebsd/machine/_align.h
Multiple files in user space were coming up with _ALIGN being
unexpanded. This resolved it.
2012-09-11 16:02:41 -05:00
Joel Sherrill
33c9336aa7 rtems-bsd-sysctl.c: Formatting corrections 2012-09-10 16:45:30 -05:00
Joel Sherrill
b00e8b279d rtems-bsd-symbols.h: sysctl() should be a public symbol 2012-09-10 16:45:07 -05:00
Joel Sherrill
14d4d7aa23 rtems-bsd-config.h.in: Add FreeBSD macros missing in RTEMS
The following were assumed to be present by multiple libc
methods or networking commands:

  + _PATH_DEVNULL ==> /dev/null
  + SIZE_T_MAX    ==> SIZE_MAX
  + O_EXLOCK      ==> O_EXCL
2012-09-06 13:05:53 -05:00
Joel Sherrill
132ec81d51 rtems-bsd-config.h.in: Do not undef __P or __strong_reference
<sys/cdefs.h> is the FreeBSD version now. No need to touch these.
2012-09-06 10:33:53 -05:00
Joel Sherrill
ab9e6dea37 rtems-bsd-vm_glue.c: Add include of <freebsd/sys/types.h> 2012-09-05 13:12:37 -05:00
Joel Sherrill
f80f90f11d rtems-bsd-rwlock.c: Do not redefine pthread_rwlock_t 2012-09-05 13:03:19 -05:00
Joel Sherrill
ccffd2b4e1 rtemsbsd/freebsd/sys/uio.h: New wrapper for <sys/uio.h>
<sys/_iovec.h> is a support file always included. Also added.
2012-09-05 12:55:51 -05:00
Joel Sherrill
582aa1beda rtemsbsd/freebsd/sys/signalvar.h: stub file 2012-09-05 12:55:24 -05:00
Joel Sherrill
b65a44a4f2 rtemsbsd/freebsd/sys/signal.h: New wrapper for <sys/signal.h> 2012-09-05 12:54:49 -05:00
Joel Sherrill
336883b587 rtemsbsd/freebsd/sys/cdefs.h: New wrapper for <sys/cdefs.h> 2012-09-05 12:54:28 -05:00
Joel Sherrill
3b4d5c480b rtems-bsd-config.h.in: Assume <sys/cdefs.h> is OK to use
This is part of a set of patches to newlib, RTEMS, and
rtems-libbsd to update <sys/cdefs.h> so the newlib version
can be used without issue.
2012-09-05 12:46:28 -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
Joel Sherrill
9ae87c2c1f rtems-bsd-config.h: IPV6 enabled by default. Make consistent with Makefile 2012-08-24 15:17:35 -05:00
Joel Sherrill
659d7adb7c Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd 2012-08-24 15:15:04 -05:00
Joel Sherrill
bb753bf85d rtems-bsd-config.h: Add __NEW_RTEMS_BSD__ until machine/param.h in tools can be unified 2012-08-24 15:14:32 -05:00
Jennifer Averett
c2da78d84a Fixed return values for jail methods. 2012-08-24 14:42:03 -05:00
Joel Sherrill
bd6dd6e233 net-setup: Add routing and old stack's configuration
This allows the old stack's configuration structures to be used
unchanged even though this code currently does not support all
of the options. It likely will never support all of the options
as some should eventually come through configuration files as
they would in a real FreeBSD system. Other configuration
parameters are likely configurable via "hints".
2012-07-27 07:45:06 -05:00
Jennifer Averett
2c3d8b981b Added rtems specific page tracking methods for uma page allocation. 2012-07-20 14:17:05 -05:00
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
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
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
5cf6031a15 rtems-bsd-nexus.c: Always include rtems/irq-extension.h 2012-07-14 10:40:40 -05:00
Joel Sherrill
b0b2e0e2d6 Add stub cpu_func.h files for all other RTEMS targets 2012-07-13 11:40:48 -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
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
479f4eb6d9 Add _XXX_ENDIAN constants 2012-07-11 17:33:09 -05:00
Jennifer Averett
59f69ea3cd Some cleanup to allow build for multiple architectures. 2012-07-11 12:48:58 -05:00