Move kernel module arch-dependent code for x86-64

Signed-off-by: Junjie Mao <eternal.n08@gmail.com>