CN103294406A - Controlling method, controlling device, storage device and electric device - Google Patents

Controlling method, controlling device, storage device and electric device Download PDF

Info

Publication number
CN103294406A
CN103294406A CN2012100558451A CN201210055845A CN103294406A CN 103294406 A CN103294406 A CN 103294406A CN 2012100558451 A CN2012100558451 A CN 2012100558451A CN 201210055845 A CN201210055845 A CN 201210055845A CN 103294406 A CN103294406 A CN 103294406A
Authority
CN
China
Prior art keywords
mapping table
electronic equipment
memory device
switching command
historical
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.)
Granted
Application number
CN2012100558451A
Other languages
Chinese (zh)
Other versions
CN103294406B (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210055845.1A priority Critical patent/CN103294406B/en
Publication of CN103294406A publication Critical patent/CN103294406A/en
Application granted granted Critical
Publication of CN103294406B publication Critical patent/CN103294406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a controlling method, a controlling device, a storage device and an electric device, wherein the controlling method is applied to a storage device which provides access service based on the mapping of a logical address and a physical address, and comprises the following steps: interacting with the electric device, receiving a switching indication which indicates to switch the current used mapping table to a previously saved historical mapping table, wherein the current used mapping table records the mapping relationship between the logical address and physical address of a first physical storage region in the storage device, and the historical mapping table records the mapping relationship between the logical address and physical address of a second physical storage region in the storage device; recording the switching indication to the storage devices; carrying out the switching indication when receiving a trigger indication; and setting the historical mapping table as the current used mapping table according to the switch indication, so as to enable the electric device to conduct access operation to the second physical storage region based on the historical mapping table.

Description

Control method, control device, memory device and electronic equipment
Technical field
The present invention relates to the field of electronic equipment, more specifically, the present invention relates to a kind of control method, control device, memory device and electronic equipment.
Background technology
A large amount of digital storage equipments that are different from traditional mechanical storage equipment (as the hard disk that carries out the data storage based on the CD-ROM drive head, CD etc.) have been arranged at present, as the SSD hard disk etc.The mapping of these digital storage equipment logic-based addresses and physical address provides access services, it provides logical address to conduct interviews to external electronic device, and realize logical address and physical address translations in inside by the mapping of logical address and physical address, the actual data access service in the physical address is provided then.
Yet prior art is not used at the data of this digital storage equipment a kind of convenient, flexible control method is provided.
Summary of the invention
The object of the present invention is to provide a kind of control method, control device, memory device and electronic equipment, can use for the data of digital storage equipment a kind of convenient, flexible control method is provided.
According to one embodiment of the invention, a kind of control method is provided, the mapping that is used for logic-based address and physical address provides the memory device of access services, and described control method comprises:
Mutual with electronic equipment, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address;
This switching command is recorded in this memory device;
When receiving a triggering command, carry out described switching command; And
According to described switching command, described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
Preferably, described triggering command receives or receives or receive from network equipment from external device (ED) from the BIOS of electronic equipment.
Preferably, described control method also comprises:
When receiving described triggering command, detect whether there is described switching command in this memory device, obtain a testing result;
If there is described switching command in described testing result indication, then automatically perform described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation; And
If there is not described switching command in the indication of described testing result, then described electronic equipment based on the mapping table of described current use to the described first physical storage areas accessing operation.
Preferably, according to described switching command, the mapping table that described historical mapping table is set to current use comprises:
Mutual with electronic equipment, obtain the historical mapping table that this is preserved in advance.
Preferably, mutual with electronic equipment, obtain this historical mapping table of preserving in advance and also comprise:
Receive first instruction of indication first mapping table from described electronic equipment;
Select described first mapping table as described historical mapping table according at least two mapping tables that described first instruction is stored from described memory device in advance.
Preferably, mutual with electronic equipment, obtain this historical mapping table of preserving in advance and also comprise:
Send the tabulation of all mapping tables of storage in advance that records of preserving in the described memory device in the second instruction back that receives from described electronic equipment to described electronic equipment, make electronic equipment to select described first mapping table based on described tabulation.
Preferably, described control method also comprises:
Second switching command is set in the BIOS of described electronic equipment, and this second switching command is used for selecting a mapping table from least two mapping tables that set in advance;
When electronic equipment starts, automatically perform described second switching command, and according to the mapping table of selecting to the memory device operation that conducts interviews.
Preferably, described control method also comprises:
Mutual with electronic equipment, receive one and switch after the instruction, detect the data in the same section of described first physical storage areas and second physical storage areas, obtain a testing result;
When described testing result indicates described data to be critical data, this switching command is recorded in this memory device;
When described testing result indicated described data to be non-critical data, directly described historical mapping table was set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
According to another embodiment of the present invention, a kind of control device is provided, the mapping that is used for logic-based address and physical address provides the memory device of access services, and described control device comprises:
Acquiring unit, be configured to electronic equipment mutual, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address;
Record cell is configured to this switching command is recorded in this memory device;
Performance element is configured to carry out described switching command when receiving a triggering command; And
Switch unit is configured to according to described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
Preferably, described triggering command receives or receives or receive from network equipment from external device (ED) from the BIOS of electronic equipment.
Preferably, described control device also comprises:
Detecting unit is configured to when receiving described triggering command, detects whether to have described switching command in this memory device, obtains a testing result;
Control module, there is described switching command if be configured to described testing result indication, then automatically perform described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation; And if there is not described switching command in described testing result indication, then described electronic equipment based on the mapping table of described current use to the described first physical storage areas accessing operation.
Preferably, described acquiring unit also is configured to:
Mutual with electronic equipment, obtain the historical mapping table that this is preserved in advance.
Preferably, described acquiring unit also is configured to:
Receive first instruction of indication first mapping table from described electronic equipment;
Select described first mapping table as described historical mapping table according at least two mapping tables that described first instruction is stored from described memory device in advance.
Preferably, described acquiring unit also is configured to:
Send the tabulation of all mapping tables of storage in advance that records of preserving in the described memory device in the second instruction back that receives from described electronic equipment to described electronic equipment, make electronic equipment to select described first mapping table based on described tabulation.
Preferably, second switching command is set in the BIOS of described electronic equipment, this second switching command is configured to select a mapping table from least two mapping tables that set in advance;
When electronic equipment starts, automatically perform described second switching command, and according to the mapping table of selecting to the memory device operation that conducts interviews.
Preferably, described control device also comprises:
Mutual with electronic equipment, receive one and switch after the instruction, detect the data in the same section of described first physical storage areas and second physical storage areas, obtain a testing result;
When described testing result indicates described data to be critical data, this switching command is recorded in this memory device;
When described testing result indicated described data to be non-critical data, directly described historical mapping table was set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
According to another embodiment of the present invention, a kind of memory device is provided, the mapping that is configured to logic-based address and physical address provides access services, and described memory device comprises:
Acquiring unit, be configured to electronic equipment mutual, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address;
Record cell is configured to this switching command is recorded in this memory device;
Performance element is configured to carry out described switching command when receiving a triggering command; And
Switch unit is configured to according to described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
According to another embodiment of the present invention, a kind of electronic equipment is provided, comprising:
Memory device, the mapping of its logic-based address and physical address provides access services,
Wherein, described memory device comprises:
Acquiring unit, be configured to electronic equipment mutual, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address;
Record cell is configured to this switching command is recorded in this memory device;
Performance element is configured to carry out described switching command when receiving a triggering command; And
Switch unit is configured to according to described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
In the specific embodiment of the invention, memory device and electronic equipment are mutual, receive one from electronic equipment and switch instruction, so that electronic equipment switches to second physical storage areas from first physical storage areas of memory device, and this switching command is asynchronous execution command, thereby avoids the system crash that causes during for critical data when the part that will switch.
Description of drawings
Fig. 1 is that diagram is according to the process flow diagram of the control method of first embodiment of the invention;
Fig. 2 is that diagram is according to the block diagram of the control device of first embodiment of the invention;
Fig. 3 is that diagram is according to the block diagram of the memory device of first embodiment of the invention; And
Fig. 4 is that diagram is according to the block diagram of the electronic equipment of first embodiment of the invention.
Embodiment
Below, describe embodiments of the invention with reference to the accompanying drawings in detail.
Fig. 1 is that diagram is according to the process flow diagram of the control method of first embodiment of the invention.
The mapping that is used for logic-based address and physical address according to the control method of the embodiment of the invention provides the memory device of access services, and this memory device for example is solid storage device.
In current digital storage equipment (as SSD hard disk etc.), the logical address of memory device and the corresponding relation of physical address can be saved as mapping table, namely, snapshot (snapshot), by the control to current mapping table, make the user to visit easily the data that former preservation is got off, for user's data of providing convenience are flexibly used control.For example, the user can be switched immediately by switching different mapping tables, thereby uses the different physical storage areas of memory device.
Yet, when switching different mapping tables, may there be such situation, that is, the physical storage areas that switch relates to system disk or the system data of the current operating system of using, and this change action will cause the collapse of operating system.
Consider this situation, made the present invention.The mapping that is applied to logic-based address and physical address according to the control method of first embodiment of the invention provides in the memory device of access services, and described control method 100 comprises:
Step S101: mutual with electronic equipment, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address.
In this step, memory device and electronic equipment are mutual, switch instruction to receive one, and described switching command indication memory device switches, thereby switches to a historical mapping table of preserving in advance from the mapping table of current use.The mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, that is to say that described memory device is in the logical address of first physical storage areas of using under the environment for use of current operation system and the mapping relations between the physical address.Described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address, that is to say, according to described switching command, the logical address of second storage area that described memory device will use and the mapping relations between the physical address.
Should be understood that the electronic equipment in the embodiment of the invention is all equipment that can use above-mentioned digital storage equipment, as computing machine, mobile phone, PDA etc.
Step S102: this switching command is recorded in this memory device.
In this step, this switching command is not carried out immediately, but is recorded in this memory device.That is to say that this switching command is asynchronous fill order.
This switching command can be recorded in the specific region of this memory device, for example in the system protection zone of this memory device, makes this switching command can not write rewriting by other data.
Step S103: when receiving a triggering command, carry out described switching command.
In this step, when described memory device receives triggering command, begin to carry out the switching command that has been recorded in wherein.That is to say that this switching command is just to begin to carry out before the triggering of specific triggering command.This triggering command can be from BIOS, external device (ED) or the network equipment etc. of electronic equipment.
Step S104: according to described switching command, described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
In this step, according to described switching command, the historical mapping table of appointment before is set to the current mapping table that will use, thereby makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.That is to say, electronic equipment is switched to operation scenario according to the operating system of historical mapping table.
In this embodiment of the present invention, for example, there are two kinds of situations: 1) when the system of this electronic equipment restarts, because the power supply of this memory device does not disconnect, be in "on" position, so this memory device can receive the triggering command of input always; 2) when this electronic equipment connection power supply became "on" position from off-position, this memory device was also connected power supply, so this memory device can receive the triggering command of input.
In addition, can receive at this memory device under the state of triggering command of input, for example can receive this triggering command from the BIOS of electronic equipment.In this case, for example when electronic equipment restarts, electronic equipment at first moves the firmware program among the BIOS, and before operating system is brought into use described memory device, from BIOS, send triggering command, the switching command of indicating this memory device to bring into operation and wherein stored, thus make this electronic equipment use the physical storage areas of this memory device of determining according to historical mapping table.
Alternately, for example when using as during the external device (ED) startup electronic equipment of CD, USB flash disk etc., can receive this triggering command from external device (ED), thereby this memory device begins to carry out the wherein switching command of storage according to this triggering command, thereby makes this electronic equipment use the physical storage areas of this memory device of determining according to historical mapping table.
Alternately, for example when starting electronic equipment from network equipment, can also receive this triggering command from network equipment, thereby this memory device begins to carry out the wherein switching command of storage according to this triggering command, thereby makes this electronic equipment use the physical storage areas of this memory device of determining according to historical mapping table.
In addition, when receiving described triggering command, need to detect in this memory device whether have described switching command, obtain a testing result.If there is described switching command in described testing result indication, then automatically perform described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.If there is not described switching command in the indication of described testing result, then described electronic equipment based on the mapping table of described current use to the described first physical storage areas accessing operation.For example, when when electronic equipment is restarted, importing the triggering command of execution switching command from the outside, need whether store this switching command in the specific region of this memory device of detection, only under the situation of having stored this switching command, just begin to carry out this switching command, and based on the historical mapping table of determining to the described second physical storage areas accessing operation.
In addition, according to described switching command, the mapping table that described historical mapping table is set to current use comprises: mutual with electronic equipment, obtain the historical mapping table that this is preserved in advance.For example, this memory device can be mutual with electronic equipment, receive first of indication first mapping table from described electronic equipment and instruct, and select described first mapping table as described historical mapping table according at least two mapping tables that described first instruction is stored from described memory device in advance.
For instance, suppose and preserve 3 mapping tables in the memory device in advance, be respectively mapping table 1, mapping table 2 and mapping table 3, at this moment, if the user has known this 3 mapping tables in advance, think directly to use mapping table 2, then can directly send first instruction by electronic equipment to memory device, wherein comprise the ID of mapping table 2 in this first instruction.
After memory device receives this first instruction, resolve the ID that this first instruction can obtain mapping table 2, just can be from mapping table 1, select mapping table 2 as historical mapping table in mapping table 2 and the mapping table 3, carry out subsequent treatment then.
Alternately, this memory device can send the tabulation of all mapping tables of storage in advance that records of preserving in the described memory device to described electronic equipment in the second instruction back that receives from described electronic equipment, makes electronic equipment to select described first mapping table based on described tabulation.
For instance, suppose and preserve 3 mapping tables in the memory device in advance, be respectively mapping table 1, mapping table 2 and mapping table 3.
When the user need select, send second instruction by described electronic equipment to memory device, the indication memory device is informed the mapping table situation;
Memory device is namely searched the mapping table of self preserving after receiving this second instruction, and namely mapping table 1, and mapping table 2 and mapping table 3 send the tabulation of all mapping tables of storage in advance that records of preserving in the described memory device to described electronic equipment then;
After electronic equipment receives tabulation, present this tabulation to the user.
The user selects mapping table 2 based on the mapping table tabulation that this presents, and then sends first instruction by electronic equipment to memory device, wherein comprises the ID of mapping table 2 in this first instruction.
After memory device receives this first instruction, resolve the ID that this first instruction can obtain mapping table 2, just can be from mapping table 1, select mapping table 2 as historical mapping table in mapping table 2 and the mapping table 3, carry out subsequent treatment then.
Described above in the memory device of switching command record, then the mode of asynchronous execution.
Yet the invention is not restricted to this.For example, can also in the BIOS of electronic equipment, switching command be set, this switching command is used for selecting a mapping table from least two mapping tables that set in advance, when electronic equipment starts, automatically perform described switching command, and according to the mapping table of selecting to the memory device operation that conducts interviews.
That is to say that in this case, switching command can be set in BIOS, after this switching command sent to memory device, memory device was carried out this switching command immediately, fed back to BIOS then.Thereby, after system starts, based on the mapping table after switching to the memory device operation that conducts interviews.
Therefore, for the technical problem to be solved in the present invention, key is mutual with electronic equipment, receives one and switches after the instruction, detects the data in the same section of described first physical storage areas and second physical storage areas, obtains a testing result.When described testing result indicates described data to be critical data (for example system data), this switching command is recorded in this memory device.When described testing result indicated described data to be non-critical data, directly described historical mapping table was set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
That is to say, when second physical storage areas that will switch relates to critical data (for example system data) in first physical storage areas of current use, need the asynchronous execution of this switching command, that is to say after restarting or after powering up again and carry out again.If do not relate to critical data, then can directly switch.
For instance, suppose that the user has installed an operating system A1 in the very first time, corresponding to the first physical storage areas B1, when the user uses operating system A1, use first mapping table that the B1 zone of memory device is conducted interviews.
Suppose that the user has installed an operating system A2 in second time, corresponding to the second physical storage areas B2, when the user uses operating system A2, use second mapping table that the B2 zone of memory device is conducted interviews.
When the user when using operating system A1, the user can send switching command by operating system, this switching command indication switches to operating system A2.Under situation of the present invention, need to detect earlier the critical data whether second physical storage areas B2 relates to the operating system A1 among the first physical storage areas B1, and when testing result indicates this switching to relate to the critical data of operating system A1 of the first physical storage areas B1, determine this switching command not carry out immediately, but this switching command is recorded in the memory device, and when restarting or power up again, carry out according to trigger command.
Certainly, also can not carry out above detection, but directly this switching command is recorded in the memory device, and when restarting or power up again, carry out according to trigger command.
According to control method of the present invention, can carry out switching command asynchronously, thereby avoid when switching command relates to the critical data of operating system, causing the collapse of operating system, using for the data of digital storage equipment provides a kind of convenient, flexible control method.
Control method according to the embodiment of the invention has been described above, below with reference to the control device of Fig. 2 description according to the embodiment of the invention.
The mapping that is applied to logic-based address and physical address according to the control device of the embodiment of the invention provides in the memory device of access services, and this control device is carried out the control method according to the embodiment of the invention.
Described control device 200 comprises:
Acquiring unit 201, be configured to electronic equipment mutual, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address;
Record cell 202 is configured to this switching command is recorded in this memory device;
Performance element 203 is configured to carry out described switching command when receiving a triggering command; And
Switch unit 204 is configured to according to described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
Preferably, described triggering command receives or receives or receive from network equipment from external device (ED) from the BIOS of electronic equipment.
Preferably, described control device 200 also comprises:
Detecting unit 205 is configured to when receiving described triggering command, detects whether to have described switching command in this memory device, obtains a testing result;
Control module 206, there is described switching command if be configured to described testing result indication, then automatically perform described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation; And if there is not described switching command in described testing result indication, then described electronic equipment based on the mapping table of described current use to the described first physical storage areas accessing operation.
Preferably, described acquiring unit 201 also is configured to electronic equipment mutual, obtains the historical mapping table that this is preserved in advance.
Preferably, described acquiring unit 201 also is configured to: receive first instruction of indication first mapping table from described electronic equipment; Select described first mapping table as described historical mapping table according at least two mapping tables that described first instruction is stored from described memory device in advance.
Preferably, described acquiring unit 201 also is configured to: send the tabulation of all mapping tables of storage in advance that records of preserving in the described memory device in the second instruction back that receives from described electronic equipment to described electronic equipment, make electronic equipment to select described first mapping table based on described tabulation.
Preferably, second switching command is set in the BIOS of described electronic equipment, this second switching command is configured to select a mapping table from least two mapping tables that set in advance; When electronic equipment starts, automatically perform described second switching command, and according to the mapping table of selecting to the memory device operation that conducts interviews.
Preferably, wherein, described control device also comprises:
Mutual with electronic equipment, receive one and switch after the instruction, detect the data in the same section of described first physical storage areas and second physical storage areas, obtain a testing result;
When described testing result indicates described data to be critical data, this switching command is recorded in this memory device;
When described testing result indicated described data to be non-critical data, directly described historical mapping table was set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
According to control device of the present invention, can carry out switching command asynchronously, thereby avoid when switching command relates to the critical data of operating system, causing the collapse of operating system, using for the data of digital storage equipment provides a kind of convenient, flexible control method.
Then, according to the memory device of Fig. 3 description according to the embodiment of the invention.
The mapping that is configured to logic-based address and physical address according to the memory device 300 of the embodiment of the invention provides access services, and described memory device 300 for example comprises above-mentioned control device.Particularly, this memory device 300 can comprise:
Acquiring unit 301, be configured to electronic equipment mutual, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device 300 and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device 300 and the mapping relations between the physical address;
Record cell 302 is configured to this switching command is recorded in this memory device 300;
Performance element 303 is configured to carry out described switching command when receiving a triggering command; And
Switch unit 304 is configured to according to described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
According to memory device of the present invention, can carry out switching command asynchronously, thereby avoid when switching command relates to the critical data of operating system, causing the collapse of operating system, using for the data of digital storage equipment provides a kind of convenient, flexible control method.
Then, according to the electronic equipment of Fig. 4 description according to the embodiment of the invention.This electronic equipment comprises according to the memory device of the embodiment of the invention and other element, as display unit, CPU (central processing unit) etc.For convenience, not shown in the drawings other element and the description of having omitted other element.
This electronic equipment 400 comprises:
Memory device 401, the mapping of its logic-based address and physical address provides access services,
Wherein, described memory device 401 comprises:
Acquiring unit 402, be configured to electronic equipment 400 mutual, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device 401 and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device 401 and the mapping relations between the physical address;
Record cell 403 is configured to this switching command is recorded in this memory device 401;
Performance element 404 is configured to carry out described switching command when receiving a triggering command; And
Switch unit 405 is configured to according to described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment 400 can be based on described historical mapping table to the described second physical storage areas accessing operation.
According to electronic installation of the present invention, can carry out switching command asynchronously, thereby avoid causing when switching command relates to the critical data of operating system the collapse of operating system, using for the data of the digital storage equipment in the electronic equipment provides a kind of convenient, flexible control method.
Several preferred embodiments of the present invention has been described above, need to prove, in this manual, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.Do not having under the situation of more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
At last, need to prove also that above-mentioned a series of processing not only comprise the processing of carrying out by the time sequence with order described here, and comprise parallel or respectively rather than the processing of carrying out in chronological order.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware.Based on such understanding, all or part of can the embodying with the form of software product that technical scheme of the present invention contributes to background technology, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
More than the present invention is described in detail, used specific case herein principle of the present invention and embodiment set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (18)

