465 Commits

Author SHA1 Message Date
Chris Johns
f9fa038c94 Fix memory leak in rc.conf processing. 2016-05-18 15:21:09 +10:00
Chris Johns
05d47ae865 Clean up whitespace. 2016-05-18 15:20:36 +10:00
Chris Johns
f5c6651da8 Add support for rc.conf(5) initialisation.
Provide user support for rc.conf(5) so a user can create a suitable
/etc/rc.conf file to initialise libbsd.

This patch by default adds basic networking support:

 cloned_interfaces
 ifconfig_'interface'
 defaultrouter
 hostname

Refer to FreeBSD documentation for examples.

Users can make a single call to have /etc/rc.conf processed, or pass a
file name to a specific configuration file or a text string with line
feeds can be passed to the scripting version of the interface.

The rc.conf support is implemented in terms of directive handlers that
are called based on a regular expression. The design allows new handlers
to be added as needed.

Line concatenation is still to be implemented.
2016-05-18 13:49:17 +10:00
Sebastian Huber
5b4394f3c8 Add namespace support for kvm 2016-05-06 21:41:21 +02:00
Sebastian Huber
5b1f20b73f Rename files for kernel namespace script
This makes it easier to create the kernel namespace header.
2016-05-06 21:41:20 +02:00
Sebastian Huber
81e5ff4be6 Add kernel namespace exception for mbstat 2016-05-06 14:49:15 +02:00
Sebastian Huber
edb5e4b023 Add kernel namespace exceptions
These names correspond to sysctls.
2016-05-06 14:40:02 +02:00
Sebastian Huber
b8f127e64a Update kernel namespace 2016-05-06 14:10:40 +02:00
Sebastian Huber
54a577d44f subr_prf.c: Port to RTEMS 2016-05-06 14:07:31 +02:00
Sebastian Huber
0f5dd1cc38 Add script to create the kernel namespace header 2016-05-06 08:56:03 +02:00
Chris Johns
83eb07c4d6 Add sbin/sysctl 2016-05-06 15:07:56 +10:00
Sebastian Huber
e58b898d69 telnetd: Use syslog() instead of printk() 2016-05-04 11:49:34 +02:00
Chris Johns
4b127e7cec Add RealTek Gig PHY. 2016-05-04 16:02:06 +10:00
Chris Johns
b8d1fe069b pc386: Add RealTek network driver to the nexus bus. 2016-04-28 13:49:40 +10:00
Sebastian Huber
5784e6d9c7 rtems/bsd/bsd.h: Documentation 2016-04-27 09:45:26 +02:00
Sebastian Huber
5b93cc84b4 Add root bus support functions 2016-04-26 15:20:59 +02:00
Sebastian Huber
00c87925a9 Initialize interrupt server early
This enables its use before the Nexus device exists.
2016-04-26 15:20:59 +02:00
Sebastian Huber
c5fde4960c intrmask_t: Provide dummy type definition 2016-04-18 15:06:37 +02:00
Sebastian Huber
ce8c7bba5b kvm: Include missing header file 2016-04-18 15:06:37 +02:00
Sebastian Huber
982f72fb46 syslog: Include missing header file 2016-04-18 14:54:41 +02:00
Sebastian Huber
42f085dcd7 sys/time.h: Delete superfluous declaration
Provided by RTEMS d2f9fa510f7e35cb86c056c57f51b416adf803bf.
2016-04-06 15:17:04 +02:00
Sebastian Huber
58c1bf6b5d rtems-bsd-mutex: Update due to API changes 2016-04-06 14:55:56 +02:00
Sebastian Huber
c5abeb5866 rtems-bsd-mutex: Fix mtx_destroy() 2016-04-06 14:54:32 +02:00
Sebastian Huber
652b024e94 ftpd: Resolve function name conflict
Visible with Newlib be657151f12f4d198e45395987f0a626ee1bbb91.
2016-03-18 10:35:42 +01:00
Sebastian Huber
a336c46301 Update due to Watchdog Handler changes 2016-03-14 09:25:51 +01:00
Sebastian Huber
9f81109456 Update due to chain API changes 2016-01-18 12:18:30 +01:00
Sebastian Huber
d5b64f2704 Use RTEMS provided <sys/endian.h> 2015-11-17 14:43:06 +01:00
Sebastian Huber
dd96574e45 SOCKETPAIR(2): Port to RTEMS 2015-11-16 09:52:50 +01:00
Sebastian Huber
ba446132d4 dwc_otg: Port to RTEMS 2015-11-12 13:01:32 +01:00
Sebastian Huber
02279d6272 USB: Update to FreeBSD trunk 2015-11-10 2015-11-12 13:01:12 +01:00
Sebastian Huber
c1644467b1 Rename kernel space log() to _bsd_log()
This avoids a conflict with the standard math library log() function.
2015-11-10 10:23:35 +01:00
Sebastian Huber
556a07ca44 DELAY(): Use rtems_counter_delay_nanoseconds() 2015-09-30 16:06:22 +02:00
Sebastian Huber
36a16f5c7f i386: Quick and dirty hack to get PCI working 2015-09-30 15:55:36 +02:00
Sebastian Huber
b168f6972d BUS_SPACE(9): Use FreeBSD files for i386 arch 2015-09-29 11:05:31 +02:00
Sebastian Huber
45eb88b141 nexus-devices: Add pc386 nexus device and drivers 2015-07-31 13:55:44 +02:00
Sebastian Huber
07ff2c1910 rtems-bsd-mutex: Update due to API changes 2015-07-24 10:42:35 +02:00
Sebastian Huber
3cb5e9ef6d Update due to header guard changes 2015-07-23 15:38:50 +02:00
Sebastian Huber
b22ad9f4c5 rtems-bsd-mutex: Fix resource count updates 2015-06-23 08:58:58 +02:00
Chris Johns
59bc7c1f5f Remove #undefs and fix formatting. 2015-06-19 16:07:32 +10:00
Chris Johns
5e02888822 Add the TCPDUMP command. 2015-06-16 13:18:38 +10:00
Chris Johns
cff78462ff Add the TCPDUMP command. 2015-06-16 13:17:56 +10:00
Chris Johns
b5aca58594 Add error() to the BSD program support. 2015-06-16 13:16:37 +10:00
Chris Johns
59a9e6a5da Fix KVM symbol generator to remove warnings. 2015-06-16 13:15:49 +10:00
Chris Johns
8440506ee8 Add tcpdump and libpcap.
- Update the file builder generator to handle generator specific cflags and
  includes. The tcpdump and libpcap have localised headers and need specific
  headers paths to see them. There are also module specific flags and these
  need to be passed to the lex and yacc generators.

- Add the tcpdump support.
2015-06-15 17:42:23 +10:00
Chris Johns
1383c80c5a Add conditional support for RTEMS PCI to the waf build.
Check for the "rtems/pci.h" header and provide conditional build support
with waf to build for BSPs that do not have PCI support. The Makefile build
always defines HAVE_RTEMS_PCI_H which is the same state with this change.

The PCI calls still exist however they do nothing and return a constant.
Any PCI based driver that makes these calls on a BSP that does not have
PCI support will not work which is understandable. Either change the
driver or add PCI support the BSP.
2015-06-01 10:36:58 +10:00
Chris Johns
0768880d75 waf: Add install support.
Install to the --prefix path passed to configure.
2015-05-21 17:01:34 +10:00
Sebastian Huber
595b333ad2 Add INVARIANTS support 2015-05-20 15:03:32 +02:00
Sebastian Huber
b45c75ce99 sys/time.h: Add missing define and declaration 2015-05-20 10:13:56 +02:00
Sebastian Huber
8eaa39fcef Update due to API changes (timecounters) 2015-05-20 09:58:22 +02:00
Sebastian Huber
b3ff71e003 rtems-bsd-mutex: Use standard thread queues 2015-05-20 09:58:21 +02:00