summaryrefslogtreecommitdiff
path: root/uisimulator/x11
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/x11')
-rw-r--r--uisimulator/x11/Makefile3
-rw-r--r--uisimulator/x11/kernel.h31
-rw-r--r--uisimulator/x11/thread.c15
3 files changed, 16 insertions, 33 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index 68815fe8d8..0c0c31183d 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -43,8 +43,7 @@ CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) $(GCCOPTS)
43OUTFILE = $(OBJDIR)/libsim.a 43OUTFILE = $(OBJDIR)/libsim.a
44 44
45all: $(OUTFILE) 45all: $(OUTFILE)
46 @echo "MAKE in common sim" 46 @$(MAKE) -C $(SIMCOMMON)
47 $(MAKE) -C $(SIMCOMMON)
48 47
49include $(TOOLSDIR)/make.inc 48include $(TOOLSDIR)/make.inc
50 49
diff --git a/uisimulator/x11/kernel.h b/uisimulator/x11/kernel.h
deleted file mode 100644
index f165d92eb3..0000000000
--- a/uisimulator/x11/kernel.h
+++ /dev/null
@@ -1,31 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se>
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#include "../../firmware/export/kernel.h"
21
22#ifndef NO_REDEFINES_PLEASE
23
24#define sleep(x) sim_sleep(x)
25#define mutex_init(x) (void)x
26#define mutex_lock(x) (void)x
27#define mutex_unlock(x) (void)x
28
29#endif
30
31void sim_sleep(int);
diff --git a/uisimulator/x11/thread.c b/uisimulator/x11/thread.c
index e37373dc54..25adf6a3c0 100644
--- a/uisimulator/x11/thread.c
+++ b/uisimulator/x11/thread.c
@@ -94,3 +94,18 @@ void sim_sleep(int ticks)
94 94
95 pthread_mutex_lock(&mp); /* get it again */ 95 pthread_mutex_lock(&mp); /* get it again */
96} 96}
97
98void mutex_init(struct mutex *m)
99{
100 (void)m;
101}
102
103void mutex_lock(struct mutex *m)
104{
105 (void)m;
106}
107
108void mutex_unlock(struct mutex *m)
109{
110 (void)m;
111}