CN104123232A - Computer system and control method - Google Patents

Computer system and control method Download PDF

Info

Publication number
CN104123232A
CN104123232A CN201310148190.7A CN201310148190A CN104123232A CN 104123232 A CN104123232 A CN 104123232A CN 201310148190 A CN201310148190 A CN 201310148190A CN 104123232 A CN104123232 A CN 104123232A
Authority
CN
China
Prior art keywords
boot program
program
memory block
control module
bios
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310148190.7A
Other languages
Chinese (zh)
Inventor
江威
余家桦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Acer Inc
Original Assignee
Acer Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Acer Inc filed Critical Acer Inc
Priority to CN201310148190.7A priority Critical patent/CN104123232A/en
Publication of CN104123232A publication Critical patent/CN104123232A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a computer system and a control method. The computer system comprises a first memorizer, a second memorizer and a control module. The first memorizer stores a basic input output system program. The second memorizer is provided with a first storage block and a second storage block. When a scanning function is started, the control module executes the basic input output system program for generating a first starting program. The control module stores the first starting program in the first storage block and scans the second storage block, and using of abnormal storage cells in the second storage block is stopped. According to the computer system and the control method, normal work of the memorizers can be guaranteed, and new memorizers are not needed to be replaced immediately. Moreover, when few abnormal storage cells exist, a user can continue to use old memorizers, the new memorizers do not need to be purchased, and therefore cost is saved. In addition, when the scanning function is started, a larger storage block can be scanned if only a part of necessary starting programs is stored in a volatile memorizer.

Description

