basic framework setup

TODO:
amd64 mcount in entry.S