move functions into process.c
create svcInit proc
rearrange to switch stack pointer correctly