CN100517177C - Combined type reset system processing method and device - Google Patents

Combined type reset system processing method and device Download PDF

Info

Publication number
CN100517177C
CN100517177C CNB2006101505507A CN200610150550A CN100517177C CN 100517177 C CN100517177 C CN 100517177C CN B2006101505507 A CNB2006101505507 A CN B2006101505507A CN 200610150550 A CN200610150550 A CN 200610150550A CN 100517177 C CN100517177 C CN 100517177C
Authority
CN
China
Prior art keywords
reset
reset interrupt
function
interrupt
handled
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.)
Expired - Fee Related
Application number
CNB2006101505507A
Other languages
Chinese (zh)
Other versions
CN101165630A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2006101505507A priority Critical patent/CN100517177C/en
Publication of CN101165630A publication Critical patent/CN101165630A/en
Application granted granted Critical
Publication of CN100517177C publication Critical patent/CN100517177C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The method comprises: initializing the reset system; when the reset signal is inputted into the reset controller; the reset controller generates a reset interruption signal which is sent to the processor in order to open the reset timer; the processor calls the reset interruption service program, and sends the mark of interruption type, the reset information and abnormal log to the relevant data area in the memory device; calling the reset interruption processing function; executing the record of the abnormal information; saving the information data; stopping the protection measure for the memory; deciding if the execution of reset interruption processing function is completed; if yes, then continuing the calling; when the reset time is out, the reset controller outputs the reset signals in order to make the processor and relevant device to complete the reset function.

Description

