bmarcot / vega

vega -- The Unix-like Operating System for micro-controllers (ARM Cortex-M4)
6 stars 1 forks source link

thread: Allocate one page for thread and interrupt stack #25

Closed bmarcot closed 6 years ago

bmarcot commented 7 years ago

Two pages are allocated separately in allocate_thread_stack and allocate_interrupt_stack. The process of creating a new thread could be sped up by allocating once a bigger page and split it in half (1/2-1/2, or 1/4-3/4, ...).

bmarcot commented 6 years ago

Process stack is supplied by the syscall caller.