comparison gsm-fw/gpf/osl/os_sem_ir.c @ 450:8768b9f28073

OSL: os_sem_ir.c started
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Jun 2014 02:55:22 +0000
parents
children 578ba9dfc369
comparison
equal deleted inserted replaced
449:03b6377d61db 450:8768b9f28073
1 /*
2 * This C module is a reconstruction based on the disassembly of
3 * os_sem.obj in frame_na7_db_ir.lib from the Leonardo package.
4 */
5
6 /* set of included headers from COFF symtab: */
7 #include <stdio.h>
8 #include <string.h>
9 #include "gpfconf.h" /* FreeCalypso addition */
10 #include "../../nucleus/nucleus.h"
11 #include "typedefs.h"
12 #include "os.h"
13 #include "gdi.h"
14 #include "os_types.h"
15 #include "os_glob.h"
16
17 extern T_OS_SEM_TABLE_ENTRY SemTable[];
18 extern unsigned os_time_to_tick_multiplier;
19
20 int
21 ReleaseSemaphoreCB(NU_SEMAPHORE *SemCB)
22 {
23 if (NU_Release_Semaphore(SemCB) == NU_SUCCESS)
24 return(OS_OK);
25 else
26 return(OS_ERROR);
27 }
28
29 int
30 ObtainSemaphoreCB(NU_SEMAPHORE *SemCB, ULONG Timeout, USHORT wait_check)
31 {
32
33
34 }