diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-07-11 16:22:47 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-07-11 16:22:47 +1000 |
commit | 64752ab52c61f053c0690cf36c712f4662bccfb1 (patch) | |
tree | 8fed314225f32f5bd03510164556ade0810f9301 /src | |
parent | a84f6e0ee723c1ff5935dfaf3d60578bdf7fcbca (diff) | |
download | uGFX-64752ab52c61f053c0690cf36c712f4662bccfb1.tar.gz uGFX-64752ab52c61f053c0690cf36c712f4662bccfb1.tar.bz2 uGFX-64752ab52c61f053c0690cf36c712f4662bccfb1.zip |
Small bug fix + doco
Diffstat (limited to 'src')
-rw-r--r-- | src/gos/gos_raw32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gos/gos_raw32.c b/src/gos/gos_raw32.c index caacab20..c454a68b 100644 --- a/src/gos/gos_raw32.c +++ b/src/gos/gos_raw32.c @@ -685,7 +685,7 @@ gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_ nf = (char *)(t) + sizeof(thread) + stackbase; memcpy(t+1, (char *)&t - stackbase, stackbase+sizeof(char *)); } else { // Stack grows down - nf = (char *)(t) + stacksz - (stackbase + sizeof(char *)); + nf = (char *)(t) + t->size - (stackbase + sizeof(char *)); memcpy(nf, &t, stackbase+sizeof(char *)); } #elif STACK_DIR_UP |