1. control method, the mapping that is used for logic-based address and physical address provides the memory device of access services, and described control method comprises:
Mutual with electronic equipment, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address;
This switching command is recorded in this memory device;
When receiving a triggering command, carry out described switching command; And
According to described switching command, described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
2. control method according to claim 1, wherein said triggering command receives or receives or receive from network equipment from external device (ED) from the BIOS of electronic equipment.
3. control method according to claim 1 also comprises:
When receiving described triggering command, detect whether there is described switching command in this memory device, obtain a testing result;
If there is described switching command in described testing result indication, then automatically perform described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation; And
If there is not described switching command in the indication of described testing result, then described electronic equipment based on the mapping table of described current use to the described first physical storage areas accessing operation.
4. according to the control method of claim 1, wherein according to described switching command, the mapping table that described historical mapping table is set to current use comprises:
Mutual with electronic equipment, obtain the historical mapping table that this is preserved in advance.
5. according to the control method of claim 4, wherein mutual with electronic equipment, obtain this historical mapping table of preserving in advance and also comprise:
Receive first instruction of indication first mapping table from described electronic equipment;
Select described first mapping table as described historical mapping table according at least two mapping tables that described first instruction is stored from described memory device in advance.
6. control method according to claim 5 is wherein mutual with electronic equipment, obtains this historical mapping table of preserving in advance and also comprises:
Send the tabulation of all mapping tables of storage in advance that records of preserving in the described memory device in the second instruction back that receives from described electronic equipment to described electronic equipment, make electronic equipment to select described first mapping table based on described tabulation.
7. control method according to claim 1 also comprises:
Second switching command is set in the BIOS of described electronic equipment, and this second switching command is used for selecting a mapping table from least two mapping tables that set in advance;
When electronic equipment starts, automatically perform described second switching command, and according to the mapping table of selecting to the memory device operation that conducts interviews.
8. control method according to claim 1 also comprises:
Mutual with electronic equipment, receive one and switch after the instruction, detect the data in the same section of described first physical storage areas and second physical storage areas, obtain a testing result;
When described testing result indicates described data to be critical data, this switching command is recorded in this memory device;
When described testing result indicated described data to be non-critical data, directly described historical mapping table was set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
9. control device, the mapping that is used for logic-based address and physical address provides the memory device of access services, and described control device comprises:
Acquiring unit, be configured to electronic equipment mutual, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address;
Record cell is configured to this switching command is recorded in this memory device;
Performance element is configured to carry out described switching command when receiving a triggering command; And
Switch unit is configured to according to described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
10. control device as claimed in claim 9, wherein said triggering command receives or receives or receive from network equipment from external device (ED) from the BIOS of electronic equipment.
11. control device as claimed in claim 9 also comprises:
Detecting unit is configured to when receiving described triggering command, detects whether to have described switching command in this memory device, obtains a testing result;
Control module, there is described switching command if be configured to described testing result indication, then automatically perform described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation; And if there is not described switching command in described testing result indication, then described electronic equipment based on the mapping table of described current use to the described first physical storage areas accessing operation.
12. according to the control device of claim 9, wherein said acquiring unit also is configured to:
Mutual with electronic equipment, obtain the historical mapping table that this is preserved in advance.
13. according to the control device of claim 12, wherein said acquiring unit also is configured to:
Receive first instruction of indication first mapping table from described electronic equipment;
Select described first mapping table as described historical mapping table according at least two mapping tables that described first instruction is stored from described memory device in advance.
14. control device according to claim 13, wherein said acquiring unit also is configured to:
Send the tabulation of all mapping tables of storage in advance that records of preserving in the described memory device in the second instruction back that receives from described electronic equipment to described electronic equipment, make electronic equipment to select described first mapping table based on described tabulation.
15. control device according to claim 9 wherein, arranges second switching command in the BIOS of described electronic equipment, this second switching command is configured to select a mapping table from least two mapping tables that set in advance;
When electronic equipment starts, automatically perform described second switching command, and according to the mapping table of selecting to the memory device operation that conducts interviews.
16. control device according to claim 9 also comprises:
Mutual with electronic equipment, receive one and switch after the instruction, detect the data in the same section of described first physical storage areas and second physical storage areas, obtain a testing result;
When described testing result indicates described data to be critical data, this switching command is recorded in this memory device;
When described testing result indicated described data to be non-critical data, directly described historical mapping table was set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
17. a memory device, the mapping that is configured to logic-based address and physical address provides access services, and described memory device comprises:
Acquiring unit, be configured to electronic equipment mutual, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address;
Record cell is configured to this switching command is recorded in this memory device;
Performance element is configured to carry out described switching command when receiving a triggering command; And
Switch unit is configured to according to described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
18. an electronic equipment comprises:
Memory device, the mapping of its logic-based address and physical address provides access services,
Wherein, described memory device comprises:
Acquiring unit, be configured to electronic equipment mutual, receive one and switch instruction, described switching command indication switches to a historical mapping table of preserving in advance from the mapping table of current use, the mapping table of described current use has recorded the logical address of first physical storage areas in the described memory device and the mapping relations between the physical address, and described historical mapping table has recorded the logical address of second physical storage areas in the described memory device and the mapping relations between the physical address;
Record cell is configured to this switching command is recorded in this memory device;
Performance element is configured to carry out described switching command when receiving a triggering command; And
Switch unit is configured to according to described switching command, and described historical mapping table is set to the mapping table of current use, makes that described electronic equipment can be based on described historical mapping table to the described second physical storage areas accessing operation.
CN201210055845.1A 2012-03-05 2012-03-05 Control method, control device, storage device and electronic equipment Active CN103294406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210055845.1A CN103294406B (en) 2012-03-05 2012-03-05 Control method, control device, storage device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210055845.1A CN103294406B (en) 2012-03-05 2012-03-05 Control method, control device, storage device and electronic equipment

