mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2007-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* chain.c: Reflect removal of isr.h. * isr.h: Remove. * Makefile.am: Remove isr.h.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* chain.c: Reflect removal of isr.h.
|
||||||
|
* isr.h: Remove.
|
||||||
|
* Makefile.am: Remove isr.h.
|
||||||
|
|
||||||
2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* Makefile.am: Cosmetics.
|
* Makefile.am: Cosmetics.
|
||||||
|
|||||||
@@ -8,5 +8,5 @@
|
|||||||
|
|
||||||
noinst_PROGRAMS = bmenu2
|
noinst_PROGRAMS = bmenu2
|
||||||
|
|
||||||
bmenu2_SOURCES = address.h chain.c isr.h address.inl chain.h bmenu2.c base.h \
|
bmenu2_SOURCES = address.h chain.c address.inl chain.h bmenu2.c base.h \
|
||||||
chain.inl system.h
|
chain.inl system.h
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "address.h"
|
#include "address.h"
|
||||||
#include "chain.h"
|
#include "chain.h"
|
||||||
#include "isr.h"
|
|
||||||
|
|
||||||
/*PAGE
|
/*PAGE
|
||||||
*
|
*
|
||||||
@@ -76,14 +75,11 @@ Chain_Node *_Chain_Get(
|
|||||||
Chain_Control *the_chain
|
Chain_Control *the_chain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ISR_Level level;
|
|
||||||
Chain_Node *return_node;
|
Chain_Node *return_node;
|
||||||
|
|
||||||
return_node = NULL;
|
return_node = NULL;
|
||||||
_ISR_Disable( level );
|
|
||||||
if ( !_Chain_Is_empty( the_chain ) )
|
if ( !_Chain_Is_empty( the_chain ) )
|
||||||
return_node = _Chain_Get_first_unprotected( the_chain );
|
return_node = _Chain_Get_first_unprotected( the_chain );
|
||||||
_ISR_Enable( level );
|
|
||||||
return return_node;
|
return return_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,11 +104,7 @@ void _Chain_Append(
|
|||||||
Chain_Node *node
|
Chain_Node *node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ISR_Level level;
|
|
||||||
|
|
||||||
_ISR_Disable( level );
|
|
||||||
_Chain_Append_unprotected( the_chain, node );
|
_Chain_Append_unprotected( the_chain, node );
|
||||||
_ISR_Enable( level );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*PAGE
|
/*PAGE
|
||||||
@@ -134,11 +126,7 @@ void _Chain_Extract(
|
|||||||
Chain_Node *node
|
Chain_Node *node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ISR_Level level;
|
|
||||||
|
|
||||||
_ISR_Disable( level );
|
|
||||||
_Chain_Extract_unprotected( node );
|
_Chain_Extract_unprotected( node );
|
||||||
_ISR_Enable( level );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*PAGE
|
/*PAGE
|
||||||
@@ -163,11 +151,7 @@ void _Chain_Insert(
|
|||||||
Chain_Node *node
|
Chain_Node *node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ISR_Level level;
|
|
||||||
|
|
||||||
_ISR_Disable( level );
|
|
||||||
_Chain_Insert_unprotected( after_node, node );
|
_Chain_Insert_unprotected( after_node, node );
|
||||||
_ISR_Enable( level );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*PAGE
|
/*PAGE
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
/*
|
|
||||||
* COPYRIGHT (c) 1988-2002.
|
|
||||||
* On-Line Applications Research Corporation (OAR).
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __ISR_h
|
|
||||||
#define __ISR_h
|
|
||||||
|
|
||||||
typedef unsigned32 ISR_Level;
|
|
||||||
|
|
||||||
#define _ISR_Disable
|
|
||||||
#define _ISR_Enable
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Reference in New Issue
Block a user