From 04dba496a650cbd1c4ee04a12d6afa38210bcc02 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 19 Oct 2006 19:20:10 +0000 Subject: 2006-10-19 Joel Sherrill * configure.ac, itron/Makefile.am, itron/preinstall.am, posix/Makefile.am, posix/preinstall.am, rtems/Makefile.am, rtems/preinstall.am, sapi/Makefile.am, sapi/preinstall.am, score/Makefile.am, score/preinstall.am, score/include/rtems/system.h, score/include/rtems/score/chain.h, score/include/rtems/score/thread.h, score/src/chain.c, score/src/coremutexseize.c, score/src/threadget.c: Remove all macro implementations and use only the static inline. Static inline functions are now well supported so there is no reason for duplicate maintenance. * itron/macros/rtems/itron/eventflags.inl, itron/macros/rtems/itron/fmempool.inl, itron/macros/rtems/itron/intr.inl, itron/macros/rtems/itron/mbox.inl, itron/macros/rtems/itron/msgbuffer.inl, itron/macros/rtems/itron/network.inl, itron/macros/rtems/itron/port.inl, itron/macros/rtems/itron/semaphore.inl, itron/macros/rtems/itron/sysmgmt.inl, itron/macros/rtems/itron/task.inl, itron/macros/rtems/itron/time.inl, itron/macros/rtems/itron/vmempool.inl, posix/macros/rtems/posix/cond.inl, posix/macros/rtems/posix/key.inl, posix/macros/rtems/posix/mqueue.inl, posix/macros/rtems/posix/mutex.inl, posix/macros/rtems/posix/priority.inl, posix/macros/rtems/posix/pthread.inl, posix/macros/rtems/posix/semaphore.inl, posix/macros/rtems/posix/timer.inl, rtems/macros/rtems/rtems/asr.inl, rtems/macros/rtems/rtems/attr.inl, rtems/macros/rtems/rtems/barrier.inl, rtems/macros/rtems/rtems/dpmem.inl, rtems/macros/rtems/rtems/event.inl, rtems/macros/rtems/rtems/eventset.inl, rtems/macros/rtems/rtems/message.inl, rtems/macros/rtems/rtems/modes.inl, rtems/macros/rtems/rtems/options.inl, rtems/macros/rtems/rtems/part.inl, rtems/macros/rtems/rtems/ratemon.inl, rtems/macros/rtems/rtems/region.inl, rtems/macros/rtems/rtems/sem.inl, rtems/macros/rtems/rtems/status.inl, rtems/macros/rtems/rtems/support.inl, rtems/macros/rtems/rtems/tasks.inl, rtems/macros/rtems/rtems/timer.inl, sapi/macros/rtems/extension.inl, score/macros/README, score/macros/rtems/score/address.inl, score/macros/rtems/score/chain.inl, score/macros/rtems/score/corebarrier.inl, score/macros/rtems/score/coremsg.inl, score/macros/rtems/score/coremutex.inl, score/macros/rtems/score/corerwlock.inl, score/macros/rtems/score/coresem.inl, score/macros/rtems/score/corespinlock.inl, score/macros/rtems/score/heap.inl, score/macros/rtems/score/isr.inl, score/macros/rtems/score/mppkt.inl, score/macros/rtems/score/object.inl, score/macros/rtems/score/objectmp.inl, score/macros/rtems/score/priority.inl, score/macros/rtems/score/stack.inl, score/macros/rtems/score/states.inl, score/macros/rtems/score/sysstate.inl, score/macros/rtems/score/thread.inl, score/macros/rtems/score/threadmp.inl, score/macros/rtems/score/tod.inl, score/macros/rtems/score/tqdata.inl, score/macros/rtems/score/userext.inl, score/macros/rtems/score/watchdog.inl, score/macros/rtems/score/wkspace.inl: Removed. --- cpukit/score/macros/rtems/score/coresem.inl | 71 ----------------------------- 1 file changed, 71 deletions(-) delete mode 100644 cpukit/score/macros/rtems/score/coresem.inl (limited to 'cpukit/score/macros/rtems/score/coresem.inl') diff --git a/cpukit/score/macros/rtems/score/coresem.inl b/cpukit/score/macros/rtems/score/coresem.inl deleted file mode 100644 index 51e5949004..0000000000 --- a/cpukit/score/macros/rtems/score/coresem.inl +++ /dev/null @@ -1,71 +0,0 @@ -/* macros/coresem.h - * - * This include file contains all of the inlined routines associated - * with core semaphores. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_SCORE_CORESEM_INL -#define _RTEMS_SCORE_CORESEM_INL - -/*PAGE - * - * _CORE_semaphore_Is_priority - * - */ - -#define _CORE_semaphore_Is_priority( _the_attribute ) \ - ( (_the_attribute)->discipline == CORE_SEMAPHORE_DISCIPLINES_PRIORITY ) - -/*PAGE - * - * _CORE_semaphore_Get_count - * - */ - -#define _CORE_semaphore_Get_count( _the_semaphore ) \ - ( (_the_semaphore)->count ) - -/*PAGE - * - * _CORE_semaphore_Seize_isr_disable - */ - -#define _CORE_semaphore_Seize_isr_disable( \ - _the_semaphore, _id, _wait, _timeout, _level_p) \ -{ \ - Thread_Control *executing; \ - ISR_Level level = *(_level_p); \ - \ - /* disabled when you get here */ \ - \ - executing = _Thread_Executing; \ - executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; \ - if ( (_the_semaphore)->count != 0 ) { \ - (_the_semaphore)->count -= 1; \ - _ISR_Enable( level ); \ - } else if ( !(_wait) ) { \ - _ISR_Enable( level ); \ - executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; \ - } else { \ - _Thread_Disable_dispatch(); \ - _Thread_queue_Enter_critical_section( &(_the_semaphore)->Wait_queue ); \ - executing->Wait.queue = &(_the_semaphore)->Wait_queue; \ - executing->Wait.id = (_id); \ - _ISR_Enable( level ); \ - \ - _Thread_queue_Enqueue( &(_the_semaphore)->Wait_queue, (_timeout) ); \ - _Thread_Enable_dispatch(); \ - } \ -} - -#endif -/* end of include file */ -- cgit v1.2.3