eal: move CPU operations to OS specific headers