OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [macros/] [rtems/] [score/] [stack.inl] - Blame information for rev 773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  stack.inl
2
 *
3
 *  This file contains the macro implementation of the inlined
4
 *  routines from the Stack Handler.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: stack.inl,v 1.2 2001-09-27 11:59:34 chris Exp $
14
 */
15
 
16
#ifndef __STACK_inl
17
#define __STACK_inl
18
 
19
/*PAGE
20
 *
21
 *  _Stack_Initialize
22
 *
23
 */
24
 
25
#define _Stack_Initialize( _the_stack, _starting_address, _size ) \
26
  { \
27
    (_the_stack)->area = (_starting_address); \
28
    (_the_stack)->size = (_size);  \
29
  }
30
 
31
/*PAGE
32
 *
33
 *  _Stack_Is_enough
34
 *
35
 */
36
 
37
#define _Stack_Is_enough( _size ) \
38
  ( (_size) >= STACK_MINIMUM_SIZE )
39
 
40
/*PAGE
41
 *
42
 *  _Stack_Adjust_size
43
 */
44
 
45
#define _Stack_Adjust_size( _size ) \
46
  ((_size) + CPU_STACK_ALIGNMENT)
47
 
48
#endif
49
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.