Computer system and control method
Technical field
The present invention relates to a kind of computer system, relate in particular to a kind of computer system of not using abnormal memory cell.Background technology
The main function of storer is storage data, can be divided into haply non-volatility memorizer (Non-volatile memory) and volatile storage (volatile memory).The data that volatile storage needs electric power to maintain it to store, and the data that non-volatility memorizer does not need electric power to maintain it to be stored.Take volatile storage as example, and generally speaking, memory inside has many memory cell, in order to store data.Yet, when data are stored in abnormal memory cell, because abnormal memory cell cannot provide correct data, thereby cause the running of computer system abnormal.Now, if user does not change storer immediately, cannot make computer system be operated in normal condition.
Summary of the invention
In order to overcome the defect of prior art, the invention provides a kind of computer system, comprise a first memory, a second memory and a control module.First memory is stored a Basic Input or Output System (BIOS) program.Second memory has one first memory block and one second memory block.When one scan function is activated, control module is carried out Basic Input or Output System (BIOS) program, in order to produce one first boot program.Control module is stored in the first boot program in the first memory block, and scans the second memory block, and stops using memory cell abnormal in the second memory block.
The present invention separately provides a kind of control method, is applicable to a volatile storage, and this volatile storage comprises one first memory block and one second memory block.Control method of the present invention judges whether one scan function is activated.When scan function is activated, carry out a Basic Input or Output System (BIOS) program, in order to produce one first boot program; The first boot program is stored in the first memory block; Scan the second memory block, in order to find out abnormal memory cell, and stop using abnormal memory cell.
The present invention can guarantee that storer normally works, and does not need the storer that more renews immediately.Moreover when abnormal memory cell is seldom time, user can continue to use old storer, and does not need to buy new storer, thereby save cost.Moreover, when starting scan function, if only the necessary boot program of part is stored in volatile storage, can scan larger memory block.
For the features and advantages of the present invention can be become apparent, cited below particularlyly go out preferred embodiment, and coordinate accompanying drawing, be described in detail below.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of computer system of the present invention.
Fig. 2 A and Fig. 2 B are the internal data schematic diagram of storer 130 of the present invention.
Fig. 3 is the schematic flow sheet of a control method of the present invention.
Wherein, description of reference numerals is as follows:
100: computer system;
110,130: storer;
120: control module;
210~270: memory block
310~318: step.
Embodiment
Fig. 1 is the schematic diagram of computer system of the present invention.As shown in the figure, computer system 100 comprises storer 110,130 and a control module 120.The present invention does not limit the kind of computer system 100.In a possibility embodiment, computer system 100 is a notebook computer (NB), a desktop personal computer (PC) or other electronic equipment.
Storer 110 storage one Basic Input or Output System (BIOS) (BIOS) programs.In a possibility embodiment, storer 110 is a non-volatility memorizer.In other embodiments, storer 110 is one to have serial peripheral interface (Serial peripheral interface; SPI) ROM (read-only memory) (ROM).In another possibility embodiment, storer 110 is that an electronics erasing type can be made carbon copies ROM (read-only memory) (Electrically-Erasable Programmable Read-Only Memory; EEPROM).
120 pairs of storeies 110 of control module and 130 data of storing are carried out access, in order to carry out corresponding program.In the present embodiment, the bios program that control module 120 execute stores 110 are stored, in order to produce a complete boot program, and is stored in complete boot program among storer 130.In a possibility embodiment, control module 120 is carried out the complete boot program that is stored in storer 130, in order to be written into an operating system program to storer 130.
Fig. 2 A is the internal data schematic diagram of storer 130 of the present invention.In the present embodiment, storer 130 is a volatile storage.As shown in the figure, storer 130 can be distinguished into memory block 210~230.The complete boot program of memory block 210 storage.Memory block 220 storage operation system programs.Memory block 230 is not stored any data.
When abnormality occurs computer system 100, as there is blue screen overdue and unredeemable pawn (Blue Screen Of Death; BSOD), the part memory cell of expression storer 130 occurs abnormal.Therefore, user can restart computer system 100, and enters BIOS setting picture, to start one scan function, in order to the state of swept memory 130.In another embodiment, when computer system 100 does not occur when machine, user can, in operating system (as WINDOWS), start one scan function.In other embodiments, user restarts computer system, then in operating system, starts the scan function of storer, or computer system 100 every a set time (as monthly or per season), just start voluntarily scan function.
No matter be to set in picture or in operating system at BIOS, as long as scan function is activated, just control module 120 is carried out a replacement action, as restart computer system 100.After the action of resetting, the part of the bios program that control module 120 execute stores 110 are stored, in order to produce a test boot program, and is stored in test boot program among storer 130.
The present invention does not limit the relation between test boot program and complete boot program.One may embodiment in, control module 120 only reads and the bios program of operating part, in order to produce a less test boot program, then test boot program is stored among storer 130.In this example, test boot program is less than complete boot program.In other embodiments, control module 120 is carried out all bios programs, and therefore, test boot program equals complete boot program.
Fig. 2 B is after scan function is activated, the inside block schematic diagram of storer 130.As shown in the figure, storer 130 is distinguished into memory block 240 and 250.Memory block 240 storage test boot programs.Memory block 250 is not stored any data.In the present embodiment, because test boot program is less than complete boot program, therefore, memory block 240 is less than memory block 210.In another may embodiment, when test boot program equals complete boot program, the large young pathbreaker of the memory block of storage test boot program equals to store the size of the memory block of complete boot program.
When control module 120 is stored in test boot program after memory block 240, control module 120 scanning memory block 250, and stop using memory cell abnormal in memory block 250.Therefore, user still can continue to use other the normal memory cell in storer 130, and has not been required to be some abnormal memory cell, the storer more renewing.
The present invention does not limit the abnormal memory cell how control module 120 finds out 130 li of storeies.In a possibility embodiment, control module 120 is stored in a preset data among memory block 250, then reads memory block 250.When reading out data is different from preset data, represent that corresponding memory cell occurs abnormal, therefore, the address of the memory cell of control module 120 recording exceptionals, and stop using abnormal memory cell.
In a possibility embodiment, control module 120, according to the address of abnormal memory cell, produces an exception record table, then this exception record table is stored in to itself or is stored among storer 110 or 130.After control module 120, storer 110 or 130 storage exception record tables, control module 120 is carried out the action of resetting again, and after the action of resetting, the bios program that execute store 110 is stored, in order to produce complete boot program, and complete boot program is stored in the memory block 210 of storer 130.As shown in Figure 2 A and 2 B, complete boot program is greater than test boot program, and therefore, the first procedure code of complete boot program will be stored in memory block 240, and the second procedure code of complete boot program will be stored in memory block 250.
Control module 120, according to exception record table, is not used memory cell abnormal in memory block 250.For example, when abnormal memory cell appears at memory block 260, control module 120 can't be stored in the procedure code of complete boot program the abnormal memory cell of 260 li of memory block.In addition, when abnormal memory cell appears at memory block 270 or 230, control module 120 can't be stored in any data the abnormal memory cell of memory block 270 or 230 li.
In a possibility embodiment, when the address of abnormal memory cell consecutive hours, control module 120 is not used this section of corresponding memory cell of continuation address.For example, when the memory cell of address 0001~0005 is abnormal, control module 120 is not used the memory cell of address 0001~0005.In another may embodiment, when the address of abnormal memory cell is while being discontinuous, a start address and a final position of control module 120 recording exceptional memory cell, and do not use start address to the memory cell between final address.For example, when the memory cell of address 0001,0005 and 0009 is abnormal, control module 120 is not used the memory cell of address 0001~0009.
The present invention does not limit the inside structure of control module 120.As long as the circuit framework of energy access memory, all can be used as control module 120.In a possibility embodiment, control module 120 has at least one central processing unit (CPU), at least one Memory Controller (Memory controller), a north bridge chips or the microprocessor of other kind or controller ... Deng.
Fig. 3 is the schematic flow sheet of a control method of the present invention.Control method proposed by the invention is applicable to the volatile storage in a computer system, and wherein volatile storage comprises one first memory block and one second memory block.First, judge whether one scan function is activated (step 310).When computer system generation unusual condition, as blue screen overdue and unredeemable pawn, represent that volatile storage occurs abnormal.Therefore, start one scan function, in order to find out the abnormal memory cell in volatile storage.In a possibility embodiment, reopen computer system, and enter in BIOS setting picture, start scan function, in order to scan volatile storage.In another possibility embodiment, in operating system, start scan function.
When scan function is activated, carry out a bios program, in order to produce one first boot program (step 311).In a possibility embodiment, bios program is stored in a non-volatility memorizer, as SPIROM or EEPROM.In other embodiments, when scan function is activated, first carry out a replacement action, in order to the computer system of resetting, then carry out bios program (step 311).
Then, store the first boot program in the first memory block of volatile storage (step 312), then scan the second memory block of volatile storage, in order to stop using memory cell (step 313) abnormal in the second memory block.The present invention does not limit how to scan the second memory block.In a possibility embodiment, by continuous or discrete scanning the second memory block.For example, a preset data, in continuous or discontinuous mode, is write in the second memory block, then in continuous or discontinuous mode, read the data that the second memory block is stored.By comparing preset data and reading out data, just can learn whether the second memory block has abnormal memory cell.
In another may embodiment, when note abnormalities memory cell time, the address of recording exceptional memory cell, to produce an exception record table.Then, stop making abnormal memory cell (step 314).In a possibility embodiment, exception record table and bios program are stored in non-volatility memorizer.In another possibility embodiment, exception record table is stored in volatile storage.
Then, get back to step 310, continue to judge whether scan function is activated.In a possibility embodiment, after execution of step 314, carry out a replacement action (not shown), in order to the computer system of resetting.And then judge whether scan function is activated (step 310).
When scan function is closed, carry out bios program, in order to produce one second boot program.In a possibility embodiment, the second boot program is same as the first boot program described in step 311.In another possibility embodiment, step 315 is carried out the whole of bios program, and step 311 is carried out the part of bios program, and therefore, the second boot program is greater than the first boot program described in step 311.
Store the second boot program (step 316).In a possibility embodiment, the second boot program is by the first boot program replacing in the first memory block.When the first boot program described in the second boot program is greater than step 311, a part for the second boot program (as the first procedure code) will be stored in the first memory block, and another part of the second boot program (as the second procedure code) will be stored in the second memory block.
Carry out the second boot program, in order to produce a job procedure code (step 317), and storage operation procedure code is in the second memory block (step 318).In a possibility embodiment, according to previous stored exception record table, do not use abnormal memory cell in this second memory block.Therefore, job procedure code can't be stored in the abnormal memory cell in the second memory block.
Because data can not be stored in abnormal memory cell, thus can guarantee that storer normally works, and user does not need the storer more renewing immediately.Moreover when abnormal memory cell is seldom time, user can continue to use old storer, and does not need to buy new storer, thereby save cost.Moreover, when starting scan function, if only the necessary boot program of part is stored in volatile storage, can scan larger memory block.
Unless otherwise defined, at this all vocabulary, all belong to (comprising technology and science vocabulary) those of ordinary skills' general understanding.In addition,, unless clear expression, it is consistent that the definition of vocabulary in general dictionary should be interpreted as in the article with its correlative technology field meaning, and should not be construed as perfect condition or too formal voice.
Although the present invention discloses as above with preferred embodiment; so it is not in order to limit the present invention; any those of ordinary skills; without departing from the spirit and scope of the present invention; when doing a little change and retouching, so the scope that protection scope of the present invention ought define depending on appended claim is as the criterion.

