A memory control method for restoring data in a cache memory is proposed,
which is applied in a computer device having Operating System, and the
computer device has a spare battery for supplying spare power to go on to
store cached data into a cache memory unit, the temporary data can be
backed up quickly, seriously and efficiently without significantly
modifying a memory management core of the operating system, thereby
preventing operational efficiency of the computer device from decreasing,
avoiding the designing and fabricating cost from adding, and also
avoiding the problem such that the cached content can not be stored since
memory has been initialized by operating system once the system is
started every time, as well even making the temporary data in the cache
memory restored to disk without influencing structure of Operating System
itself, when the computer device is restarted after powering off
abnormally.