A tamper-resistant method for preventing tampering using a glitch attack and a
data processing system using the same are provided. The method includes reading
out a first data from a region of the memory assigned by an address; reading out
a second data from the region of the memory assigned by the address; determining
whether the first data is identical to the second data; and fetching by the processor
either one of the first and second data when the first data is identical to the
second data.