aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-12-11 14:19:46 +0100
committerJoel Bodenmann <joel@unormal.org>2013-12-11 14:19:46 +0100
commit5ea2cb9f8de3562c663942b505eb79d0733ab3dd (patch)
tree19a6c8fca34f4c6532b63bb5ba410b950dc7fef5 /src/gos
parentdaf881428e195790c51209f491880ffb2218d332 (diff)
downloaduGFX-5ea2cb9f8de3562c663942b505eb79d0733ab3dd.tar.gz
uGFX-5ea2cb9f8de3562c663942b505eb79d0733ab3dd.tar.bz2
uGFX-5ea2cb9f8de3562c663942b505eb79d0733ab3dd.zip
whitespaces
Diffstat (limited to 'src/gos')
-rw-r--r--src/gos/raw32.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gos/raw32.c b/src/gos/raw32.c
index 7dd15c27..9a86407e 100644
--- a/src/gos/raw32.c
+++ b/src/gos/raw32.c
@@ -15,7 +15,6 @@
#include <string.h> // Prototype for memcpy()
-
#if GOS_RAW_HEAP_SIZE != 0
static void _gosHeapInit(void);
#else
@@ -138,6 +137,7 @@ void gfxExit(void) {
lastSlot->sz = sz;
NextFree(lastSlot) = 0;
}
+
void *gfxAlloc(size_t sz) {
register memslot *prev, *p, *new;
@@ -270,6 +270,7 @@ void gfxExit(void) {
void gfxSystemLock(void) {
INTERRUPTS_OFF();
}
+
void gfxSystemUnlock(void) {
INTERRUPTS_ON();
}
@@ -454,12 +455,12 @@ typedef struct thread {
void * param; // Parameter for the thread function
jmp_buf cxt; // The current thread context.
// size - sizeof(thread) bytes of stack follow here
- } thread;
+} thread;
typedef struct threadQ {
thread *head;
thread *tail;
- } threadQ;
+} threadQ;
static threadQ readyQ; // The list of ready threads
static threadQ deadQ; // Where we put threads waiting to be deallocated
@@ -740,3 +741,4 @@ threadreturn_t gfxThreadWait(gfxThreadHandle th) {
}
#endif /* GFX_USE_OS_RAW32 */
+