Claims (10)

1. a computer system, comprising:
One first memory, storage one Basic Input or Output System (BIOS) program;
One second memory, has one first memory block and one second memory block; And
One control module, when one scan function is activated, carry out this Basic Input or Output System (BIOS) program, in order to produce one first boot program, wherein this control module is stored in this first boot program in this first memory block, and scan this second memory block, and stop using abnormal memory cell in this second memory block.
2. computer system as claimed in claim 1, wherein when this scan function is not activated and this control module carries out this Basic Input or Output System (BIOS) program, this control module produces one second boot program, and this second boot program is same as this first boot program.
3. computer system as claimed in claim 1, wherein when this scan function is not activated and this control module carries out this Basic Input or Output System (BIOS) program, this control module produces one second boot program, this second boot program is greater than this first boot program, wherein this second boot program has one first procedure code and one second procedure code, this first procedure code is stored in this first memory block, in order to replace this first boot program, and this second procedure code is stored in this second memory block, when this control module is carried out this second boot program, to produce a job procedure code, this job procedure code is stored in this second memory block.
4. computer system as claimed in claim 1, wherein this control module is according to the address of abnormal memory cell, produce an exception record table, wherein store this exception record table for one of this control module, this first and second storer, when this scan function is activated, this control module is carried out a replacement action, and resets after action at this, carry out this Basic Input or Output System (BIOS) program, in order to produce this first boot program.
5. computer system as claimed in claim 4, wherein after this exception record table of storage of this control module, this first and second storer, this control module is carried out this replacement action again, and reset after action at this, carry out this Basic Input or Output System (BIOS) program, in order to produce this second boot program, and according to this exception record table, do not use abnormal memory cell in this second memory block.
6. computer system as claimed in claim 1, wherein this first memory is a non-volatility memorizer, this second memory is a volatile storage.
7. a control method, is applicable to a volatile storage, and this volatile storage comprises one first memory block and one second memory block, and this control method comprises:
Judge whether one scan function is activated; And
When this scan function is activated,
Carry out a Basic Input or Output System (BIOS) program, in order to produce one first boot program;
This first boot program is stored in this first memory block;
Scan this second memory block, in order to find out abnormal memory cell; And
Stop using abnormal memory cell.
8. control method as claimed in claim 7, also comprises:
When this scan function is not activated, carry out this Basic Input or Output System (BIOS) program, in order to produce one second boot program, wherein this second boot program is same as this first boot program.
9. control method as claimed in claim 7, also comprises:
When this scan function is not activated, carry out this Basic Input or Output System (BIOS) program, in order to produce one second boot program, this second boot program is greater than this first boot program;
Store one first procedure code of this second boot program in this first memory block;
Store one second procedure code of this second boot program in this second memory block;
Carry out this second boot program, in order to produce a job procedure code; And
Store this job procedure code in this second memory block.
10. control method as claimed in claim 9, also comprises:
According to the address of abnormal memory cell, produce an exception record table; And
Store this exception record table;
When this scan function is activated,
Carry out a replacement action; And
At this, reset after action, carry out this Basic Input or Output System (BIOS) program, in order to produce this first boot program;
After this exception record table of storage, again carry out this replacement action;
At this, reset after action, carry out this Basic Input or Output System (BIOS) program, in order to produce this second boot program; And
According to this exception record table, do not use abnormal memory cell in this second memory block.
CN201310148190.7A 2013-04-25 2013-04-25 Computer system and control method Pending CN104123232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310148190.7A CN104123232A (en) 2013-04-25 2013-04-25 Computer system and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310148190.7A CN104123232A (en) 2013-04-25 2013-04-25 Computer system and control method

