Changeset 150d4d6 in rtems-libbsd


Ignore:
Timestamp:
Oct 24, 2013, 9:11:32 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
e2281af
Parents:
de3ef24
git-author:
Sebastian Huber <sebastian.huber@…> (10/24/13 09:11:32)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:51)
Message:

Move content to new <machine/rtems-bsd-support.h>

Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/kern_module.c

    rde3ef24 r150d4d6  
    197197        newmod->file = container;
    198198#else /* __rtems__ */
    199                 BSD_PANIC("not supported");
     199                BSD_ASSERT(0);
    200200#endif /* __rtems__ */
    201201        MOD_XUNLOCK;
  • rtemsbsd/include/machine/rtems-bsd-config.h.in

    rde3ef24 r150d4d6  
    9797#include <machine/rtems-bsd-symbols.h>
    9898
    99 /* Debug */
     99/* Assert */
    100100
    101101void rtems_bsd_assert_func(const char *file, int line, const char *func, const char *expr);
    102102
    103 #define BSD_PRINTF(fmt, ...) printf("%s: " fmt, __func__, ##__VA_ARGS__)
    104 
    105 #define BSD_PANIC(fmt, ...) panic("%s: " fmt "\n",  __func__, ##__VA_ARGS__)
    106 
    107 #ifdef NDEBUG
     103#ifdef RTEMS_BSD_NO_ASSERT
    108104# define BSD_ASSERT(expr) ((void) 0)
    109105#else
    110106# define BSD_ASSERT(expr) ((expr) ? (void) 0 : rtems_bsd_assert_func(__FILE__, __LINE__, __func__, #expr))
    111107#endif
    112 
    113 #define BSD_ASSERT_SC(sc) BSD_ASSERT((sc) == RTEMS_SUCCESSFUL)
    114 
    115 #define BSD_ASSERT_RV(rv) BSD_ASSERT((rv) == 0)
    116108
    117109/* General definitions */
     
    129121#define BSD_DEFAULT_PRISON (&prison0)
    130122
    131 extern rtems_chain_control rtems_bsd_lock_chain;
    132 
    133 extern rtems_chain_control rtems_bsd_mtx_chain;
    134 
    135 extern rtems_chain_control rtems_bsd_sx_chain;
    136 
    137 extern rtems_chain_control rtems_bsd_condvar_chain;
    138 
    139 extern rtems_chain_control rtems_bsd_callout_chain;
    140 
    141 extern rtems_chain_control rtems_bsd_malloc_chain;
    142 
    143123#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_CONFIG_H_ */
  • rtemsbsd/rtems/rtems-bsd-cam.c

    rde3ef24 r150d4d6  
    4040
    4141#include <machine/rtems-bsd-config.h>
     42#include <machine/rtems-bsd-support.h>
    4243
    4344#include <rtems/bsd/sys/param.h>
  • rtemsbsd/rtems/rtems-bsd-condvar.c

    rde3ef24 r150d4d6  
    3939
    4040#include <machine/rtems-bsd-config.h>
     41#include <machine/rtems-bsd-support.h>
    4142
    4243#include <rtems/score/objectimpl.h>
  • rtemsbsd/rtems/rtems-bsd-delay.c

    rde3ef24 r150d4d6  
    6060
    6161        sc = rtems_task_wake_after(ticks);
    62         BSD_ASSERT_SC(sc);
     62        BSD_ASSERT(sc == RTEMS_SUCCESSFUL);
    6363}
  • rtemsbsd/rtems/rtems-bsd-malloc.c

    rde3ef24 r150d4d6  
    3939
    4040#include <machine/rtems-bsd-config.h>
     41#include <machine/rtems-bsd-support.h>
    4142
    4243#include <rtems/bsd/sys/param.h>
  • rtemsbsd/rtems/rtems-bsd-mutex.c

    rde3ef24 r150d4d6  
    4040#include <machine/rtems-bsd-config.h>
    4141#include <machine/rtems-bsd-thread.h>
     42#include <machine/rtems-bsd-support.h>
    4243
    4344#include <rtems/score/objectimpl.h>
  • rtemsbsd/rtems/rtems-bsd-rwlock.c

    rde3ef24 r150d4d6  
    3939
    4040#include <machine/rtems-bsd-config.h>
     41#include <machine/rtems-bsd-support.h>
    4142
    4243#include <rtems/score/objectimpl.h>
  • rtemsbsd/rtems/rtems-bsd-shell.c

    rde3ef24 r150d4d6  
    4040#include <machine/rtems-bsd-config.h>
    4141#include <machine/rtems-bsd-thread.h>
     42#include <machine/rtems-bsd-support.h>
    4243
    4344#include <rtems/bsd/sys/param.h>
  • rtemsbsd/rtems/rtems-bsd-signal.c

    rde3ef24 r150d4d6  
    4747psignal(struct proc *p, int sig)
    4848{
    49         BSD_PANIC("not implemented");
     49        BSD_ASSERT(0);
    5050}
    5151
     
    5353{
    5454 
    55         BSD_PANIC("not implemented");
     55        BSD_ASSERT(0);
    5656}
  • rtemsbsd/rtems/rtems-bsd-sx.c

    rde3ef24 r150d4d6  
    3939
    4040#include <machine/rtems-bsd-config.h>
     41#include <machine/rtems-bsd-support.h>
    4142
    4243#include <rtems/score/objectimpl.h>
  • rtemsbsd/rtems/rtems-bsd-thread.c

    rde3ef24 r150d4d6  
    4040#include <machine/rtems-bsd-config.h>
    4141#include <machine/rtems-bsd-thread.h>
     42#include <machine/rtems-bsd-support.h>
    4243
    4344#include <rtems/bsd/sys/param.h>
Note: See TracChangeset for help on using the changeset viewer.