And move some more platform specific code there. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>