Publications (2)

Publication Number Publication Date
CN103294406A true CN103294406A (en) 2013-09-11
CN103294406B CN103294406B (en) 2016-08-17

Family

ID=49095367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210055845.1A Active CN103294406B (en) 2012-03-05 2012-03-05 Control method, control device, storage device and electronic equipment

Country Status (1)

Country Link
CN (1) CN103294406B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908339A (en) * 2018-09-18 2020-03-24 发那科株式会社 Numerical controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7346758B1 (en) * 2005-05-10 2008-03-18 Advanced Micro Devices, Inc. System and method for trace messaging
CN101673581A (en) * 2008-06-13 2010-03-17 三星电子株式会社 Memory system and method of accessing a semiconductor memory device
EP2275930A1 (en) * 1999-01-28 2011-01-19 ATI Technologies ULC Executing programs for a first computer architecture on a computer of a second architecture

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2275930A1 (en) * 1999-01-28 2011-01-19 ATI Technologies ULC Executing programs for a first computer architecture on a computer of a second architecture
US7346758B1 (en) * 2005-05-10 2008-03-18 Advanced Micro Devices, Inc. System and method for trace messaging
CN101673581A (en) * 2008-06-13 2010-03-17 三星电子株式会社 Memory system and method of accessing a semiconductor memory device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908339A (en) * 2018-09-18 2020-03-24 发那科株式会社 Numerical controller
CN110908339B (en) * 2018-09-18 2024-03-15 发那科株式会社 Numerical controller

