Moved protected mode initialization to a separate file