changed the SWI_Wrappers to save all registers on entry, and terminate with movs for user-state switch.also for write to save errno