x86: Move common fsp functions into a common file