OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [optman/] [no-sem.c] - Blame information for rev 484

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

Line No. Rev Author Line
1 30 unneback
/*
2
 *  Semaphore Manager
3
 *
4
 *
5
 *  COPYRIGHT (c) 1989-1999.
6
 *  On-Line Applications Research Corporation (OAR).
7
 *
8
 *  The license and distribution terms for this file may be
9
 *  found in the file LICENSE in this distribution or at
10
 *  http://www.OARcorp.com/rtems/license.html.
11
 *
12
 *  $Id: no-sem.c,v 1.2 2001-09-27 11:59:19 chris Exp $
13
 */
14
 
15
#include <rtems/system.h>
16
#include <rtems/rtems/status.h>
17
#include <rtems/rtems/attr.h>
18
#include <rtems/score/isr.h>
19
#include <rtems/score/object.h>
20
#include <rtems/rtems/options.h>
21
#include <rtems/rtems/sem.h>
22
#include <rtems/score/states.h>
23
#include <rtems/score/thread.h>
24
#include <rtems/score/threadq.h>
25
#include <rtems/score/interr.h>
26
 
27
void _Semaphore_Manager_initialization(
28
  unsigned32 maximum_semaphores
29
)
30
{
31
}
32
 
33
rtems_status_code rtems_semaphore_create(
34
  rtems_name            name,
35
  unsigned32            count,
36
  rtems_attribute       attribute_set,
37
  rtems_task_priority   priority_ceiling,
38
  Objects_Id           *id
39
)
40
{
41
  _Internal_error_Occurred(
42
    INTERNAL_ERROR_RTEMS_API,
43
    FALSE,
44
    RTEMS_NOT_CONFIGURED
45
  );
46
  return RTEMS_NOT_CONFIGURED;
47
}
48
 
49
rtems_status_code rtems_semaphore_ident(
50
  rtems_name    name,
51
  unsigned32    node,
52
  Objects_Id   *id
53
)
54
{
55
  _Internal_error_Occurred(
56
    INTERNAL_ERROR_RTEMS_API,
57
    FALSE,
58
    RTEMS_NOT_CONFIGURED
59
  );
60
  return RTEMS_NOT_CONFIGURED;
61
}
62
 
63
rtems_status_code rtems_semaphore_delete(
64
  Objects_Id id
65
)
66
{
67
  _Internal_error_Occurred(
68
    INTERNAL_ERROR_RTEMS_API,
69
    FALSE,
70
    RTEMS_NOT_CONFIGURED
71
  );
72
  return RTEMS_NOT_CONFIGURED;
73
}
74
 
75
rtems_status_code rtems_semaphore_obtain(
76
  Objects_Id        id,
77
  unsigned32        option_set,
78
  rtems_interval timeout
79
)
80
{
81
  _Internal_error_Occurred(
82
    INTERNAL_ERROR_RTEMS_API,
83
    FALSE,
84
    RTEMS_NOT_CONFIGURED
85
  );
86
  return RTEMS_NOT_CONFIGURED;
87
}
88
 
89
rtems_status_code rtems_semaphore_release(
90
  Objects_Id id
91
)
92
{
93
  _Internal_error_Occurred(
94
    INTERNAL_ERROR_RTEMS_API,
95
    FALSE,
96
    RTEMS_NOT_CONFIGURED
97
  );
98
  return RTEMS_NOT_CONFIGURED;
99
}
100
 
101
boolean _Semaphore_Seize(
102
  Semaphore_Control *the_semaphore,
103
  rtems_option    option_set
104
)
105
{
106
  _Internal_error_Occurred(
107
    INTERNAL_ERROR_RTEMS_API,
108
    FALSE,
109
    RTEMS_NOT_CONFIGURED
110
  );
111
  _Thread_Executing->Wait.return_code = RTEMS_UNSATISFIED;
112
  return TRUE;
113
}

powered by: WebSVN 2.1.0

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