Also Published As

Publication number Publication date
CN103294406B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN105700901B (en) Starting method, device and computer system
KR20180097674A (en) Memory reclaim method and apparatus
CN105045514A (en) Application process management method and terminal
TWI386852B (en) System for switching bios and method thereof
CN107566624B (en) Display method for power consumption and temperature of terminal, terminal and computer readable storage medium
CN103793256A (en) Method for management of memory cards, and electronic device
US20140195794A1 (en) Electronic device with baseboard management controller updating system
CN102446104A (en) Method for starting up computer system
WO2014173211A1 (en) Code coverage testing method, device and system
CN105022955A (en) Locking method and mobile terminal of application program
US10089162B2 (en) Method for maintaining file system of computer system
US10248538B2 (en) Controller of semiconductor memory device for detecting event and storing event information and operating method thereof
CN104820619A (en) Application program switching method and device for mobile terminal
CN103019833A (en) Terminal equipment and method for enabling same to support quick switching of operating systems
CN104517067A (en) Method, device and system for data access
CN104516779A (en) System switching method and chip
CN103294406A (en) Controlling method, controlling device, storage device and electric device
CN109634782B (en) Method and device for detecting system robustness, storage medium and terminal
CN106030544B (en) Method for detecting memory of computer equipment and computer equipment
US9904402B2 (en) Mobile terminal and method for input control
CN111475435A (en) Storage medium sharing method and device, electronic equipment and storage medium
US7934073B2 (en) Method for performing jump and translation state change at the same time
EP3690652A1 (en) Fault processing method for terminal device and terminal device
EP2829974A2 (en) Memory dump method, information processing apparatus and program
US20140181492A1 (en) Method of booting an electronic system and an electronic system applying the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant