x86: move some func calling from setup_arch to paging_init