CN107025132A - Interrupt collocation method and device - Google Patents
Interrupt collocation method and device Download PDFInfo
- Publication number
- CN107025132A CN107025132A CN201610072882.1A CN201610072882A CN107025132A CN 107025132 A CN107025132 A CN 107025132A CN 201610072882 A CN201610072882 A CN 201610072882A CN 107025132 A CN107025132 A CN 107025132A
- Authority
- CN
- China
- Prior art keywords
- interrupt
- source
- interrupt source
- interruption
- mapping relations
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Bus Control (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of interruption collocation method and device, and methods described includes:The interruption configurator in basic input-output system BIOS is obtained, the interruption configurator includes the mapping relations between different interrupt source and different interrupt numbers;It is the interrupt source distribution interrupt number in the computer system according to the interrupt source in the interruption configurator initializing computer system.Interruption collocation method and device that the present invention is provided, by setting interruption configurator to be in an operating system arranged in BIOS script, so that no longer setting the interruption configurator without versatility in operating system, only include the program and function for adapting to all computer systems, so that either computer system can use the operating system, the compatibility of operating system is improved.
Description
Technical field
The present invention relates to computer technology, more particularly to a kind of interruption collocation method and device.
Background technology
Interruption refer in computer systems, when peripheral hardware to central processing unit (Central Processing Unit,
Referred to as:CPU) send after interrupt requests, CPU can temporarily interrupt the execution of current program, then go
Perform interrupt handler processes corresponding with the peripheral hardware.Because CPU is not before interrupt requests are received,
CPU can carry out other work, therefore, using above-mentioned interrupt mode, can improve CPU work effect
Rate.
In the prior art, it is above-mentioned it is outer be located to CPU send interrupt requests when, can be taken in interrupt requests
Interrupt number with oneself, when the interrupt number is computer system initial configuration, CPU passes through operating system
In it is default interruption configurator write-in peripheral hardware in.
However, due to the connected mode of the interrupt number corresponding to peripheral hardware and peripheral hardware and the mainboard of computer system
It is relevant, that is to say, that when same peripheral hardware is different from the connected mode of the mainboard of computer system, correspondence
Interrupt number it is also different, i.e. default interruption configurator is different in operating system, therefore, above-mentioned
Operating system can not be adapted to the peripheral hardware for having different connected modes from the mainboard of computer, cause operation system
System compatibility is poor.
The content of the invention
The present invention provides a kind of interruption collocation method and device, to solve in the prior art using operation
When system interrupt configuration for the interrupt source of computer system, because operating system can not be adapted to and computer
Mainboard there is the peripheral hardwares of different connected modes, cause the problem of Compatibility of Operating System is poor.
First aspect present invention provides a kind of interruption collocation method, including:
Obtain the interruption configurator in basic input-output system BIOS, the interruption configurator bag
The mapping relations that different interrupt source is included between different interrupt numbers;
It is the department of computer science according to the interrupt source in the interruption configurator initializing computer system
Interrupt source distribution interrupt number in system.
As described above, the interrupt source in the computer system is included inside the first interrupt source and CPU
Second interrupt source of interrupt control unit connection, the 3rd interrupt source being connected with bridge piece, the bridge piece pass through institute
The interrupt vector register inside CPU is stated to be connected with the interrupt control unit;The then interruption configurator
In different interrupt source and different interrupt number between mapping relations include first interrupt source and the
One interrupt the first mapping relations between number section, second interrupt source and second interrupt between number section the
Two mapping relations, the 3rd interrupt source and the 3rd interrupt the 3rd mapping relations between number section;
The interrupt source in the interruption configurator initializing computer system, is the calculating
Interrupt source distribution interrupt number in machine system, is specifically included:
First interrupt source is write into first interrupt source according to first mapping relations corresponding
Interrupt number;
Second interrupt source is write into second interrupt source according to second mapping relations corresponding
Interrupt number;
The 3rd interrupt source to be write into the 3rd interrupt source corresponding according to the 3rd mapping relations
Interrupt number.
As described above, described first interrupts number section for 48-63, described second interrupts number section for 16-47, institute
It is 0-15 to state the 3rd interruption number section.
As described above, it is described according to it is described interruption configurator initializing computer system in interrupt source it
Before, methods described also includes:
The pin of the interrupt control unit and the bridge piece is scanned, the interrupt control unit and described the is determined
The annexation of the annexation of two interrupt sources and the bridge piece and the 3rd interrupt source.
As described above, methods described also includes:
The interrupt bit for the pin being connected in the interrupt vector register with the bridge piece is enabled.
Second aspect of the present invention provides a kind of interruption configuration device, including:
Acquisition module, it is described for obtaining the interruption configurator in basic input-output system BIOS
Interrupting configurator includes the mapping relations between different interrupt source and different interrupt numbers;
Distribute module, for the interruption configurator initializing computer system obtained according to the acquisition module
Interrupt source in system, is the interrupt source distribution interrupt number in the computer system.
As described above, the interrupt source in the computer system is included inside the first interrupt source and CPU
Second interrupt source of interrupt control unit connection, the 3rd interrupt source being connected with bridge piece, the bridge piece pass through institute
The interrupt vector register inside CPU is stated to be connected with the interrupt control unit;The then interruption configurator
In different interrupt source and different interrupt number between mapping relations include first interrupt source and the
One interrupt the first mapping relations between number section, second interrupt source and second interrupt between number section the
Two mapping relations, the 3rd interrupt source and the 3rd interrupt the 3rd mapping relations between number section;
The distribute module, specifically for being write according to first mapping relations into first interrupt source
Enter the corresponding interrupt number of first interrupt source;And, according to second mapping relations to described second
The corresponding interrupt number of second interrupt source is write in interrupt source;And according to the 3rd mapping relations to
The corresponding interrupt number of the 3rd interrupt source is write in 3rd interrupt source.
As described above, described first interrupts number section for 48-63, described second interrupts number section for 16-47, institute
It is 0-15 to state the 3rd interruption number section.
As described above, described device also includes:
Determining module, for interrupting configurator initializing computer system according to described in the distribute module
Before interrupt source in system, the interrupt control unit and the pin of the bridge piece are scanned, the interruption is determined
Controller and the company of the annexation and the bridge piece and the 3rd interrupt source of second interrupt source
Connect relation.
As described above, described device also includes:
Processing module, for the interruption for the pin that will be connected in the interrupt vector register with the bridge piece
Position is enabled.
Interruption collocation method and device that the present invention is provided, in script is set in an operating system
Disconnected configurator is arranged in BIOS so that computer system can configure journey by the interruption in BIOS
Sequence, is the interrupt source distribution interrupt number in computer system, in being carried out again by operating system
Disconnected configuration, i.e., can no longer include the interruption configurator without versatility, only include in operating system
Adapt to the program and function of all computer systems so that either computer system can use the behaviour
Make system, improve the compatibility of operating system.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to reality
The accompanying drawing used required for applying in example or description of the prior art is briefly described, it should be apparent that, below
Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
The schematic flow sheet for interrupting collocation method embodiment one that Fig. 1 provides for the present invention;
The structural representation for the computer system that Fig. 2 provides for the present invention;
The structural representation for the interruption configuration device embodiment one that Fig. 3 provides for the present invention;
The structural representation for the interruption configuration device embodiment two that Fig. 4 provides for the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the invention, and
The embodiment being not all of.Based on the embodiment in the present invention, those of ordinary skill in the art are not making
Go out the every other embodiment obtained under the premise of creative work, belong to the scope of protection of the invention.
Interruption collocation method and device that the present invention is provided, it is intended to solve in the prior art using operation system
Unite for computer system interrupt source carry out interrupt configuration when, because operating system can not be adapted to and computer
Mainboard has the peripheral hardware of different connected modes, causes the problem of Compatibility of Operating System is poor.
For the ease of the understanding of the present invention, first computer system is simply introduced below.Computer
The hardware of system can include:CPU, bridge piece and multiple interrupt sources, wherein, bridge piece by CPU inside
Interrupt vector register be connected with the interrupt control unit being integrated in inside CPU, wherein, CPU, interruption
Controller and bridge piece are connected from different interrupt source respectively.Here interrupt source can be located at outside CPU
Interrupt source, such as peripheral hardware can also be the interrupt source inside CPU, such as timer.
Technical scheme is described in detail with specifically embodiment below.These have below
The embodiment of body can be combined with each other, may be in some embodiments for same or analogous concept or process
Repeat no more.
The schematic flow sheet for interrupting collocation method embodiment one that Fig. 1 provides for the present invention, the present embodiment
Executive agent can be with microprocessor (the Microprocessor Without without inner interlocked pipelining-stage
Interlocked Piped Stages, referred to as:MIPS computer system), the present embodiment refers to meter
Calculation machine system according to be preset in basic input output system (Basic Input Output System, referred to as:
BIOS the interruption configurator in), is the detailed process that interrupt source in computer system distributes interrupt number,
The method of the present embodiment is applied to the pending computer system for interrupting configuration, can improve operating system
Compatibility.
It is embodied before the present embodiment, it is necessary to make following preparation:According to the hardware of computer system
Schematic diagram, determines the electrical of CPU in computer system, interrupt control unit, bridge piece and different interrupt source
Annexation, and then according to the annexation, it is determined that each interrupt source and the mapping relations of interrupt number, and
Interruption in the BIOS of each interrupt source and the mapping relations of interrupt number write-in computer system is configured
In program.
As shown in figure 1, this method can include:
S101, the interruption configurator obtained in BIOS, interrupting configurator includes different interrupt source
Mapping relations between different interrupt numbers.
Specifically, when above computer system receive user input interruption configuring request, or, meter
Calculation machine system receives the interruption configuring request of other equipment transmission, or, computer system is actively initiated
When interrupting configuration, computer system can just read the interruption configurator in BIOS, with to computer
Interrupt source in system carries out interruption configuration, wherein, the interruption configurator, which includes, adapts to the calculating
The interrupt source of machine system and the mapping relations of interrupt number.
S102, the interrupt source in interruption configurator initializing computer system, are computer system
In interrupt source distribution interrupt number.
Specifically, above computer system can be every into computer system according to above-mentioned mapping relations
The corresponding interrupt number of the interrupt source is write in the interrupt line register of individual interrupt source, so as to obtain computer system
During operation, the interrupt source can use interrupt number in its interrupt line register to department of computer science
The CPU of system sends interrupt requests, so that CPU can determine it is which is interrupted according to the interrupt number
The interrupt requests that source is sent, to call correct interrupt handling routine to handle the interrupt requests of the interrupt source.
Further, above computer system can also configure computer according to above-mentioned interruption configurator
The interruption route of system, the i.e. route of the status register of interrupt control unit and CPU core, interrupt control unit
With the route of the route of interrupt vector register, interrupt vector register and bridge piece, with cause and bridge piece connect
The interrupt source connect, the interrupt source being connected with interrupt control unit can be route to CPU by above-mentioned interruption to be sent
Interrupt requests, wherein, above computer system is according to the interruption for interrupting configurator allocating computer system
Route, specifically may refer to prior art, the present embodiment is repeated no more to this.
In the prior art, configurator is interrupted default in an operating system, wherein, the interruption configurator
Including interrupt number mapping relations, the interrupt number mapping relations cover the interruption for adapting to the computer system
Source and the corresponding relation of interrupt number.When computer system needs interrupt configuration, computer system is just
Interruption configurator in meeting read operation system, is mapped with the interrupt number in the interruption configurator
Relation, is that each interrupt source writes the corresponding interrupt number of the interrupt source.However, when same interrupt source with
When the connected mode of computer motherboard (i.e. with CPU, interrupt control unit or and bridge piece) changes,
The corresponding interrupt number of the interrupt source can also change, therefore, when the different interruption of same interrupt source correspondence
Number when, it is also just different to interrupt the interrupt number mapping relations that include of configurator, causes pre- in operating system
If interruption configurator it is also just different, that is to say, that default interruption configurator is not in operating system
Do not have versatility with versatility, i.e. operating system so that any two has not with same interrupt source
With the computer system of connected mode, it is impossible to carry out interruption configuration using same operating system for the interrupt source,
Cause Compatibility of Operating System poor.
And in the present embodiment, interrupting configurator no longer presets in an operating system, but it is preset in meter
In the BIOS of calculation machine system, therefore, there are different connected modes from same interrupt source for any two
Computer system, it is only necessary in the BIOS of each computer system set adapt to the department of computer science
The interruption configurator of system, as each computer system configurations are adapted to the computer system
BIOS, so, has the computer system of different connected modes for any two from same interrupt source,
Only need simply to change the core for the carrying BIOS for adapting to the computer system for two computer systems
Piece, without going to set the interruption configurator for adapting to the computer system in operating system again,
So, the program and function for adapting to all computer systems can be only included in operating system, to cause
Any two from same interrupt source there is the computer system of different connected modes can use same operation system
System performs other work of computer system, is performed using different BIOS and interrupts configuration, that is to say, that
Operating system can be adapted to the either computer system for having different connected modes from same interrupt source, improve
The compatibility of operating system.
The interruption collocation method that the present invention is provided, by setting interruption in an operating system to configure script
Program is arranged in BIOS so that computer system can be by the interruption configurator in BIOS
Interrupt source distribution interrupt number in computer system, without carrying out interruption configuration by operating system again,
The interruption configurator without versatility can no longer be included i.e. in operating system, only including adapting to
There are the program and function of computer system so that either computer system can use the operating system,
Improve the compatibility of operating system.
The structural representation for the computer system that Fig. 2 provides for the present invention, as shown in Fig. 2 above-mentioned calculating
Interrupt source in machine system can include the first interrupt source, be connected with the interrupt control unit inside CPU the
Two interrupt sources, the 3rd interrupt source being connected with bridge piece, bridge piece pass through the interrupt vector register inside CPU
It is connected with interrupt control unit;The then different interrupt source and different interrupt numbers in above-mentioned interruption configurator
Between mapping relations include the first interrupt source and first interrupt number section between the first mapping relations, second
Interrupt source and second interrupt number section between the second mapping relations, the 3rd interrupt source and the 3rd interrupt number section it
Between the 3rd mapping relations;
It is then above-mentioned according to the interrupt source interrupted in configurator initializing computer system, it is computer system
In interrupt source distribution interrupt number, specifically include:
The corresponding interrupt number of the first interrupt source is write into the first interrupt source according to the first mapping relations;
The corresponding interrupt number of the second interrupt source is write into the second interrupt source according to the second mapping relations;
The corresponding interrupt number of the 3rd interrupt source is write into the 3rd interrupt source according to the 3rd mapping relations.
Specifically, in the present embodiment, according to the distinct device in different interrupt source and computer system
Annexation, the interrupt source in computer system is divided into the first interrupt source (example inside CPU
Such as:Timer inside CPU etc.), the second interrupt source (example is connected with the interrupt control unit inside CPU
Such as:Memory Controller Hub, few number of pins EBI, peripheral hardware etc.) and the 3rd interrupt source that is connected with bridge piece
(for example:Peripheral hardware), wherein, above-mentioned first interrupt source corresponding first interrupts number section, the second interrupt source
The corresponding 3rd interruption number section of corresponding second interruption number section, the 3rd interrupt source can correspond to respectively one or
Multiple different interrupt numbers, when it is implemented, in the first interruption number section, the second interruption number section and the 3rd
The value of disconnected number section can specifically be determined according to the demand of user.
In a kind of implementation of the present embodiment, above-mentioned first interrupts number section for 48-63, in above-mentioned second
Disconnected number section is 16-47, and the above-mentioned 3rd interrupts number section for 0-15, then above-mentioned first interrupt source and the first interrupt number
The first mapping relations between section for example can be as shown in table 1, above-mentioned second interrupt source and the second interrupt number
The second mapping relations between section for example can be as shown in table 2, above-mentioned 3rd interrupt source and the 3rd interrupt number
The 3rd mapping relations between section for example can be as shown in table 3.
Table 1
Table 2
Table 3
When above computer system is according to configurator is interrupted, get such as above-mentioned table 1, table 2 and table 3
It is each interruption after shown interrupt source and the mapping relations of interrupt number, it is possible to according to the mapping relations
Source writes its corresponding interrupt number.It should be noted that the first interrupt source and first shown in above-mentioned table 1
Interrupt the first mapping relations between number section, the second interrupt source shown in table 2 and between the second interruption number section
The second mapping relations, the 3rd interrupt source shown in table 3 and the 3rd the 3rd mapping interrupted between number section close
System, only represents in each under such a annexation of interrupt source and CPU, interrupt control unit, bridge piece
The disconnected corresponding interrupt number in source, it will be appreciated by persons skilled in the art that in included by computer system
Disconnected source is not limited to the interrupt source shown in above-mentioned table 1, table 2 and table 3, and above-mentioned interrupt source and CPU, in
Disconnected controller, bridge piece annexation are also not necessarily limited to the annexation shown in above-mentioned table 1, table 2 and table 3,
Therefore, the corresponding interrupt number of above-mentioned interrupt source is also not necessarily limited to the correspondence shown in above-mentioned table 1, table 2 and table 3
Relation, specifically can according to each interrupt source and CPU, interrupt control unit, bridge piece connected mode,
Above-mentioned table 1, table 2 with the corresponding interrupt number of interrupt source is finely adjusted in table 3.
Optionally, in another implementation of the present invention, before above-mentioned S102, this method may be used also
With including:Interrupt control unit and the pin of bridge piece are scanned, the company of interrupt control unit and the second interrupt source is determined
Connect the annexation of relation and bridge piece and the 3rd interrupt source.In this way so that department of computer science
System, can be by scanning interrupt control unit pin before for the interrupt source of computer system distribution interrupt number
With the mode of bridge piece pin, determine whether interrupt control unit interrupts with each second in the second mapping relations
There is actual electric connection in source, determine bridge piece whether with each 3rd interrupt source in the 3rd mapping relations
In the presence of actual electric connection.When it is determined that a certain second in interrupt control unit and the second mapping relations interrupts
When source has annexation, computer system just can be according to second mapping relations, to second interrupt source
Its corresponding interrupt number is write, and when determination bridge piece and a certain 3rd interrupt source in the 3rd mapping relations
When there is annexation, computer system can just be write according to the 3rd mapping relations to the 3rd interrupt source
Enter its corresponding interrupt number;When it is determined that a certain second interrupt source in interrupt control unit and the second mapping relations
During in the absence of annexation, computer system just writes interrupt number without being performed again to second interrupt source
Operation, and when annexation is not present in a certain 3rd interrupt source in determination bridge piece and the 3rd mapping relations
When, computer system just writes the operation of interrupt number without being performed again to the 3rd interrupt source, improves meter
Calculation machine system performs the efficiency for interrupting configuration.
Optionally, after above-mentioned S102, this method can also include:By in interrupt vector register with
The interrupt bit of the pin of bridge piece connection is enabled, to cause bridge piece by the route with interrupt vector register
When sending the interrupt requests of the 3rd interrupt source to interrupt control unit, interrupt control unit can have correctly received this
Interrupt requests, and the interrupt requests are transmitted to CPU processing, improve in the transmission of the 3rd interrupt source
The success rate of disconnected request.
The interruption collocation method that the present invention is provided, by setting interruption in an operating system to configure script
Program is arranged in BIOS so that computer system can be by the interruption configurator in BIOS
Interrupt source distribution interrupt number in computer system, without carrying out interruption configuration by operating system again,
The interruption configurator without versatility can no longer be included i.e. in operating system, only including adapting to
There are the program and function of computer system so that either computer system can use the operating system,
Improve the compatibility of operating system.
One of ordinary skill in the art will appreciate that:Realize all or part of step of above method embodiment
It can be completed by the related hardware of programmed instruction, it is computer-readable that foregoing program can be stored in one
Take in storage medium, the program upon execution, performs the step of including above method embodiment;And it is foregoing
Storage medium include:ROM, RAM, magnetic disc or CD etc. are various can be with Jie of store program codes
Matter.
The structural representation for the interruption configuration device embodiment one that Fig. 3 provides for the present invention, as shown in figure 3,
The interruption configuration device can include:Acquisition module 11 and distribute module 12;Wherein,
Acquisition module 11, can be used for obtaining the interruption configurator in basic input-output system BIOS,
The interruption configurator can be including the mapping relations between different interrupt source and different interrupt numbers;
Distribute module 12, can be used for according to above-mentioned acquisition module 11 obtain interruption configurator it is initial
Change the interrupt source in computer system, be the interrupt source distribution interrupt number in computer system.
The interruption configuration device that the present invention is provided, can perform above method embodiment, its realization principle and
Technique effect is similar, will not be repeated here.
Further, on the basis of above-described embodiment, the interrupt source in above computer system can be wrapped
Include the first interrupt source, the second interrupt source being connected with the interrupt control unit inside CPU, be connected with bridge piece
3rd interrupt source, bridge piece is connected by the interrupt vector register inside CPU with interrupt control unit;In then
Mapping relations between different interrupt source in disconnected configurator and different interrupt numbers can include first
Interrupt source and first interrupt number section between the first mapping relations, the second interrupt source and second interrupt number section it
Between the second mapping relations, the 3rd interrupt source and the 3rd interrupt number section between the 3rd mapping relations;
Above-mentioned distribute module 12, can be specifically for writing according to the first mapping relations into the first interrupt source
The corresponding interrupt number of first interrupt source;And, is write into the second interrupt source according to the second mapping relations
The corresponding interrupt number of two interrupt sources;And, the 3rd is write into the 3rd interrupt source according to the 3rd mapping relations
The corresponding interrupt number of interrupt source.
In a kind of implementation of the present invention, above-mentioned first interruption number section can be 48-63, above-mentioned second
It can be 16-47 to interrupt number section, and above-mentioned 3rd interruption number section can be 0-15.
The interruption configuration device that the present invention is provided, can perform above method embodiment, its realization principle and
Technique effect is similar, will not be repeated here.
The structural representation for the interruption configuration device embodiment two that Fig. 4 provides for the present invention, as shown in figure 4,
The interruption configuration device can also include:Determining module 13, can be used in distribute module 12 in
Before interrupt source in disconnected configurator initializing computer system, scanning interrupt control unit and bridge piece are drawn
Pin, determines the company of the annexation and bridge piece and the 3rd interrupt source of interrupt control unit and the second interrupt source
Connect relation.
With continued reference to Fig. 4, optionally, above-mentioned interruption configuration device can also include:Processing module 14,
It can be used for the interrupt bit enable of pin that will be connected in interrupt vector register with bridge piece.
The interruption configuration device that the present invention is provided, can perform above method embodiment, its realization principle and
Technique effect is similar, will not be repeated here.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than right
It is limited;Although the present invention is described in detail with reference to foregoing embodiments, this area it is common
Technical staff should be understood:It can still modify to the technical scheme described in foregoing embodiments,
Or equivalent substitution is carried out to which part or all technical characteristic;And these modifications or replacement, and
The essence of appropriate technical solution is not set to depart from the scope of various embodiments of the present invention technical scheme.
Claims (10)
1. one kind interrupts collocation method, it is characterised in that including:
Obtain the interruption configurator in basic input-output system BIOS, the interruption configurator bag
The mapping relations that different interrupt source is included between different interrupt numbers;
It is the department of computer science according to the interrupt source in the interruption configurator initializing computer system
Interrupt source distribution interrupt number in system.
2. according to the method described in claim 1, it is characterised in that the interruption in the computer system
Source connects including the first interrupt source, the second interrupt source being connected with the interrupt control unit inside CPU, with bridge piece
The 3rd interrupt source connect, the bridge piece is interrupted by the interrupt vector register inside the CPU with described
Controller is connected;Then between the different interrupt source interrupted in configurator and different interrupt numbers
Mapping relations include first interrupt source and first and interrupt the first mapping relations between number section, described the
Two interrupt sources and the second the second mapping relations, the 3rd interrupt source and the 3rd interrupted between number section are interrupted
The 3rd mapping relations between number section;
The interrupt source in the interruption configurator initializing computer system, is the calculating
Interrupt source distribution interrupt number in machine system, is specifically included:
First interrupt source is write into first interrupt source according to first mapping relations corresponding
Interrupt number;
Second interrupt source is write into second interrupt source according to second mapping relations corresponding
Interrupt number;
The 3rd interrupt source to be write into the 3rd interrupt source corresponding according to the 3rd mapping relations
Interrupt number.
3. method according to claim 2, it is characterised in that described first interrupts number section for 48-63,
Described second interrupts number section for 16-47, and the described 3rd interrupts number section for 0-15.
4. according to the method in claim 2 or 3, it is characterised in that described to be matched somebody with somebody according to the interruption
Put before the interrupt source in program initialization computer system, methods described also includes:
The pin of the interrupt control unit and the bridge piece is scanned, the interrupt control unit and described the is determined
The annexation of the annexation of two interrupt sources and the bridge piece and the 3rd interrupt source.
5. according to the method in claim 2 or 3, it is characterised in that methods described also includes:
The interrupt bit for the pin being connected in the interrupt vector register with the bridge piece is enabled.
6. one kind interrupts configuration device, it is characterised in that including:
Acquisition module, it is described for obtaining the interruption configurator in basic input-output system BIOS
Interrupting configurator includes the mapping relations between different interrupt source and different interrupt numbers;
Distribute module, for the interruption configurator initializing computer system obtained according to the acquisition module
Interrupt source in system, is the interrupt source distribution interrupt number in the computer system.
7. device according to claim 6, it is characterised in that the interruption in the computer system
Source connects including the first interrupt source, the second interrupt source being connected with the interrupt control unit inside CPU, with bridge piece
The 3rd interrupt source connect, the bridge piece is interrupted by the interrupt vector register inside the CPU with described
Controller is connected;Then between the different interrupt source interrupted in configurator and different interrupt numbers
Mapping relations include first interrupt source and first and interrupt the first mapping relations between number section, described the
Two interrupt sources and the second the second mapping relations, the 3rd interrupt source and the 3rd interrupted between number section are interrupted
The 3rd mapping relations between number section;
The distribute module, specifically for being write according to first mapping relations into first interrupt source
Enter the corresponding interrupt number of first interrupt source;And, according to second mapping relations to described second
The corresponding interrupt number of second interrupt source is write in interrupt source;And according to the 3rd mapping relations to
The corresponding interrupt number of the 3rd interrupt source is write in 3rd interrupt source.
8. device according to claim 7, it is characterised in that described first interrupts number section for 48-63,
Described second interrupts number section for 16-47, and the described 3rd interrupts number section for 0-15.
9. the device according to claim 7 or 8, it is characterised in that described device also includes:
Determining module, for interrupting configurator initializing computer system according to described in the distribute module
Before interrupt source in system, the interrupt control unit and the pin of the bridge piece are scanned, the interruption is determined
Controller and the company of the annexation and the bridge piece and the 3rd interrupt source of second interrupt source
Connect relation.
10. the device according to claim 7 or 8, it is characterised in that described device also includes:
Processing module, for the interruption for the pin that will be connected in the interrupt vector register with the bridge piece
Position is enabled.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610072882.1A CN107025132B (en) | 2016-02-02 | 2016-02-02 | Interrupt configuration method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610072882.1A CN107025132B (en) | 2016-02-02 | 2016-02-02 | Interrupt configuration method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107025132A true CN107025132A (en) | 2017-08-08 |
CN107025132B CN107025132B (en) | 2020-03-13 |
Family
ID=59524281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610072882.1A Active CN107025132B (en) | 2016-02-02 | 2016-02-02 | Interrupt configuration method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107025132B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140530A (en) * | 2006-09-07 | 2008-03-12 | 环隆电气股份有限公司 | Application program intercept and capture and monitoring system control break method |
CN101901165A (en) * | 2010-07-26 | 2010-12-01 | 清华大学 | Circuit structure of interruption controller |
CN102184122A (en) * | 2011-05-16 | 2011-09-14 | 曙光信息产业股份有限公司 | Basic input/output system (bios) and interrupt realizing method for Loongson central processing unit (CPU) mainboard |
CN103942069A (en) * | 2014-04-01 | 2014-07-23 | 西安睿控创合电子科技有限公司 | Quick starting optimizing method based on X86 platform Vxworks operation system |
CN104679687A (en) * | 2014-12-19 | 2015-06-03 | 杭州华为数字技术有限公司 | Method and device for recognizing interruption source |
-
2016
- 2016-02-02 CN CN201610072882.1A patent/CN107025132B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140530A (en) * | 2006-09-07 | 2008-03-12 | 环隆电气股份有限公司 | Application program intercept and capture and monitoring system control break method |
CN101901165A (en) * | 2010-07-26 | 2010-12-01 | 清华大学 | Circuit structure of interruption controller |
CN102184122A (en) * | 2011-05-16 | 2011-09-14 | 曙光信息产业股份有限公司 | Basic input/output system (bios) and interrupt realizing method for Loongson central processing unit (CPU) mainboard |
CN103942069A (en) * | 2014-04-01 | 2014-07-23 | 西安睿控创合电子科技有限公司 | Quick starting optimizing method based on X86 platform Vxworks operation system |
CN104679687A (en) * | 2014-12-19 | 2015-06-03 | 杭州华为数字技术有限公司 | Method and device for recognizing interruption source |
Also Published As
Publication number | Publication date |
---|---|
CN107025132B (en) | 2020-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8990439B2 (en) | Transport mode data transfer between a channel subsystem and input/output devices | |
CN105320553A (en) | Method and system for updating network card firmware based on domestic processor platform | |
US10613520B2 (en) | Data setting system for robot, data setting method and program | |
CN105259806A (en) | Controller upgrading method and system, master controller and slave controller | |
CN105005468A (en) | Strengthening prediction confidence and command priority using natural user inferface (NUI) inputs | |
CN109660391A (en) | A kind of pond server system firmware upgrade method, system and relevant apparatus | |
US20140149528A1 (en) | Mpi communication of gpu buffers | |
CN115168256A (en) | Interrupt control method, interrupt controller, electronic device, medium, and chip | |
CN108399136A (en) | A kind of control method of serial line interface, device and host | |
US8918542B2 (en) | Facilitating transport mode data transfer between a channel subsystem and input/output devices | |
US20180335954A1 (en) | Systems and methods for hardware-based raid acceleration | |
CN114691224A (en) | Equipment loading system and method and electronic equipment | |
CN104407808B (en) | The method and apparatus for writing data | |
US10877744B2 (en) | Read/write method and read/write system for FRU | |
CN107025132A (en) | Interrupt collocation method and device | |
CN110069272A (en) | The method and electronic equipment of logical file upgrading | |
US20200201806A1 (en) | Apparatus and Method for Reducing Latency of Input/Output Transactions in an Information Handling System using No-Response Commands | |
CN105117370B (en) | A kind of multi-protocols cryptographic algorithm processor and system on chip | |
US7243178B2 (en) | Enable/disable claiming of a DMA request interrupt | |
US8849647B2 (en) | Dual-firmware for next generation emulation | |
CN109800565A (en) | Method for upgrading software and terminal device | |
CN112261072B (en) | Service calling method, device, equipment and storage medium | |
US20200274829A1 (en) | General purpose ring buffer handling in a network controller | |
CN103631532A (en) | Data access method and device used in data storage system | |
US20230394132A1 (en) | Post-tapeout reconfigurable device for determining whether or not a job received by the device is permissible for execution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing Patentee after: Loongson Zhongke Technology Co.,Ltd. Address before: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing Patentee before: LOONGSON TECHNOLOGY Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |