Commit Graph

3323 Commits

Author SHA1 Message Date
Sebastian Huber
b8bd90f68f Add supplementary groups to user environment 2014-11-20 10:30:23 +01:00
Sebastian Huber
0b3fcf5efe samples/fileio: Use unlimited objects 2014-11-20 10:30:23 +01:00
Sebastian Huber
ab085c92eb samples/fileio: Fix warning 2014-11-20 10:30:23 +01:00
Sebastian Huber
ffa71f1cd0 libcsupport: Implement getgroups() 2014-11-20 10:30:22 +01:00
Sebastian Huber
395e5d4d7a libcsupport: Use POSIX key for getgrent() 2014-11-20 10:30:22 +01:00
Sebastian Huber
acf9a8dd54 shell: Use crypt_r() in rtems_shell_login_check()
Use '*" to disable shell login instead of '!' according to the Linux man
page.  Use getpwnam_r() instead of getpwnam().  Do not access the user
environment directly.  Update the user environment only after a
successful login check.
2014-11-20 10:30:22 +01:00
Sebastian Huber
002f351e15 libcsupport: Minimal /etc/passwd and /etc/group
Create a minimal /etc/passwd and /etc/group with user root and group
root only with no passwords.
2014-11-20 10:30:22 +01:00
Sebastian Huber
6935428a29 libcsupport: Avoid TOCTOU and format errors 2014-11-20 10:30:22 +01:00
Sebastian Huber
446632197c Add crypt_r(), etc.
Add crypt_add_format(), crypt_r(), crypt_md5_r(), crypt_sha256_r() and
crypt_sha512_r().
2014-11-20 10:30:21 +01:00
Sebastian Huber
1bcd037810 Add SHA256 and SHA512 support 2014-11-20 10:30:21 +01:00
Sebastian Huber
0510cfd8ed Add NXP PCA9548A 8-channel switch I2C driver 2014-11-20 10:30:17 +01:00
Sebastian Huber
67ac69fc3f Add NXP PCA9535 16-bit GPIO I2C driver 2014-11-20 10:30:12 +01:00
Sebastian Huber
cce4678047 Add generic EEPROM I2C device driver 2014-11-20 10:30:11 +01:00
Sebastian Huber
41c5f1b779 Add I2C driver framework
This I2C driver framework has some major differences compared to libi2c.

* It is compatible to the Linux I2C user-space API.

* It uses generic IMFS nodes and thus reduces the levels of indirection.

* The drivers don't have to mess around with minor numbers to get their
  state information.

* No arbitrary bus controller model is assumed.  The main task of an I2C
  bus controller driver is to process I2C messages.  How this is done is
  private to the driver.

