projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83fc793
)
Now stack_size is the real size, there's no need to subtract the size of the Process...
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 9 Sep 2009 20:48:10 +0000
(20:48 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 9 Sep 2009 20:48:10 +0000
(20:48 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2914
38d2e660
-2303-0410-9eaa-
f027e97ec537
bertos/kern/proc.c
patch
|
blob
|
history
diff --git
a/bertos/kern/proc.c
b/bertos/kern/proc.c
index 6b1aaaff51fe97870b35a826ddaa96d4dd21d496..3b727a2dda5c2ea4744999503ccf650269486304 100644
(file)
--- a/
bertos/kern/proc.c
+++ b/
bertos/kern/proc.c
@@
-233,7
+233,7
@@
struct Process *proc_new_with_name(UNUSED_ARG(const char *, name), void (*entry)
getcontext(&proc->context);
proc->context.uc_stack.ss_sp = proc->stack;
- proc->context.uc_stack.ss_size = stack_size -
PROC_SIZE_WORDS -
1;
+ proc->context.uc_stack.ss_size = stack_size - 1;
proc->context.uc_link = NULL;
makecontext(&proc->context, (void (*)(void))proc_entry, 1, entry);