Changeset 50553bc in rtems-libbsd


Ignore:
Timestamp:
Mar 15, 2015, 8:49:14 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
5bcdc25
Parents:
8475e7a
git-author:
Sebastian Huber <sebastian.huber@…> (03/15/15 20:49:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/24/15 14:20:57)
Message:

CONDVAR(9): Use FreeBSD implementation

Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r8475e7a r50553bc  
    6868LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-cam.c
    6969LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-chunk.c
    70 LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-condvar.c
    7170LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-conf.c
    7271LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-delay.c
     
    165164        mv __libipsecyy.tab.h freebsd/lib/libipsec/y.tab.h
    166165LIB_C_FILES += freebsd/sys/kern/init_main.c
     166LIB_C_FILES += freebsd/sys/kern/kern_condvar.c
    167167LIB_C_FILES += freebsd/sys/kern/kern_event.c
    168168LIB_C_FILES += freebsd/sys/kern/kern_hhook.c
  • freebsd-to-rtems.py

    r8475e7a r50553bc  
    668668                'rtems/rtems-bsd-cam.c',
    669669                'rtems/rtems-bsd-chunk.c',
    670                 'rtems/rtems-bsd-condvar.c',
    671670                'rtems/rtems-bsd-conf.c',
    672671                'rtems/rtems-bsd-delay.c',
     
    875874        [
    876875                'sys/kern/init_main.c',
     876                'sys/kern/kern_condvar.c',
    877877                'sys/kern/kern_event.c',
    878878                'sys/kern/kern_hhook.c',
  • freebsd/sys/sys/condvar.h

    r8475e7a r50553bc  
    4444 * optimization to avoid looking up the sleep queue if there are no waiters.
    4545 */
    46 #ifdef __rtems__
    47 #include <rtems/score/threadq.h>
    48 #endif /* __rtems__ */
    4946struct cv {
    5047        const char      *cv_description;
    51 #ifndef __rtems__
    5248        int             cv_waiters;
    53 #else /* __rtems__ */
    54   Thread_queue_Control cv_waiters;
    55 #endif /* __rtems__ */
    5649};
    5750
     
    7770#define cv_timedwait(cvp, lock, timo)                                   \
    7871        _cv_timedwait((cvp), &(lock)->lock_object, (timo))
     72#ifndef __rtems__
    7973#define cv_timedwait_sig(cvp, lock, timo)                               \
    8074        _cv_timedwait_sig((cvp), &(lock)->lock_object, (timo))
     75#else /* __rtems__ */
     76#define cv_timedwait_sig(cvp, lock, timo)                               \
     77        _cv_timedwait((cvp), &(lock)->lock_object, (timo))
     78#endif /* __rtems__ */
    8179
    8280#define cv_broadcast(cvp)       cv_broadcastpri(cvp, 0)
  • freebsd/sys/sys/systm.h

    r8475e7a r50553bc  
    5353#endif /* __rtems__ */
    5454extern int rebooting;           /* kern_reboot() has been called. */
     55#ifndef __rtems__
    5556extern const char *panicstr;    /* panic message */
     57#else /* __rtems__ */
     58#define panicstr NULL
     59#endif /* __rtems__ */
    5660extern char version[];          /* system version */
    5761extern char compiler_version[]; /* compiler version */
Note: See TracChangeset for help on using the changeset viewer.