Changeset b8021fd in rtems-libbsd


Ignore:
Timestamp:
Sep 29, 2014, 6:38:09 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
bd2e540
Parents:
6604dc8
git-author:
Sebastian Huber <sebastian.huber@…> (09/29/14 06:38:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/30/14 07:49:43)
Message:

critical_enter/exit(): Use inline function

Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r6604dc8 rb8021fd  
    8989LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell-netcmds.c
    9090LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-signal.c
    91 LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-support.c
    9291LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sx.c
    9392LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-syscall-api.c
  • freebsd-to-rtems.py

    r6604dc8 rb8021fd  
    687687                'rtems/rtems-bsd-shell-netcmds.c',
    688688                'rtems/rtems-bsd-signal.c',
    689                 'rtems/rtems-bsd-support.c',
    690689                'rtems/rtems-bsd-sx.c',
    691690                'rtems/rtems-bsd-syscall-api.c',
  • freebsd/sys/sys/systm.h

    r6604dc8 rb8021fd  
    199199void    cpu_flush_dcache(void *, size_t);
    200200void    cpu_rootconf(void);
     201#ifndef __rtems__
    201202void    critical_enter(void);
    202203void    critical_exit(void);
     204#else /* __rtems__ */
     205#include <rtems/score/threaddispatch.h>
     206
     207static __inline void
     208critical_enter(void)
     209{
     210        _Thread_Disable_dispatch();
     211}
     212
     213static __inline void
     214critical_exit(void)
     215{
     216        _Thread_Enable_dispatch();
     217}
     218#endif /* __rtems__ */
    203219void    init_param1(void);
    204220void    init_param2(long physpages);
Note: See TracChangeset for help on using the changeset viewer.