Completed till OS Startup code of Stage 4