Added C stub for getting mem map, and basic smp.

Currently kernel can only detect SMP, but cannot activate it, all the code is written to main.c which needs to be revised in the future.