1. Technical Field
The present disclosure relates to recording systems, and particularly, to a system and method for recording number of times that a motherboard has been powered on.
2. Description of Related Art
Storage devices, such as hard disks, are used to record the number of times that a motherboard has been powered on. When an old hard disk is replaced, a new hard disk will record on the number of times that the motherboard has been powered on starting from zero. However, the actual number of times of the motherboard includes the times recorded in both of the new and old hard disks. The number of times that the motherboard has been powered on, recorded in the new hard disk, is not correct.
Therefore, it is desirable to provide a system and method, which can overcome the limitations described.
Embodiments of the disclosure will now be described in detail, with reference to the accompanying drawings.
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
Referring to
The BIOS ROM chip 10 includes a first storage area 11 and a second storage area 12. A bootstrap module 111 is stored in the first storage area 11, and includes a test module 112 and a recording module 113. The test module 112 is for initializing and testing the hardware, such as memory, and guiding into an operating system. The recording module 113 starts running after the test module 112 starts running.
The second storage area 12 is a Non-Volatile Random Access Memory (NVRAM), and stores variable data. The recording module 113 can modify the variable date stored in the NVRAM. In one embodiment, a first variable data is stored in the second storage area 12. The first variable data is data that records the number of times that the motherboard 200 has been powered on.
In use, the motherboard 200 runs the test module 112 after power has been supplied to the motherboard 200. The test module 112 starts to initialize and test the hardware, such as memory, installed on the motherboard 200. When the test module 112 has initialized and tested the hardware, the motherboard 200 is considered to be powered on. The recording module 113 acquires the first variable data from the second storage area 12 and increments the first variable data by one. For example, if the first variable data stored in the second storage area 12 is one hundred and fourteen, the first variable data is incremented to one hundred and fifteen. The changed first variable data is recorded in the second storage area 12. The processor 20 acquires the changed first variable data and displays it on a user interface (UI). Therefore, a user can visually acquire number of times that a motherboard 200 has been powered on.
In step S201, the motherboard 200 is supplied with power and the BIOS ROM chip 10 of the motherboard 200 includes the first storage area 11 and the second storage area 12.
In step S202, the testing module 112 stored in the first storage area 11 starts running, the test module 112 initializes and tests the hardware installed on the motherboard 200.
In step S203, the recording module 113 stored in the first storage area 11 starts running, the recording module 113 records powering on times of the motherboard 200.
In step S204, the recording module 113 acquires a first variable data stored in the second storage area 12, the first variable data records number of times that the motherboard 200 has been powered on.
In step S205, the recording module 113 increments the first variable data by one.
In step S206, the recording module 113 stores the changed first variable data in the second storage area 12.
In step S207, the recording module 113 finishes running.
In step S208, the testing module 112 finishes running.
In step S209, the processor 20 acquires the changed first variable data and displays it on a user interface (UI).
Particular embodiments are shown and described by way of illustration only. The principles and the features of the present disclosure may be employed in various and numerous embodiments thereof without departing from the scope of the disclosure as claimed. The above-described embodiments illustrate the scope of the disclosure but do not restrict the scope of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110141788.4 | May 2011 | CN | national |