CN101170511B - Device and method for realizing multi-core processor communication in built-in operating system - Google Patents

Device and method for realizing multi-core processor communication in built-in operating system Download PDF

Info

Publication number
CN101170511B
CN101170511B CN2007101873503A CN200710187350A CN101170511B CN 101170511 B CN101170511 B CN 101170511B CN 2007101873503 A CN2007101873503 A CN 2007101873503A CN 200710187350 A CN200710187350 A CN 200710187350A CN 101170511 B CN101170511 B CN 101170511B
Authority
CN
China
Prior art keywords
cpu
message
internuclear
interrupt
sends
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
CN2007101873503A
Other languages
Chinese (zh)
Other versions
CN101170511A (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 CN2007101873503A priority Critical patent/CN101170511B/en
Publication of CN101170511A publication Critical patent/CN101170511A/en
Application granted granted Critical
Publication of CN101170511B publication Critical patent/CN101170511B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a device and a method for realizing multicore processor communication in an embedded operating system, which comprises a memory module and a network module, wherein the memory module is used, in the external communication, to memorize the message transmitted to the network module and inform the network module of delivering the message; the network module is used to receive the message delivered by the memory module, simultaneously deliver an interruption request and finish the communication of CPU core. The invention overcomes the drawbacks of the prior art; firstly, both the external communication and the inter-core communication are connected with protocol stack, with stronger function and more convenient upper application development; besides, the external communication and the inter-core communication are transparent for the upper layer, which keeps the application layer free from paying attention to the transmission details of the bottom layer.

Description

Realize the device and method of multi-core processor communication in the embedded OS
Technical field
The present invention relates to the communications field of polycaryon processor in embedded OS, relate to the device and method of realizing multi-core processor communication in a kind of embedded OS more specifically.
Background technology
Along with the continuous expansion of telecommunication service, system is more and more higher to the requirement of processor, and traditional single core processor can not adapt to the needs of large-scale application gradually, and under this background, polycaryon processor begins to demonstrate cutting edge on this wonderful stage of telecommunications.Than traditional single core processor, the performance of corresponding polycaryon processor is higher, and price is lower, therefore is subjected to pursuing of telecommunications manufacturer deeply.
Embedded OS all has a cover protocol stack, and by with the binding of network interface and protocol stack, upper layer application just can be by protocol stack and extraneous free communication, and need not to pay close attention to the problem of message format.The network system of embedded OS as shown in Figure 1.
Embedded OS is supported SENS (enhanced network storehouse mostly, Scalable EnhancedNetworks Stack) protocol stack, the SENS protocol stack provides interchangeable network device driver, and aim at this network stack and the network interface device driver of writing is known as END (network driver of enhancing, Enhanced Network Driver).As shown in Figure 2, the SENS model comprises three parts: and protocol driver, MUX (polynary interface, multiplexer) and END.The SENS model is independent of the hardware device interface, and it makes the developer can be absorbed in the exploitation of END itself the network device driver refinement.Between driver and upper-layer protocol (as TCP/IP), the SENS model provides the protocol-driven layer.Between protocol layer and driver, the SENS model provides MUX layer.The MUX layer is direct and the END driver is mutual, and its application programming interfaces provide the UDI that is independent of procotol, can be mutual simultaneously with a plurality of independently END unit.
For single core processor, a general nuclear only is furnished with a network interface, and this network interface only is responsible for communicating by letter with extraneous.And, can run into following problem for polycaryon processor:
Do (1) how a plurality of nuclears communicate by letter with the external world?
Does (2) if think transmission protocol message between nuclear and the nuclear, how this communicate by letter again?
Well do not address the above problem in the current technology, following defective arranged:
(1) internuclear communication is independent of nuclear and extraneous communication mode, needs two cover mechanism to finish communication work, underaction for upper layer application.
Therefore (2) internuclear communication does not articulate protocol stack, can only receive and dispatch message, and the function that can't the use agreement stack provides causes function very single.
In sum, the technical scheme of multi-core processor communication in a kind of embedded OS of current needs.
Summary of the invention
Technical problem to be solved by this invention provides the device and method of realizing multi-core processor communication in a kind of embedded OS, can carry out internuclear communication, also can communicate with the external world.
In order to address the above problem, the invention provides the device of realizing multi-core processor communication in a kind of embedded OS, described device comprises memory modules, mixed-media network modules mixed-media and CPU module; Wherein,
Described memory modules in correspondence with foreign country, is used to store the message that sends to mixed-media network modules mixed-media, and the informing network module sends this message; Described memory modules comprise shared drive unit that many CPU nuclear is shared and each CPU examine exclusive privately owned internal storage location, wherein,
The shared drive unit that many CPU nuclears are shared in internuclear communication, is used to make mutual communication between the CPU nuclear, the message of the internuclear transmission of storage CPU; Described shared drive unit comprises the shared drive lock, and wherein the shared drive lock is used for the operation of shared drive;
The privately owned internal storage location of each CPU nuclear is used for the external communication of described mixed-media network modules mixed-media, the message that storage sends or receives from mixed-media network modules mixed-media to mixed-media network modules mixed-media;
Described mixed-media network modules mixed-media is used to receive the message that described privately owned internal storage location sends, and sends interrupt requests simultaneously, finishes the correspondence with foreign country of CPU nuclear;
Described CPU module is each CPU nuclear that polycaryon processor has, and each CPU nuclear comprises the network driver END unit of IP recognition unit, enhancing; Wherein said END unit further comprises correspondence with foreign country END unit and the internuclear END of communication unit;
Described IP recognition unit is used to discern the IP address that needs send message, thereby selects corresponding END unit to send; Wherein, the target ip address of the message of Fa Songing is internuclear mailing address if desired, then selects described internuclear communication END unit; If the internuclear mailing address of right and wrong is then selected correspondence with foreign country END unit;
Described END unit is used to receive the transmission information of described IP recognition unit, binding IP address, and communicate with protocol stack; Wherein,
Described correspondence with foreign country END unit is used for correspondence with foreign country, receives the message that protocol stack sends, and sends to the privately owned internal storage location of corresponding memory modules;
Described internuclear communication END unit is used for the internuclear communication of CPU, and the shared drive unit of memory modules is provided with the shared drive lock, receives the message that protocol stack sends and also sends to the shared drive unit.
Particularly, said apparatus also has following characteristics:
Described mixed-media network modules mixed-media is that CPU checks the network interface of answering, and each CPU nuclear all has the network interface of a correspondence, and by network interface, CPU nuclear communicates with the external world.
Particularly, said apparatus also has following characteristics:
Also comprise interrupt module, described interrupt module comprises internuclear interrupt location and network interface interrupt location, wherein,
Described internuclear interrupt location is used for the interruption between the Controlled CPU nuclear, and the interrupt requests of reception sources CPU nuclear is selected internuclear communication END unit in the current C PU nuclear, from the shared drive unit of memory modules, take out data, deliver protocol stack, and interruption is set, finish the communication of CPU nuclear to target CPU nuclear;
Described network interface interrupt location is used to receive the interrupt requests of described mixed-media network modules mixed-media and sends to CPU nuclear, and CPU nuclear takes out message from the privately owned internal storage location of corresponding memory modules, deliver protocol stack, and to destination address interruption is set, and finishes the communication of CPU nuclear.
In order to address the above problem, the present invention also provides the method that realizes multi-core processor communication in a kind of embedded OS, and described system comprises memory modules, mixed-media network modules mixed-media, interrupt module and CPU module, may further comprise the steps,
A, initialization CPU module dispose described memory modules, and memory modules is used for the external communication of mixed-media network modules mixed-media, the message that storage sends to mixed-media network modules mixed-media; It comprises:
The END unit of step 1101, initialization CPU module comprises designated equipment number and distribution media accessing to control address; Wherein, described CPU module is each CPU nuclear that polycaryon processor has;
Step 1102, initialization memory modules;
Step 1103, the IP address is bound, comprise the END unit is tied in the polynary interface, and protocol stack and END unit are bound;
Step 1104, interrupt module is set; Described interrupt module comprises internuclear interrupt location, network interface interrupt location, and described internuclear interrupt location is used for the interruption between the Controlled CPU nuclear; Described network interface interrupt location is used to make CPU nuclear identification map network module whether to receive interrupt requests;
The IP address of b, CPU module recognition objective is according to the END unit of IP address choice correspondence; Wherein, the target ip address of the message of Fa Songing is internuclear mailing address if desired, then selects internuclear communication END unit; If the internuclear mailing address of right and wrong is then selected correspondence with foreign country END unit;
Described END unit is used to receive the transmission information of described IP recognition unit, binding IP address, and communicate with protocol stack; Wherein,
Described correspondence with foreign country END unit is used for correspondence with foreign country, receives the message that protocol stack sends, and sends to the privately owned internal storage location of corresponding memory modules;
Described internuclear communication END unit is used for the internuclear communication of CPU, and the shared drive unit of memory modules is provided with the shared drive lock, receives the message that protocol stack sends and also sends to the shared drive unit;
After c, memory modules receive described message,
If the correspondence with foreign country of CPU nuclear, then described message is put into the privately owned internal storage location of memory modules, and to destination address interruption is set by the network interface interrupt location of interrupt module, privately owned internal storage location sends message to mixed-media network modules mixed-media, mixed-media network modules mixed-media sends interrupt requests, and the message of finishing CPU nuclear sends;
If the shared drive unit of memory modules is then put into described message in the internuclear communication of CPU, and to target CPU interruption is set by the internuclear interrupt location of interrupt module, send interrupt requests simultaneously, the message of finishing CPU nuclear sends.
Particularly, said method also has following characteristics:
Also comprise,
If the network interface interrupt location of described interrupt module is received interrupt requests, then from the privately owned internal storage location of corresponding memory modules, take out data, deliver protocol stack, the message of finishing CPU nuclear receives;
If the internuclear interrupt location of described interrupt module is received interrupt requests, then from the shared drive unit of memory modules, take out data, deliver protocol stack, the message of finishing CPU nuclear receives.
Particularly, said method also has following characteristics:
The message process of transmitting of described CPU nuclear is specially:
The IP recognition unit of step 210, described CPU module sends the target ip address of message as required and selects corresponding END unit;
The IP recognition unit of step 220, described CPU module judges whether it is internuclear address, if then execution in step 250; Otherwise target ip address is non-internuclear address, execution in step 230;
The IP recognition unit of step 230, described CPU module is selected correspondence with foreign country END unit, and protocol stack is put into the message that sends the privately owned internal storage location of corresponding memory modules;
Step 240, notice map network module begin to send the data in the privately owned internal storage location, and the message of finishing CPU nuclear in the correspondence with foreign country sends, and finishes;
The IP recognition unit of step 250, described CPU module is selected internuclear communication END unit, the shared drive unit of memory modules is provided with shared drive locks;
Step 260, protocol stack are put into the shared drive unit with the message that sends;
Step 270, the shared drive lock is removed in the shared drive unit of memory modules;
Step 280, identify the target CPU nuclear that needs communication by the IP recognition unit;
Step 290, the internuclear interrupt location by interrupt module are provided with internuclear interruption to target CPU nuclear, and the message of finishing CPU nuclear in the internuclear communication sends, and finishes.
Particularly, said method also has following characteristics:
The message receiving course of described CPU nuclear is specially:
Step 310, detect described interrupt module, judge whether it is that network interface interrupts, if then execution in step 320, otherwise execution in step 340;
The END unit of correspondence with foreign country described in step 320, the described CPU nuclear of selection;
Step 330, take out data from the privately owned internal storage location of corresponding memory modules, and deliver protocol stack, the message of finishing CPU nuclear receives, and finishes;
Step 340, judge whether it is internuclear interruption, if then execution in step 350, otherwise, finish;
The END unit of internuclear communication described in step 350, the described CPU nuclear of selection;
Step 360, the shared drive unit of described memory modules is provided with the shared drive lock;
Step 370, take out data from the shared drive unit of corresponding memory modules, and deliver protocol stack, the message of finishing CPU nuclear receives;
Step 380, the shared drive lock is removed in the shared drive unit of described memory modules, finish.
Compared with prior art, using the present invention, overcome the deficiencies in the prior art, at first is that correspondence with foreign country or internuclear communication all articulate protocol stack, with better function, and the upper layer application exploitation is convenient; Secondly correspondence with foreign country is communicated by letter for the upper strata transparence with internuclear, make application layer need not pay close attention to the transmission details of bottom.
Description of drawings
Fig. 1 is the network system layer structure chart of embedded OS;
Fig. 2 is the SENS structure chart;
Fig. 3 is a structure drawing of device of realizing multi-core processor communication in the embedded OS of the specific embodiment of the invention;
Fig. 4 is a method flow diagram of realizing multi-core processor communication in the embedded OS of the specific embodiment of the invention;
Fig. 5 is message transmission flow figure in the instantiation of the present invention;
Fig. 6 is that message receives flow chart in the instantiation of the present invention.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
As shown in Figure 3, multi-core processor communication device in a kind of embedded OS comprises CPU module, interrupt module, memory modules, mixed-media network modules mixed-media, wherein
(1) CPU module
The CPU module is each CPU nuclear that polycaryon processor has, and each CPU nuclear comprises two covering devices: the one, and the IP recognition unit is used to discern the IP address that needs send message, thereby selects different dispensing devices to send; The 2nd, the END unit is used for being responsible for binding IP address, and communicates with protocol stack, and the END unit comprises correspondence with foreign country END unit and the internuclear END of communication unit, and wherein, correspondence with foreign country END unit is used for correspondence with foreign country; Internuclear communication END unit is used for the internuclear communication of CPU;
(2) interrupt module
Interrupt module comprises two parts: the one, and internuclear interrupt location, be used for the interruption between the Controlled CPU nuclear, be to send interrupt requests between CPU nuclear and the CPU nuclear, each CPU endorses to authorize to intended target CPU and send interrupt requests, and target CPU nuclear also can be distributed the source CPU nuclear on ground by this internuclear interrupt location identification interrupt requests simultaneously; The 2nd, the network interface interrupt location is used to make CPU nuclear energy enough to discern the map network module and whether receives interrupt requests;
(3) memory modules
Memory modules comprises two parts: the one, and the shared drive unit that many CPU nuclears are shared, being used to make between the CPU nuclear can mutual communication, the shared drive unit comprises the shared drive lock, and wherein the shared drive lock is used to make the operation of shared drive can not conflict, and has guaranteed fail safe and reliability; The 2nd, each CPU nuclear exclusive privately owned internal storage location, be used for the external communication of mixed-media network modules mixed-media, the message that storage sends or receives from mixed-media network modules mixed-media to mixed-media network modules mixed-media;
(4) mixed-media network modules mixed-media is used to make CPU to endorse to communicate with the external world.
Mixed-media network modules mixed-media refers to CPU and checks the network interface of answering, and each CPU nuclear all has the network interface of a correspondence, and by network interface, CPU endorses to communicate with the external world.
Realize the device of multi-core processor communication in a kind of embedded OS, comprise mixed-media network modules mixed-media, memory modules, CPU module, interrupt module, wherein,
Described memory modules comprise shared drive unit that many CPU nuclear is shared and each CPU examine exclusive privately owned internal storage location, wherein,
The shared drive unit that many CPU nuclears are shared in internuclear communication, is used to make mutual communication between the CPU nuclear, the message of the internuclear transmission of storage CPU;
Described shared drive unit comprises the shared drive lock, and wherein the shared drive lock is used for the operation of shared drive, and the operation of shared drive can not conflicted, and has guaranteed fail safe and reliability.
The privately owned internal storage location of each CPU nuclear is used for the external communication of described mixed-media network modules mixed-media, the message that storage sends or receives from mixed-media network modules mixed-media to mixed-media network modules mixed-media;
Described privately owned internal storage location in correspondence with foreign country, is used to store the message that sends to mixed-media network modules mixed-media, and the informing network module sends this message.
Described mixed-media network modules mixed-media is used to receive the message that described privately owned internal storage location sends, and sends interrupt requests simultaneously, finishes the communication of CPU nuclear;
Described mixed-media network modules mixed-media is that CPU checks the network interface of answering, and each CPU nuclear all has the network interface of a correspondence, and by network interface, CPU nuclear communicates with the external world.
The CPU module is each CPU nuclear that polycaryon processor has, and each CPU nuclear comprises the network driver END unit of IP recognition unit, enhancing, wherein
Described IP recognition unit is used to discern the IP address that needs send message, thereby selects corresponding END unit to send;
Described END unit is used to receive the transmission information of described IP recognition unit, binding IP address, and communicate with protocol stack.
Described END unit comprises correspondence with foreign country END unit and the internuclear END of communication unit, wherein,
Described correspondence with foreign country END unit is used for correspondence with foreign country, receives the message that protocol stack sends, and sends to the privately owned internal storage location of corresponding memory modules;
Described internuclear communication END unit is used for the internuclear communication of CPU, and the shared drive unit of memory modules is provided with the shared drive lock, receives the message that protocol stack sends and also sends to the shared drive unit.
Described interrupt module comprises internuclear interrupt location, network interface interrupt location, wherein,
Described internuclear interrupt location is used for the interruption between the Controlled CPU nuclear, the interrupt requests of reception sources CPU nuclear, select the END unit of internuclear communication in the current C PU nuclear, from the shared drive unit of memory modules, take out data, deliver protocol stack, and interruption is set to target CPU nuclear, finish the communication of CPU nuclear; Be can send interrupt requests between CPU nuclear and the CPU nuclear, each CPU endorses to authorize to intended target CPU and send interrupt requests, and target CPU nuclear is also distributed the source CPU nuclear on ground by this internuclear interrupt location identification interrupt requests simultaneously;
Described network interface interrupt location is used to receive the interrupt requests of described mixed-media network modules mixed-media and sends to CPU nuclear, and CPU nuclear takes out described message from the privately owned internal storage location of corresponding memory modules, deliver protocol stack, and to destination address interruption is set, and finishes the communication of CPU nuclear.
As shown in Figure 4, realize the method for multi-core processor communication in a kind of embedded OS, may further comprise the steps,
Step 110, initialization CPU module, the privately owned internal storage location in the allocate memory module;
Privately owned internal storage location in the memory modules is put in each CPU caryogamy, be may further comprise the steps,
The correspondence with foreign country END unit of step 1101, initialization CPU module comprises designated equipment number, distributes MAC (medium access control) address etc.;
Privately owned internal storage location in step 1102, the initialization memory modules;
Step 1103, the IP address is bound, comprise correspondence with foreign country END unit is tied among the MUX, and protocol stack and correspondence with foreign country END unit are bound, the IP address that select this moment is IP0;
Step 1104, the network interface interrupt location of interrupt module is set.
The shared drive unit of step 120, allocate memory module;
Configuration shared drive unit may further comprise the steps,
The internuclear communication END unit of step 1201, initialization CPU module comprises designated equipment number, distributes MAC Address etc.;
Step 1202, initialization shared drive unit are provided with the shared drive lock simultaneously;
Step 1203, the IP address is bound, comprise internuclear communication END unit is tied among the MUX, and protocol stack is bound with the internuclear END of communication unit, the IP address that select this moment is IP1;
Step 1204, the internuclear interrupt location of interrupt module is set.
The IP address of the IP recognition unit recognition objective of step 130, CPU module is according to the END unit of IP address choice correspondence;
If step 140 correspondence with foreign country is then put into message the privately owned internal storage location of memory modules, and to destination address interruption is set by the network interface interrupt location of interrupt module, send interrupt requests simultaneously, the message of finishing CPU nuclear sends;
If the shared drive unit of memory modules is then put into message in the internuclear communication of CPU, and to destination address interruption is set by the internuclear interrupt location of interrupt module, send interrupt requests simultaneously, the message of finishing CPU nuclear sends.
Step 150, if the network interface interrupt location of interrupt module is received interrupt requests, then from the privately owned internal storage location of corresponding memory modules, take out data, deliver protocol stack, the message of finishing CPU nuclear receives.
If the internuclear interrupt location of interrupt module is received interrupt requests, then from the shared drive unit of memory modules, take out data, deliver protocol stack, the message of finishing CPU nuclear receives.
The invention will be further described below in conjunction with instantiation.
The message forwarding step of CPU nuclear as shown in Figure 5.
The IP recognition unit of step 210, CPU module sends the target ip address of message as required and selects corresponding END unit;
Step 220, judge whether it is internuclear address, if then execution in step 250; Otherwise target ip address is non-internuclear address, execution in step 230;
Step 230, selection correspondence with foreign country END unit, protocol stack is put into the message that sends the privately owned internal storage location of corresponding memory modules;
Step 240, notice map network module begin to send the data in the privately owned internal storage location, and the message of finishing CPU nuclear in the correspondence with foreign country sends, and finishes;
Step 250, select internuclear communication END unit, the shared drive unit of memory modules is provided with shared drive locks;
This moment, target ip address was internuclear address.
Step 260, protocol stack are put into the shared drive unit with the message that sends;
Step 270, the shared drive lock is removed in the shared drive unit of memory modules;
Step 280, identify the target CPU nuclear that needs communication by the IP recognition unit;
Step 290, the internuclear interrupt location by interrupt module are provided with internuclear interruption to target CPU nuclear, and the message of finishing CPU nuclear in the internuclear communication sends, and finishes.
The message receiving step of CPU nuclear as shown in Figure 6.
Step 310, detection interrupt module judge whether it is that network interface interrupts, if then execution in step 320, otherwise execution in step 340;
If the network interface interrupt location is received interruption, illustrate that then the map network module has message to send into.
The END unit of correspondence with foreign country in step 320, the selection current C PU nuclear;
Step 330, take out data from the privately owned internal storage location of corresponding memory modules, and deliver protocol stack, the message of finishing CPU nuclear receives, and finishes;
Step 340, detection interrupt module judge whether it is internuclear interruption, if then execution in step 350, otherwise, finish;
If internuclear interrupt location is received interruption, then illustrating internuclearly has message to send into.
The END unit of internuclear communication in step 350, the selection current C PU nuclear;
Step 360, the shared drive unit of memory modules is provided with the shared drive lock;
Step 370, take out data from the shared drive unit of corresponding memory modules, and deliver protocol stack, the message of finishing CPU nuclear receives.
Step 380, the shared drive lock is removed in the shared drive unit of memory modules, finish.
The invention provides polycaryon processor correspondence with foreign country and internuclear method for communicating in embedded OS, adopted the system of this method not only can to communicate with the network equipment of outside, internuclear the communicating that can also allow inside, and the difference of two kinds of communications is transparent fully for the application layer of system, no matter be internuclear communication or the support that correspondence with foreign country can adopt the embedded OS protocol stack to be provided flexibly, make the communication function of system improve more with powerful, because of the shared drive mode of internuclear communication employing, its efficient and reliability are also very high in addition.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (7)

1. realize the device of multi-core processor communication in the embedded OS, it is characterized in that described device comprises memory modules, mixed-media network modules mixed-media and CPU module; Wherein,
Described memory modules in correspondence with foreign country, is used to store the message that sends to mixed-media network modules mixed-media, and the informing network module sends this message; Described memory modules comprise shared drive unit that many CPU nuclear is shared and each CPU examine exclusive privately owned internal storage location, wherein,
The shared drive unit that many CPU nuclears are shared in internuclear communication, is used to make mutual communication between the CPU nuclear, the message of the internuclear transmission of storage CPU; Described shared drive unit comprises the shared drive lock, and wherein, the shared drive lock is used for the operation of shared drive;
The privately owned internal storage location of each CPU nuclear is used for described mixed-media network modules mixed-media correspondence with foreign country, the message that storage sends or receives from mixed-media network modules mixed-media to mixed-media network modules mixed-media;
Described mixed-media network modules mixed-media is used to receive the message that described privately owned internal storage location sends, and sends interrupt requests simultaneously, finishes the correspondence with foreign country of CPU nuclear;
Described CPU module is each CPU nuclear that polycaryon processor has, and each CPU nuclear comprises the network driver END unit of IP recognition unit, enhancing; Wherein said END unit further comprises correspondence with foreign country END unit and the internuclear END of communication unit;
Described IP recognition unit is used to discern the IP address that needs send message, thereby selects corresponding END unit to send; Wherein, the target ip address of the message of Fa Songing is internuclear mailing address if desired, then selects described internuclear communication END unit; If the internuclear mailing address of right and wrong is then selected correspondence with foreign country END unit;
Described END unit is used to receive the transmission information of described IP recognition unit, binding IP address, and communicate with protocol stack; Wherein,
Described correspondence with foreign country END unit is used for correspondence with foreign country, receives the message that protocol stack sends, and sends to the privately owned internal storage location of corresponding memory modules;
Described internuclear communication END unit is used for the internuclear communication of CPU, and the shared drive unit of memory modules is provided with the shared drive lock, receives the message that protocol stack sends and also sends to the shared drive unit.
2. device as claimed in claim 1 is characterized in that,
Described mixed-media network modules mixed-media is that CPU checks the network interface of answering, and each CPU nuclear all has the network interface of a correspondence, and by network interface, CPU nuclear communicates with the external world.
3. device as claimed in claim 1 is characterized in that,
Also comprise interrupt module, described interrupt module comprises internuclear interrupt location and network interface interrupt location, wherein,
Described internuclear interrupt location is used for the interruption between the Controlled CPU nuclear, and the interrupt requests of reception sources CPU nuclear is selected internuclear communication END unit in the current C PU nuclear, from the shared drive unit of memory modules, take out data, deliver protocol stack, and interruption is set, finish the communication of CPU nuclear to target CPU nuclear;
Described network interface interrupt location is used to receive the interrupt requests of described mixed-media network modules mixed-media and sends to CPU nuclear, and CPU nuclear takes out message from the privately owned internal storage location of corresponding memory modules, deliver protocol stack, and to destination address interruption is set, and finishes the communication of CPU nuclear.
4. realize the method for multi-core processor communication in the embedded OS, described system comprises memory modules, mixed-media network modules mixed-media, interrupt module and CPU module, may further comprise the steps,
A, initialization CPU module dispose described memory modules, and memory modules is used for the mixed-media network modules mixed-media correspondence with foreign country, the message that storage sends to mixed-media network modules mixed-media; It comprises:
The END unit of step 1101, initialization CPU module comprises designated equipment number and distribution media accessing to control address; Wherein, described CPU module is each CPU nuclear that polycaryon processor has;
Step 1102, initialization memory modules;
Step 1103, the IP address is bound, comprise the END unit is tied in the polynary interface, and protocol stack and END unit are bound;
Step 1104, interrupt module is set; Described interrupt module comprises internuclear interrupt location and network interface interrupt location, and described internuclear interrupt location is used for the interruption between the Controlled CPU nuclear; Described network interface interrupt location is used to make CPU nuclear identification map network module whether to receive interrupt requests;
The IP address of b, CPU module recognition objective is according to the END unit of IP address choice correspondence; Wherein, the target ip address of the message of Fa Songing is internuclear mailing address if desired, then selects internuclear communication END unit; If the internuclear mailing address of right and wrong is then selected correspondence with foreign country END unit;
Described END unit is used to receive the transmission information of described IP recognition unit, binding IP address, and communicate with protocol stack; Wherein,
Described correspondence with foreign country END unit is used for correspondence with foreign country, receives the message that protocol stack sends, and sends to the privately owned internal storage location of corresponding memory modules;
Described internuclear communication END unit is used for the internuclear communication of CPU, and the shared drive unit of memory modules is provided with the shared drive lock, receives the message that protocol stack sends and also sends to the shared drive unit;
After c, memory modules receive described message,
If the correspondence with foreign country of CPU nuclear, then described message is put into the privately owned internal storage location of memory modules, and to destination address interruption is set by the network interface interrupt location of interrupt module, privately owned internal storage location sends message to mixed-media network modules mixed-media, mixed-media network modules mixed-media sends interrupt requests, and the message of finishing CPU nuclear sends;
If the shared drive unit of memory modules is then put into described message in the internuclear communication of CPU, and to target CPU interruption is set by the internuclear interrupt location of interrupt module, send interrupt requests simultaneously, the message of finishing CPU nuclear sends.
5. method as claimed in claim 4 is characterized in that,
Also comprise,
If the network interface interrupt location of described interrupt module is received interrupt requests, then from the privately owned internal storage location of corresponding memory modules, take out data, deliver protocol stack, the message of finishing CPU nuclear receives;
If the internuclear interrupt location of described interrupt module is received interrupt requests, then from the shared drive unit of memory modules, take out data, deliver protocol stack, the message of finishing CPU nuclear receives.
6. as claim 4 or 5 described methods, it is characterized in that the message process of transmitting of described CPU nuclear is specially:
The IP recognition unit of step 210, described CPU module sends the target ip address of message as required and selects corresponding END unit;
The IP recognition unit of step 220, described CPU module judges whether it is internuclear address, if then execution in step 250; Otherwise target ip address is non-internuclear address, execution in step 230;
The IP recognition unit of step 230, described CPU module is selected correspondence with foreign country END unit, and protocol stack is put into the message that sends the privately owned internal storage location of corresponding memory modules;
Step 240, notice map network module begin to send the data in the privately owned internal storage location, and the message of finishing CPU nuclear in the correspondence with foreign country sends, and finishes;
The IP recognition unit of step 250, described CPU module is selected internuclear communication END unit, the shared drive unit of memory modules is provided with shared drive locks;
Step 260, protocol stack are put into the shared drive unit with the message that sends;
Step 270, the shared drive lock is removed in the shared drive unit of memory modules;
Step 280, identify the target CPU nuclear that needs communication by the IP recognition unit;
Step 290, the internuclear interrupt location by interrupt module are provided with internuclear interruption to target CPU nuclear, and the message of finishing CPU nuclear in the internuclear communication sends, and finishes.
7. method as claimed in claim 5 is characterized in that, the message receiving course of described CPU nuclear is specially:
Step 310, detect described interrupt module, judge whether it is that network interface interrupts, if then execution in step 320, otherwise execution in step 340;
The END unit of correspondence with foreign country described in step 320, the described CPU nuclear of selection;
Step 330, take out data from the privately owned internal storage location of corresponding memory modules, and deliver protocol stack, the message of finishing CPU nuclear receives, and finishes;
Step 340, judge whether it is internuclear interruption, if then execution in step 350, otherwise, finish;
The END unit of internuclear communication described in step 350, the described CPU nuclear of selection;
Step 360, the shared drive unit of described memory modules is provided with the shared drive lock;
Step 370, take out data from the shared drive unit of corresponding memory modules, and deliver protocol stack, the message of finishing CPU nuclear receives;
Step 380, the shared drive lock is removed in the shared drive unit of described memory modules, finish.
CN2007101873503A 2007-11-20 2007-11-20 Device and method for realizing multi-core processor communication in built-in operating system Expired - Fee Related CN101170511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101873503A CN101170511B (en) 2007-11-20 2007-11-20 Device and method for realizing multi-core processor communication in built-in operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101873503A CN101170511B (en) 2007-11-20 2007-11-20 Device and method for realizing multi-core processor communication in built-in operating system

Publications (2)

Publication Number Publication Date
CN101170511A CN101170511A (en) 2008-04-30
CN101170511B true CN101170511B (en) 2010-11-24

Family

ID=39390984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101873503A Expired - Fee Related CN101170511B (en) 2007-11-20 2007-11-20 Device and method for realizing multi-core processor communication in built-in operating system

Country Status (1)

Country Link
CN (1) CN101170511B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371933B (en) * 2012-05-29 2019-08-20 安科讯(福建)科技有限公司 The method of the intercommunication of more software runtime environments
CN104142867B (en) 2013-05-09 2018-01-09 华为技术有限公司 Data processing equipment and data processing method
CN104572315B (en) * 2013-10-23 2018-12-25 华为技术有限公司 Realize method, communication entity and the distributed communication system of intersubsystem communication
CN104503948B (en) * 2015-01-19 2017-08-11 中国人民解放军国防科学技术大学 The close coupling of multi-core network processing framework is supported adaptively to assist processing system
DE102016003362A1 (en) * 2016-03-18 2017-09-21 Giesecke+Devrient Currency Technology Gmbh Device and method for evaluating sensor data for a document of value
CN105893320B (en) * 2016-03-29 2019-08-06 浙江大学 A kind of remote task function calling method of multi-core processor oriented
CN106372029A (en) * 2016-09-06 2017-02-01 北方电子研究院安徽有限公司 Point-to-point on-chip communication module based on interruption
CN107943743A (en) * 2017-11-17 2018-04-20 江苏微锐超算科技有限公司 Information storage, read method and the shared virtual medium carrying chip of computing device
CN108768667B (en) * 2018-04-24 2020-08-07 中船重工(武汉)凌久电子有限责任公司 Method for inter-chip network communication of multi-core processor
CN111427814B (en) * 2020-03-05 2021-12-07 深圳震有科技股份有限公司 Inter-core communication method based on AMP system, terminal and storage medium
CN111427813A (en) * 2020-03-05 2020-07-17 深圳震有科技股份有限公司 Inter-core communication method based on serial port, terminal and storage medium
CN112286860A (en) * 2020-11-18 2021-01-29 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Method and system for communication between deterministic kernels of embedded operating system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411217A (en) * 2001-10-17 2003-04-16 华为技术有限公司 Method of raising IP message forwarding speed utilizing slow storage technology
CN1904873A (en) * 2005-07-28 2007-01-31 大唐移动通信设备有限公司 Inter core communication method and apparatus for multi-core processor in embedded real-time operating system
CN101000596A (en) * 2007-01-22 2007-07-18 北京中星微电子有限公司 Chip and communication method of implementing communicating between multi-kernel in chip and communication method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411217A (en) * 2001-10-17 2003-04-16 华为技术有限公司 Method of raising IP message forwarding speed utilizing slow storage technology
CN1904873A (en) * 2005-07-28 2007-01-31 大唐移动通信设备有限公司 Inter core communication method and apparatus for multi-core processor in embedded real-time operating system
CN101000596A (en) * 2007-01-22 2007-07-18 北京中星微电子有限公司 Chip and communication method of implementing communicating between multi-kernel in chip and communication method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吕佳彦,杨志义,於志文,王灵敏.VxWorks增强型网络驱动程序(END)的分析与实现.计算机应用研究 4.2005,(4),200-202.
吕佳彦,杨志义,於志文,王灵敏.VxWorks增强型网络驱动程序(END)的分析与实现.计算机应用研究 4.2005,(4),200-202. *

Also Published As

Publication number Publication date
CN101170511A (en) 2008-04-30

Similar Documents

Publication Publication Date Title
CN101170511B (en) Device and method for realizing multi-core processor communication in built-in operating system
US20090089460A1 (en) Storage device and storage device access control method
CN104111907A (en) Method for accessing NVMe storage device and NVMe storage device
CN100505676C (en) Centralized scheduling controller for intelligent multi buffer management and dynamic scheduting method
CN103257941B (en) Multi-protocol storage controller and system
CN103942178A (en) Communication method between real-time operating system and non-real-time operating system on multi-core processor
EP2717533A1 (en) Method, network card and hard disk card for accessing to shut-down hard disk
CN101310262B (en) Integrated circuit capable of independently operating a plurality of communication channels
CN101673209A (en) Method for updating program of multiple single chip microcomputers
CN102609215A (en) Data processing method and device
CN103186498A (en) Methods and structure for communicating between a SATA host and a SATA target device through a SAS domain background
CN101415270B (en) Mobile terminal and communication method for processing module thereof
CN101958939A (en) Automatic distribution method and system for multi-machine communication node equipment key address
CN102843435A (en) Access and response method and access and response system of storing medium in cluster system
CN1331070C (en) Method and equipment of data communication
CN106027305A (en) Method for hot standby of dual servers using same IP based on ARM
CN103179162A (en) Method and system for outputting log
CN102043741B (en) Circuit and method for pipe arbitration
CN101388906A (en) Method and system for accessing data
CN102799391A (en) Flash memory controller and control method for same, and flash memory storage device
CN112153129B (en) Improved dual-protocol path method and device
CN103024087B (en) Support massive store and the system and method for ethernet communication simultaneously
CN102768647A (en) Flash memory controller and control method thereof as well as flash memory storage equipment
CN102523168A (en) Method and apparatus for message transmission
CN103885813B (en) Packet capturing method in virtual machine environment

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: 20101124

Termination date: 20161120

CF01 Termination of patent right due to non-payment of annual fee