* Scatter/gather operations are supported (I2C_M_NOSTART).
2014-11-20 10:30:06 +01:00
Sebastian Huber
3eade71044 libtests/top: End test after some time if no input 2014-11-20 08:54:10 +01:00
Chris Johns
f98abbe0eb libdl: Disable building libdl for the NIOS2. No relocation support.
This should have been added.
2014-11-06 13:09:54 +11:00
Chris Johns
540b7b4178 libtests: Add libdl test dl02.
Loads 2 interdependent ELF object files.
2014-11-04 16:31:50 +11:00
Chris Johns
d52c9e4d71 libtests: Update dl01 documentation. 2014-11-04 16:30:08 +11:00
Joel Sherrill
c58f90bfe8 dl01/dl-load.c: Add missing const 2014-11-02 18:54:55 -06:00
Chris Johns
ae5fe7e6bc cpukit: Add libdl with the Runtime Loader (RTL) code.
This is a merge of the RTL project.
2014-10-31 11:04:15 +11:00
Jennifer Averett
410bcdfe5f top: Add new test. 2014-10-28 08:09:37 -05:00
Jennifer Averett
254b7db0bc capture01: Remove capture task tracking.
This involved adding a new variable record to the capture buffer
and modifing the trace method to read those records.
2014-10-27 14:02:36 -05:00
Sebastian Huber
d412e2f025 smptests/smpfatal03: Wait for end of test msg 2014-10-24 09:18:38 +02:00
Sebastian Huber
092b8c57e6 tests/smptests: Normal use of test extension 2014-10-24 07:21:51 +02:00
Sebastian Huber
17889b257c tests/smptests: Use barriers in smpfatal0{12}
Call the test extension explicitly and wait for report output using a
barrier.  This avoids problems with an early shutdown of the system.
2014-10-23 17:15:47 +02:00
Sebastian Huber
3e739ae95f testsuites: Move include for C++ compatibility 2014-10-23 10:21:41 +02:00
Sebastian Huber
66c1ef9256 Revert "fstests/mdosfs_fstime: Remove test"
This reverts commit bdcf4102f7.
2014-10-23 10:21:28 +02:00
Sebastian Huber
43633ae262 testsuites: Avoid clock driver 2014-10-14 12:12:32 +02:00
Joel Sherrill
945f31b9a9 nsecs/init.c: Use long to avoid overflow on 16-bit targets 2014-10-13 11:13:11 -05:00
Sebastian Huber
a38ced2683 score: Rework global construction
Ensure that the global construction is performed in the context of the
first initialization thread.  On SMP this was not guaranteed in the
previous implementation.
2014-10-13 14:30:22 +02:00
Joel Sherrill
78a38fa2ae Eliminate use of /*PAGE and clean up formatting 2014-10-09 10:11:58 -05:00
Joel Sherrill
eb7f306dc8 samples/base_sp: Fix printf() warning 2014-10-09 10:11:57 -05:00
Joel Sherrill
51a95ff9df samples/unlimited: Fix printf() warning and clean up 2014-10-09 10:11:57 -05:00
Sebastian Huber
22cd2821de IMFS: Avoid NULL pointer access
Avoid NULL pointer access in IMFS_is_imfs_instance().  File systems
mounted via mount() always have a valid type string.
2014-10-08 11:26:27 +02:00
Sebastian Huber
b9f952254b posix: Add auto initializaton for rwlock 2014-10-08 11:26:27 +02:00
Sebastian Huber
7fd5e89c96 termios: Partially hide rtems_termios_tty
Move interrupt lock to device context and expose only this structure to
the read, write and set attributes device handler.  This makes these
device handler independent of the general Termios infrastructure
suitable for direct use in printk() support.
2014-10-07 16:35:13 +02:00
Sebastian Huber
a830cb864d termios: Separate flow control from normal handler 2014-10-07 16:27:51 +02:00
Sebastian Huber
805360b8e5 pppd: Fix warnings 2014-09-30 14:06:09 +02:00
Sebastian Huber
6f1e1b308c sptests/spintrcritical22: New test 2014-09-19 14:25:34 +02:00
Sebastian Huber
8f0a2c995b smptests/smpload01: Report profiling only once
Rely on test extension to report profiling.
2014-09-17 10:31:30 +02:00
Joel Sherrill
8fbe2e69b5 Use correct prototype of benchmark_timer_read()
This change starts with removing the effectively empty file
timerdrv.h. The prototypes for benchmark_timer_XXX() were in
btimer.h which was not universally used. Thus every use of
timerdrv.h had to be changed to btimer.h. Then the prototypes
for benchmark_timer_read() had to be adjusted to return
benchmark_timer_t rather than int or uint32_t.

I took this opportunity to also correct the file headers to
separate the copyright from the file description comments which
is needed to ensure the copyright isn't propagated into Doxygen
output.
2014-09-16 16:09:12 -05:00
Sebastian Huber
7f8a978e6b sptests/sp07: Minimize thread dispatch latency
Do not use sprintf() in thread dispatch critical sections to avoid
corruption of profiling samples.  Update test to reflect thread the life
cycle changes.
2014-09-16 15:43:15 +02:00
Daniel Cederman
6e1206ab46 smptests/smpcache01: Remove invalidation of data cache lines from test
Invalidation of entire data cache might cause data written to the stack
to get lost.
2014-09-16 10:29:42 +02:00
Sebastian Huber
f9eca790ac sptests/spintrcritical_support: Optimize busy loop 2014-09-12 16:06:29 +02:00
Sebastian Huber
73b5d8bf20 sptests/spintrcritical10: Avoid undefined memory 2014-09-12 16:06:26 +02:00
Sebastian Huber
f3508c44b5 tmtests/tmcontext01: Improve cache dirty function
Increment by cache line size to allow more cycles per second.
2014-09-11 07:33:16 +02:00
Sebastian Huber
e09f8b0808 sptests/spfatal07: Fix end of test message 2014-09-10 14:46:03 +02:00
Sebastian Huber
4984ee4aa2 sptests/sp39: Convert to sptests/spintrcritical21
Use interrupt critical section test support.  Do not print end of test
message in case of failure.
2014-09-10 07:12:55 +02:00
Sebastian Huber
b5f9ad2952 psxtests/psxonce01: Use test extension 2014-09-10 07:12:55 +02:00
Sebastian Huber
8028089000 tests: Rework interrupt critical tests
This avoids test durations of more than one hour on fast targets, since
fast targets can count a lot during one clock tick period, so the minor
loop iteration count was quite high.  Estimate now the test body
duration to iterate only through the interesting time window.

Add and use interrupt_critical_section_test().
2014-09-10 07:12:55 +02:00