A kind of combined type reset system processing method and device
Technical field
The invention belongs to the reset processing technology on the related hardware equipment such as mobile communication, network, relate in particular to one kind of multiple reset mode combined type reset system processing method and devices.
Background technology
Development along with communication industry, the function and the performance of communication product are become stronger day by day, and the complexity of communication system and level of integrated system also are more and more higher, and the reset circuit type in system is also more and more, reset mode also becomes increasingly complex, and needs a complete system to come unified management.
In common communication product equipment, have mainboard in manual reset circuit, watchdog reset circuit, the main and standby boards standby system reset circuit of slave board and the main system in the multicomputer system reset circuit of system fully that resets that resets, these reset circuits effectively control system reset.
At numerous reset circuit on the system equipment, as long as there is one to be triggered, will make system restart, if there are not effective controlling recording means, be that can't to distinguish be which reset circuit impels device systems to reset, specifically positioning system resets and failure cause, also can't allow system software make suitable effective processing at different reset types, is unfavorable for effective performance of device reset function.
Summary of the invention
Therefore technical matters to be solved by this invention provides the disposal route and the device of one kind of multiple reset mode combined type reset systems, the present invention is directed to numerous reset passages and reset circuit, centralized control, unified management, processing respectively can solve and can't specifically locate problems such as reset types and reset circuit.
The present invention specifically is achieved in that
1, a kind of combined type reset system processing method, this method comprises the steps:
1-1, resetting system is carried out initialization;
1-2, when reset signal enters reset controller, reset controller is distinguished reset types and is also produced the reset interrupt signal and give processor, opens the timer that resets simultaneously;
1-3, processor call the reset interrupt service routine, and reset interrupt type code and some other repositioning information and abnormal log are kept in the relative data area of memory device;
1-4, call reset interrupt and handle function, the executive logging abnormal information, preserve information data and stop the safeguard measure of memory device operation;
1-5, judge that reset interrupt handles function and whether call and be finished, be not finished, then continue to call if call;
1-6, the timer timing that resets arrive, and reset controller output reset signal impels processor and relevant device to finish reset function.
2, as 1 described combined type reset system processing method, step 1-1 specifically comprises:
2-1, establishment repositioning information record sheet structure and reset interrupt are handled the functional-link list structure, create memory device and also open up one section storage space as the data field of depositing repositioning information and abnormal log;
2-2, initial reset information record sheet;
2-3, initial reset Interrupt Process function chained list;
2-4, to reset interrupt signal allocation interrupt number and interrupt vector table, the reset interrupt service routine is installed, open and interrupt enabling;
2-5, upper layer software (applications) call the registration interface function that reset interrupt is handled the function chained list, register the different reset interrupt of bringing ginseng into and handle function in reset interrupt processing function chained list;
2-6, initialization finish.
3, as 2 described combined type reset system processing methods, step 2-5 specifically comprises:
The registration reset interrupt is handled function name, the priority parameters of function and is handled in the function chained list to reset interrupt.
4, as 3 described combined type reset system processing methods, step 1-3 specifically comprises:
The reset interrupt service routine reads the reset types register that reset controller provides, judge the reset interrupt type, then according to the information record sheet address of last reset interrupt service routine, order increasing informatio record sheet address is in reset interrupt type code and some other repositioning information and the relative data area of abnormal log with the form write storage device of repositioning information record sheet structure.
5, as 3 or 4 described combined type reset system processing methods, step 1-4 specifically comprises:
According to priority order is called reset interrupt from high to low successively and is handled function from reset interrupt processing function chained list, reset interrupt is handled function and is judged reset interrupt processing function is gone into to join whether consistent with the reset interrupt type, if unanimity is just carried out reset interrupt and is handled function, if the inconsistent execution that just stops reset interrupt processing function.
6, a kind of combined type reset system treating apparatus comprises:
The resetting system initialization module;
Reset controller, be used for distinguishing the reset interrupt signal of reset types and generation correspondence and opening the timer that resets of its inside according to detected reset signal, while set-reset type register, the timer timing arrives when resetting, reset controller output reset signal impels relevant device to finish reset function;
Processor links to each other with reset controller, when receiving the reset interrupt signal, calls the reset interrupt service routine and collects reset interrupt type code and some other repositioning information and abnormal log; Call reset interrupt simultaneously and handle function, the executive logging abnormal information, preserve information data and stop the safeguard measure of memory device operation, and judge whether reset interrupt processing function calls and be finished, be not finished, then continue to call if call;
Memory device links to each other with processor, is used for reset interrupt type code that processor is collected and some other repositioning information and abnormal log and is kept at wherein relative data area.
7, as 6 described combined type reset system treating apparatus, the resetting system initialization module is carried out following operation:
7-1, establishment repositioning information record sheet structure and reset interrupt are handled the functional-link list structure, create memory device and also open up one section storage space as the data field of depositing repositioning information and abnormal log;
7-2, initial reset information record sheet;
7-3, initial reset Interrupt Process function chained list;
7-4, to reset interrupt signal allocation interrupt number and interrupt vector table, the reset interrupt service routine is installed, open and interrupt enabling;
7-5, upper layer software (applications) call the registration interface function that reset interrupt is handled the function chained list, register the different reset interrupt of bringing ginseng into and handle function in reset interrupt processing function chained list;
7-6, initialization finish.
8, as 7 described combined type reset system treating apparatus, the reset interrupt processing function of bringing ginseng into that registration is different among the operation 7-5 specifically comprises:
The registration reset interrupt is handled function name, the priority parameters of function.
9, as 8 described combined type reset system treating apparatus, described processor calls the reset interrupt service routine and collects reset interrupt type code and some other repositioning information and abnormal log and be kept in the relative data area of memory device and specifically be meant:
The reset interrupt service routine reads the reset types register that reset controller provides, judge the reset interrupt type, then according to the information record sheet address of last reset interrupt service routine, order increasing informatio record sheet address is in reset interrupt type code and some other repositioning information and the relative data area of abnormal log with the form write storage device of repositioning information record sheet structure.
10, as 8 or 9 described combined type reset system treating apparatus, described processor calls reset interrupt processing function and specifically is meant:
According to priority order is called reset interrupt from high to low successively and is handled function from reset interrupt processing function chained list, reset interrupt is handled function and is judged reset interrupt processing function is gone into to join whether consistent with the reset interrupt type, if unanimity is just carried out reset interrupt and is handled function, if the inconsistent execution that just stops reset interrupt processing function.
Owing to adopted said method and device, the present invention compared with prior art has the following advantages:
The present invention is after board resetting, according to the unified management of many reset types, adopt reset interrupt to handle the function register method, make things convenient for other subsystem flexible processing, can effectively write down different reset types and each subsystem operate as normal daily record or abnormal work daily record, and at different reset types, each subsystem software is selectively made the protection processing different to equipment; Adopt reset interrupt to handle the method for function processed, guaranteed that relatively important information at first obtains recorded and stored and processing.
Adopt the present invention, shortened the time of location and treatment facility reset circuit or other failure cause, improved efficient the system equipment protection.
Description of drawings
Fig. 1 is a realization principle schematic of the present invention;
Fig. 2 is the initialization flowchart of resetting system;
Fig. 3 is when reset signal is arranged, the processing flow chart of resetting system.
Embodiment
Below in conjunction with accompanying drawing specific implementation process of the present invention is further described:
One, the present invention realizes the unified control of multiple reset mode resetting system, mainly is made up of following treatment step:
The reseting signal line of various reset passages or reset circuit is linked into reset controller, reset controller control effectively to each reset signal, when reset signal enters reset controller, the reset interrupt signal that reset controller is distinguished reset types and produced this reset signal is given processor, while set-reset type register, processor receives after the reset interrupt signal, trigger the interrupt service routine that this type resets, the reset interrupt service routine is by the affairs of predetermined processing priority process user registration, reset controller starts the timer that resets wherein simultaneously, behind the timer expiry that resets, export reset signal, make processor and relevant device enter reset mode.
The realization of reset interrupt service routine is to adopt reset interrupt to handle the function process registration.Promptly create a reset interrupt and handle the function chained list, chained list is made up of function name, function priority and function address pointer.In the reset interrupt service routine, need the function handled, when the single-board device power-up initializing, each subsystem software is handled the registration interface function registration reset interrupt processing function of function chained list by calling reset interrupt, the registration interface function is handled the priority orders of function according to the reset interrupt of registration, is registered to reset interrupt by from high to low priority orders and handles in the function chained list.When reset interrupt signal triggering reset interrupt service routine moved, the reset interrupt service routine was handled the function chained list from reset interrupt, handles function priority according to reset interrupt, and reset interrupt processing function is carried out in calling of order.Adopt reset interrupt to handle the method for function login mechanism and processed, made things convenient for other subsystem to use reset interrupt to handle function flexibly, guaranteed that relatively important information at first obtains recorded and stored and processing.
It is the reset interrupt of which kind of type according to going into to join the WORD32*pdwResetReason differentiation that reset interrupt is handled function, make different treatment measures according to dissimilar reset interrupt, while recording reset types and other abnormal informations also are saved in the memory device.Because of reset interrupt signal timer time limited length that resets in reset controller when effective, need the strict reset interrupt of definition to handle function priority, make key message, critical event priority processing.
Two, detailed process of the present invention:
Fig. 1 is a realization principle schematic of the present invention.As shown in Figure 1, reset types 1, reset types 2, reset types 3 is represented reset types different more than three and three with reset types N, reset types unifications different more than three and three are linked into reset controller, a plurality of reset signals by the different reset types outputs of reset controller unified management with control, distinguish reset types and produce corresponding reset interrupt signal according to different reset signals by reset controller to processor, processor receives after the reset interrupt signal, carry out the reset interrupt service routine, the reset interrupt service routine is according to different reset interrupt types, except recording reset types and abnormal log and being kept in the memory device, also in time preserve information data, stop safeguard measures such as memory device operation; When reset controller was sent the reset interrupt signal, set-reset type register was also opened the timer that resets, when timing then, reset controller is sent reset signal to processor and relevant device, processor and relevant device are finished reset function.
Fig. 2 is the initialization flow process of resetting system, and its step is as follows:
2-1: create repositioning information record sheet structure and reset interrupt and handle the functional-link list structure, create memory device and open up one section storage space as the data field of depositing repositioning information and abnormal log;
2-2: initial reset information record sheet;
2-3: initial reset Interrupt Process function chained list;
2-4: to reset interrupt signal allocation interrupt number and interrupt vector table, the reset interrupt service routine is installed, is opened and interrupt enabling;
2-5: upper layer software (applications) calls the registration interface function that reset interrupt is handled the function chained list, register the different reset interrupt processing functions of bringing ginseng into and in reset interrupt processing function chained list, (comprise that registering reset interrupt handles parameters such as the function name of function, priority in reset interrupt processing function chained list, the ginseng of going into that reset interrupt is handled function is used for distinguishing execution processing in the interrupt service routine of any reset types, and the reset interrupt service routine is handled function priority order from high to low according to reset interrupt in the reset interrupt processing function chained list and carried out; After reset interrupt is handled the function registration, when software normally moves, can call reset interrupt processing function and check interface, check function name and its processing priority of the reset interrupt processing function correspondence of registering in the reset interrupt processing function chained list at any time);
2-6: initialization finishes.
Fig. 3 is when reset signal is arranged, the treatment scheme of resetting system, and its step is as follows:
3-1: the timer that resets in the reset controller is started working;
3-2: reset interrupt signal triggering processor calls the reset interrupt service routine;
3-3: the reset interrupt service routine reads the reset types register that reset controller provides, judge the reset interrupt type, then according to the information record sheet address of last reset interrupt service routine, order increasing informatio record sheet address is in reset interrupt type code and some other repositioning information and the relative data area of abnormal log with the form write storage device of repositioning information record sheet structure;
3-4: handle the reset interrupt of calling high priority the function chained list from reset interrupt and handle function, reset interrupt is handled function and is mainly finished recording exceptional information, in time preserves information data and stop defencive function such as memory device operation, reset interrupt handle function judge reset interrupt handle function go into to join (WORD32*pdwResetReason) whether consistent with the reset interrupt type, if unanimity is just carried out reset interrupt and is handled function, if the inconsistent execution that just stops reset interrupt processing function;
3-5: the reset interrupt service routine judges that reset interrupt handles reset interrupt in the function chained list and handle function and whether call and be finished, be not finished if call, the reset interrupt processing function priority orders of handling in the function chained list by reset interrupt continues to call successively from high to low, handles function calls until all reset interrupt and is finished;
3-6: the timer timing that resets is to (in execution in step 3-2 to 3-5 process, timer is worked simultaneously), and timer quits work, and reset controller output reset signal impels processor and relevant device to finish reset function.

Claims (8)

1, a kind of combined type reset system processing method is characterized in that, this method comprises the steps:
1-1, resetting system is carried out initialization, that is, 2-1, create repositioning information record sheet structure and reset interrupt is handled the functional-link list structure, create memory device and also open up one section storage space as the data field of depositing repositioning information and abnormal log; 2-2, initial reset information record sheet; 2-3, initial reset Interrupt Process function chained list; 2-4, to reset interrupt signal allocation interrupt number and interrupt vector table, the reset interrupt service routine is installed, open and interrupt enabling; 2-5, upper layer software (applications) call the registration interface function that reset interrupt is handled the function chained list, register the different reset interrupt of bringing ginseng into and handle function in reset interrupt processing function chained list; 2-6, initialization finish;
1-2, when reset signal enters reset controller, reset controller is distinguished reset types and is also produced the reset interrupt signal and give processor, opens the timer that resets simultaneously;
1-3, processor call the reset interrupt service routine, and reset interrupt type code and some other repositioning information and abnormal log are kept in the relative data area of memory device;
1-4, call reset interrupt and handle function, the executive logging abnormal information, preserve information data and stop the safeguard measure of memory device operation;
1-5, judge that reset interrupt handles function and whether call and be finished, be not finished, then continue to call if call;
1-6, the timer timing that resets arrive, and reset controller output reset signal impels processor and relevant device to finish reset function.
2, combined type reset system processing method as claimed in claim 1 is characterized in that, step 2-5 specifically comprises:
The registration reset interrupt is handled function name, the priority parameters of function and is handled in the function chained list to reset interrupt.
3, combined type reset system processing method as claimed in claim 2 is characterized in that, step 1-3 specifically comprises:
The reset interrupt service routine reads the reset types register that reset controller provides, judge the reset interrupt type, then according to the information record sheet address of last reset interrupt service routine, order increasing informatio record sheet address is in reset interrupt type code and some other repositioning information and the relative data area of abnormal log with the form write storage device of repositioning information record sheet structure.
4, as claim 2 or 3 described combined type reset system processing methods, it is characterized in that step 1-4 specifically comprises:
According to priority order is called reset interrupt from high to low successively and is handled function from reset interrupt processing function chained list, reset interrupt is handled function and is judged reset interrupt processing function is gone into to join whether consistent with the reset interrupt type, if unanimity is just carried out reset interrupt and is handled function, if the inconsistent execution that just stops reset interrupt processing function.
5, a kind of combined type reset system treating apparatus is characterized in that, comprising:
The resetting system initialization module is used to carry out following operation: 1, create repositioning information record sheet structure and reset interrupt and handle the functional-link list structure, create memory device and open up one section storage space as the data field of depositing repositioning information and abnormal log; 2, initial reset information record sheet; 3, initial reset Interrupt Process function chained list; 4, to reset interrupt signal allocation interrupt number and interrupt vector table, the reset interrupt service routine is installed, open and interrupt enabling; 5, upper layer software (applications) calls the registration interface function that reset interrupt is handled the function chained list, registers the different reset interrupt of bringing ginseng into and handles function in reset interrupt processing function chained list; 6, initialization finishes;
Reset controller, be used for distinguishing the reset interrupt signal of reset types and generation correspondence and opening the timer that resets of its inside according to detected reset signal, while set-reset type register, the timer timing arrives when resetting, reset controller output reset signal impels relevant device to finish reset function;
Processor links to each other with reset controller, when receiving the reset interrupt signal, calls the reset interrupt service routine and collects reset interrupt type code and some other repositioning information and abnormal log; Call reset interrupt simultaneously and handle function, the executive logging abnormal information, preserve information data and stop the safeguard measure of memory device operation, and judge whether reset interrupt processing function calls and be finished, be not finished, then continue to call if call;
Memory device links to each other with processor, is used for reset interrupt type code that processor is collected and some other repositioning information and abnormal log and is kept at wherein relative data area.
6, combined type reset system treating apparatus as claimed in claim 5 is characterized in that, the reset interrupt of bringing ginseng into that registration is different in the operation 5 is handled function and specifically comprised:
The registration reset interrupt is handled function name, the priority parameters of function.
7, combined type reset system treating apparatus as claimed in claim 6, it is characterized in that described processor calls the reset interrupt service routine and collects reset interrupt type code and some other repositioning information and abnormal log and be kept in the relative data area of memory device and specifically be meant:
The reset interrupt service routine reads the reset types register that reset controller provides, judge the reset interrupt type, then according to the information record sheet address of last reset interrupt service routine, order increasing informatio record sheet address is in reset interrupt type code and some other repositioning information and the relative data area of abnormal log with the form write storage device of repositioning information record sheet structure.
As claim 6 or 7 described combined type reset system treating apparatus, it is characterized in that 8, described processor calls reset interrupt processing function and specifically is meant:
According to priority order is called reset interrupt from high to low successively and is handled function from reset interrupt processing function chained list, reset interrupt is handled function and is judged reset interrupt processing function is gone into to join whether consistent with the reset interrupt type, if unanimity is just carried out reset interrupt and is handled function, if the inconsistent execution that just stops reset interrupt processing function.
CNB2006101505507A 2006-10-19 2006-10-19 Combined type reset system processing method and device Expired - Fee Related CN100517177C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101505507A CN100517177C (en) 2006-10-19 2006-10-19 Combined type reset system processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101505507A CN100517177C (en) 2006-10-19 2006-10-19 Combined type reset system processing method and device

Publications (2)

Publication Number Publication Date
CN101165630A CN101165630A (en) 2008-04-23
CN100517177C true CN100517177C (en) 2009-07-22

Family

ID=39334347

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101505507A Expired - Fee Related CN100517177C (en) 2006-10-19 2006-10-19 Combined type reset system processing method and device

Country Status (1)

Country Link
CN (1) CN100517177C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944056B (en) * 2010-09-21 2013-05-08 深圳市华力特电气股份有限公司 Method and device for monitoring multitask system
CN103118240A (en) * 2011-11-17 2013-05-22 上海贝尔股份有限公司 Method and device for monitoring reset signal of each module in a system
CN104978001A (en) * 2014-04-09 2015-10-14 中兴通讯股份有限公司 Reset management method and device
CN108196898A (en) * 2016-12-08 2018-06-22 中兴通讯股份有限公司 System remapping method, device and electronic equipment
CN109614130A (en) * 2018-12-12 2019-04-12 湖南康通电子股份有限公司 A kind of cloud broadcast upgrade method and system with trial operation, self-check
CN111475344B (en) * 2020-04-16 2022-08-02 苏州浪潮智能科技有限公司 Program resetting system, method and device and computer readable storage medium
CN114281492A (en) * 2021-11-12 2022-04-05 北京智芯微电子科技有限公司 Interrupt processing method and device, chip, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101165630A (en) 2008-04-23

Similar Documents

Publication Publication Date Title
CN100517177C (en) Combined type reset system processing method and device
CN102761439B (en) Device and method for detecting and recording abnormity on basis of watchdog in PON (Passive Optical Network) access system
EP3385947A1 (en) Method realizing voice wake-up, device, terminal, and computer storage medium
CN100359481C (en) Abnormal monitoring equipment and method for multi-task system
CN100512146C (en) Method for realizing patch management
KR20140079417A (en) Apparatus and methods for an interconnect power manager
CN101236515B (en) Multi-core system single-core abnormity restoration method
CN101483540A (en) Master-slave switching method in high class data communication equipment
JP2006259869A (en) Multiprocessor system
CN103455393A (en) Fault tolerant system design method based on process redundancy
CN103019848B (en) Method for realizing peripheral component interconnect (PCI) bus non-vector interrupt
CN109582371B (en) Low-power-consumption awakening method and device
CN103164309A (en) SOL functional test method and system
CN106062716A (en) Method, device and single task system for realizing multiple tasks in single task system
CN104516796A (en) Command set based network element backup and recovery method and device
CN103164355B (en) A kind of changing method and electronic equipment
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN104683486A (en) Method and device for processing synchronous messages in distributed system and distributed system
CN110764829B (en) Multi-path server CPU isolation method and system
CN103077081B (en) Method and device of adjusting resources
CN100476774C (en) Method and device for limitting command of base plate management controller
CN102023887B (en) Power supply management method of computer system and computer system
CN104038387B (en) Line detecting method on frame-type switch business board
CN104050051A (en) Fault diagnosis method for on-board computer
CN101420329B (en) Method for upgrading communication system and communication system therefor

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090722

Termination date: 20151019

EXPY Termination of patent right or utility model