Publications (1)

Publication Number Publication Date
CN104123232A true CN104123232A (en) 2014-10-29

Family

ID=51768652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310148190.7A Pending CN104123232A (en) 2013-04-25 2013-04-25 Computer system and control method

Country Status (1)

Country Link
CN (1) CN104123232A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108037958A (en) * 2017-12-21 2018-05-15 深圳市沃特沃德股份有限公司 The starting-up method and onboard system of onboard system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714112A (en) * 2008-10-03 2010-05-26 富士通株式会社 Computer apparatus
TW201113704A (en) * 2009-10-15 2011-04-16 Wistron Corp Method for recovering BIOS in computer system and computer system thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714112A (en) * 2008-10-03 2010-05-26 富士通株式会社 Computer apparatus
TW201113704A (en) * 2009-10-15 2011-04-16 Wistron Corp Method for recovering BIOS in computer system and computer system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108037958A (en) * 2017-12-21 2018-05-15 深圳市沃特沃德股份有限公司 The starting-up method and onboard system of onboard system

Similar Documents

Publication Publication Date Title
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
TWI489466B (en) Memory erasing method, memory controller and memory storage apparatus
TWI433157B (en) Method for accessing a flash memory and associated memory device
CN102033814B (en) Method for accessing flash memory and relevant memory device
TWI459400B (en) Memory stroage apparatus, and memolry controller and power control method
US20120254511A1 (en) Memory storage device, memory controller, and data writing method
CN101770809A (en) Recovery for non-volatile memory after power loss
CN1545654A (en) Method of rapid computer start-up
US8897092B2 (en) Memory storage device, memory controller and controlling method
CN102541690B (en) Intelligent card and method for recovering data
KR20130100879A (en) Electronic apparatus, method for restore of mbr and computer-readable recording medium
TWI459198B (en) Memory storage device, memory controller thereof, and method for identifying valid data
US20180143886A1 (en) Method for Rebuilding a Mapping Table of a Solid State Disk
TWI534707B (en) Computer system, shutdown and boot method thereof
CN104424047A (en) NVRAM data recovery method and NVRAM data recovery device
CN1848089A (en) Method and system for providing an auxiliary bios code in an auxiliary bios memory utilizing time expiry control
TWI493341B (en) Memory storage device and repairing method thereof
US9652259B2 (en) Apparatus and method for managing register information in a processing system
CN103377155A (en) Memorizer memory device, memorizer controller and power supply control method
CN104123232A (en) Computer system and control method
WO2023098269A1 (en) Solid-state drive processing method, system, and device, and non-volatile readable storage medium
TWI665606B (en) A system and a method for testing a data storage device
CN112035171B (en) Factory setting restoration method and system based on UEFI firmware
TWI511148B (en) Computer system and control method thereof
CN102779551B (en) Data writing method, storage controller and memory storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141029