Match HuPrcChildCreate
This commit is contained in:
parent
244a856837
commit
b7a4ffb221
1 changed files with 1 additions and 3 deletions
|
|
@ -70,8 +70,7 @@ Process *HuPrcCreate(void (*func)(void), u16 prio, u32 stack_size, s32 extra_siz
|
|||
alloc_size = HuMemMemoryAllocSizeGet(sizeof(Process))
|
||||
+HuMemMemoryAllocSizeGet(stack_size)
|
||||
+HuMemMemoryAllocSizeGet(extra_size);
|
||||
heap = HuMemDirectMalloc(0, alloc_size);
|
||||
if(!heap) {
|
||||
if(!(heap = HuMemDirectMalloc(0, alloc_size))) {
|
||||
OSReport("process> malloc error size %d\n", alloc_size);
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -139,7 +138,6 @@ void HuPrcChildWatch()
|
|||
gclongjmp(&processjmpbuf, 1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Process *HuPrcCurrentGet()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue