i386, x86_64: add basic I/O operations

8 files changed