Patent ID: 7555678

Claim:
A booting system, comprising: a non-XIP memory, for storing a plurality of operation system (OS) images, wherein the OS images comprise a source image and a plurality of duplicates of the source image, and a boot loader code; an XIP memory, coupled to the non-XIP memory; and a code shadowing module, coupled to the non-XIP memory and the XIP memory, for shadowing the boot loader code to the XIP memory, executing the shadowed boot loader code to carry out error detection (EDC) checking on at least one OS image stored in the non-XIP memory, and shadowing a specific OS image to the XIP memory if no errors are detected when carrying out EDC checking on the specific OS image, wherein the code shadowing module does not have error correction (ECC) capabilities during booting; wherein if at least a specific part of an OS image does not pass EDC checking, the code shadowing module shadows error-free parts of the OS image to the XIP memory, carries out EDC checking on at least a duplicate of the specific part, and then shadows an error-free part corresponding to the specific part to the XIP memory.