segreate os-specific helper functions from asmstub.c.
10 files changed