19 Commits

Author SHA1 Message Date
Kinsey Moore
38f3de6469 rtemsbsd/atomic: Return a value for CMPSET
When the cmpset and fcmpset functions were refactored, the return value
of the operation was discarded instead of being returned for SMP builds
outside of gcc 4.x. This had the effect of turning these functions into
a long busywait loop that eventually failed due to integer overflow.

This patch restores the use of the return value of the atomic
operations.
2021-10-08 09:05:05 -05:00
Chris Johns
6514d56158 sys/kern: Add VFS support
- Refactor the libio interface

- Move syscalls into an rtemsbsd location

- Provide a root directory mount point

Update #4475
2021-08-28 10:25:46 +10:00
Sebastian Huber
02da5d3a82 atomic.h: Add atomic_load_long() 2019-08-27 09:50:05 +02:00
Sebastian Huber
2a60dfb89f Fix atomic_load_32() 2019-02-18 10:09:56 +01:00
Sebastian Huber
0b177c7c27 atomic.h: Add atomic_fetchadd_64() 2019-02-11 15:20:32 +01:00
Sebastian Huber
d7504f8372 atomic.h: Add atomic_load_32() 2019-02-11 09:36:50 +01:00
Sebastian Huber
bcdce02d9b Update to FreeBSD head 2018-06-01
Git mirror commit fb63610a69b0eb7f69a201ba05c4c1a7a2739cf9.

Update #3472.
2018-09-21 10:29:41 +02:00
Sebastian Huber
18fa92c2dc Update to FreeBSD head 2018-02-01
Git mirror commit d079ae0442af8fa3cfd6d7ede190d04e64a2c0d4.

Update #3472.
2018-09-21 10:29:39 +02:00
Sebastian Huber
71a0436d14 Add thread fences to <machine/atomic.h> 2016-11-09 10:04:32 +01:00
Sebastian Huber
390e1330cf Make <machine/atomic.h> available to user space
Enables use of <sys/refcount.h> in user space.
2016-10-24 08:08:59 +02:00
Sebastian Huber
e5724f788a atomic.h: Fix for GCC version 5 and later 2015-03-09 14:20:45 +01:00
Sebastian Huber
e5a017550a atomic.h: Use <stdatomic.h> or <atomic> for SMP 2015-03-06 14:58:13 +01:00
Sebastian Huber
9a5073462d atomic.h: Format changes 2015-03-06 14:58:13 +01:00
Sebastian Huber
e684326d24 Change license to BSD 2015-03-06 14:58:13 +01:00
Sebastian Huber
f244de9638 Rename rtems-bsd-config.h
Rename rtems-bsd-config.h in rtems-bsd-kernel-space.h.
2013-11-11 10:08:04 +01:00
Sebastian Huber
46ffd7222b Include missing header file 2013-10-31 13:18:51 +01:00
Sebastian Huber
bceabc95c1 Move files to match FreeBSD layout 2013-10-10 09:06:58 +02:00
Joel Sherrill
1a91c05070 Preserve Sebastian's directory structure under rtemsbsd to minimize changes 2012-03-07 16:44:23 -06:00
Joel Sherrill
cbffdb7fdc Separate RTEMS Specific Files from Those Direct from FreeBSD 2012-03-07 16:14:13 -06:00