CN108108199A - Multiple operating system starts method and device on a kind of multi-core CPU - Google Patents
Multiple operating system starts method and device on a kind of multi-core CPU Download PDFInfo
- Publication number
- CN108108199A CN108108199A CN201711396711.5A CN201711396711A CN108108199A CN 108108199 A CN108108199 A CN 108108199A CN 201711396711 A CN201711396711 A CN 201711396711A CN 108108199 A CN108108199 A CN 108108199A
- Authority
- CN
- China
- Prior art keywords
- core
- operating system
- client
- resource distribution
- distribution file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4405—Initialisation of multiprocessor systems
-
- 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Abstract
The present invention relates to operation system technology fields, more particularly to multiple operating system starts method and device on a kind of multi-core CPU, start core and read default resource distribution file, and according to default resource distribution file, start underlying Operating System, according to default resource distribution file, determine that Client OS is corresponding using core, it is enabled it is corresponding be sent to using core and by resource distribution file it is corresponding using core;Wherein, the resource distribution of underlying Operating System and Client OS is included at least in default resource distribution file;After corresponding application core is enabled, resource distribution file is loaded to the wake-up physical address of default Client OS, and the initial work using core is completed according to resource distribution file, and after initial work is completed, jump to the entry address of default Client OS, start Client OS, can effectively realize that collaboration starts multiple heterogeneous operating system on multi-core CPU, realize simple.
Description
Technical field
The present invention relates on operation system technology field more particularly to a kind of multi-core CPU multiple operating system start method and
Device.
Background technology
At present, multinucleation trend is changing the looks of IT calculating.With traditional monokaryon central processing unit (Central
Processing Unit, CPU) compare, multi-core CPU have more advantages, such as bring stronger parallel processing capability,
Higher calculating density and lower clock frequency, and greatly reduce heat dissipation and power consumption etc..And at present in practical applications,
Multi-core CPU has also already taken up main status, will apply from monokaryon system to multiple nucleus system during migration, and pass through selection
Suitable operating system, application developer can greatly reduce trouble.
In the prior art, start the method for multiple operating systems on multi-core CPU, both for isomorphism operating system, lead to
After Chang Youzhu cores start an operating system, recall from core and start other operating systems.
But due to multiple isomorphism operating systems, type is identical, corresponding program code, data etc. be all it is identical,
Fairly simple, and multiple heterogeneous operating system are realized when cooperateing with and starting on multi-core CPU, type is different, and program code is also
Different or other agreements etc. are also different, it is impossible to start other operating systems by directly invoking from core, for example, one
The operating system of 64 and the operating system of one 32, if directly passing through the operation system of the os starting of 64 32
System, in address, access and translation etc. are present with mistake, and system can collapse, and therefore, will directly can not start on multi-core CPU more
The method of a isomorphism operating system directly applies to and starts multiple heterogeneous operating system, and in the prior art, for multiple isomeries
Operating system collaboration starts corresponding solution not yet.
The content of the invention
The embodiment of the present invention provides multiple operating system on a kind of multi-core CPU and starts method and device, how to solve more
The problem of multiple heterogeneous operating system collaborations start is realized on core CPU.
Specific technical solution provided in an embodiment of the present invention is as follows:
Multiple operating system starts method on a kind of multi-core CPU, including:
Start core and read default resource distribution file, and according to the default resource distribution file, start basis behaviour
Make system, and according to default resource distribution file, determine that Client OS is corresponding using core, enable described corresponding
It is sent to using core and by resource distribution file described corresponding using core;Wherein, in the default resource distribution file
Including at least the resource distribution of underlying Operating System and Client OS;
After the corresponding application core is enabled, the resource distribution file is loaded to default Client OS
Physical address is waken up, and is completed according to the resource distribution file using the initial work of core and in the initial chemical industry of completion
After work, the entry address of default Client OS is jumped to, starts Client OS.
Preferably, the underlying Operating System possesses internuclear interruption IPI communication functions;
The underlying Operating System for it is following any one:Real time operating system, non-real time operating system.
Preferably, the Client OS for it is following any one:Real time operating system, non-real time operating system,
Monokaryon operating system, multi-core operation system.
Preferably, it is enabled described corresponding using core, it specifically includes:
Stop signal is sent to the corresponding application core, and halted state is in the definite corresponding application core
Afterwards, wake-up signal is sent to the corresponding application core, so that the corresponding application core is waken up.
Preferably, pass through IPI or shared memory space between the underlying Operating System and the Client OS
It communicates.
Preferably, further comprise:
If there are multiple underlying Operating Systems, start the underlying Operating System that core determines to be located on the startup core and started
Cheng Hou starts the underlying Operating System being located at using on core successively, wherein, start core and only run a underlying Operating System, remove
It is located at positioned at the other underlying Operating Systems started outside the underlying Operating System on core using on core.
Preferably, further comprise:
If there are multiple Client OSs, start core according to the default resource distribution file, determine described more
The boot sequence of a Client OS, and according to the boot sequence of the multiple Client OS, determine a visitor
After the completion of the machine os starting of family, then start next Client OS successively.
Multiple operating system starter on a kind of multi-core CPU, including:
Start core, for reading default resource distribution file, and according to the default resource distribution file, start base
Plinth operating system, and according to default resource distribution file, determine that Client OS is corresponding using core, it is described right to enable
Being sent to using core and by resource distribution file for answering is described corresponding using core;Wherein, the default resource distribution text
The resource distribution of underlying Operating System and Client OS is included at least in part;
Using core, after being enabled, wake-up of the resource distribution file to default Client OS is loaded
Physical address, and completed according to the resource distribution file using the initial work of core and after initial work is completed,
The entry address of default Client OS is jumped to, starts Client OS.
Preferably, the underlying Operating System possesses internuclear interruption IPI communication functions;
The underlying Operating System for it is following any one:Real time operating system, non-real time operating system.
Preferably, the Client OS for it is following any one:Real time operating system, non-real time operating system,
Monokaryon operating system, multi-core operation system.
Preferably, it is enabled described corresponding using core, start core and be specifically used for:
Stop signal is sent to the corresponding application core, and halted state is in the definite corresponding application core
Afterwards, wake-up signal is sent to the corresponding application core, so that the corresponding application core is waken up.
Preferably, further comprise:
Resource configuration module for carrying out resource distribution to underlying Operating System and Client OS, and generates money
Source profile.
Preferably, further comprise:
Operating system communication module, for passing through IPI or shared memory space, optimized integration operating system and client computer behaviour
Make the communication of system.
If preferably there are multiple underlying Operating Systems, start core and be further used for:It determines to be located on the startup core
After underlying Operating System start completion, start the underlying Operating System being located at using on core successively, wherein, start core and only run one
A underlying Operating System is located at except positioned at other underlying Operating Systems in addition to starting the underlying Operating System on core using core
On;
If there are multiple Client OSs, start core and be further used for:According to the default resource distribution file,
Determine the boot sequence of the multiple Client OS, and according to the boot sequence of the multiple Client OS,
After determining a Client OS start completion, then start next Client OS successively.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Realize that multiple operating system starts method on the multi-core CPU in above-mentioned any means embodiment during row.
In the embodiment of the present invention, start core and read default resource distribution file, and according to the default resource distribution
File starts underlying Operating System, and according to default resource distribution file, determines the corresponding application of Client OS
Core, it is enabled it is described it is corresponding be sent to using core and by resource distribution file it is described corresponding using core;Wherein, it is described pre-
If resource distribution file in include at least the resource distribution of underlying Operating System and Client OS;It is described it is corresponding should
After being enabled with core, the resource distribution file is loaded to the wake-up physical address of default Client OS, and according to
The resource distribution file is completed, using the initial work of core and after initial work is completed, to jump to default visitor
The entry address of family machine operating system starts Client OS, in this way, starting core starts underlying Operating System, and enables
Using core, so that corresponding application core jumps to the wake-up of default Client OS according to resource distribution file
Physical address is completed, using after core initial work, to jump to the entry address of default Client OS, completes to start
Client OS in this way, the collaboration that can effectively realize multiple heterogeneous operating system on multi-core CPU starts, realizes letter
It is single, it is easy to use, for isomery multiple operating system, either in real time or on the non real-time underlying Operating System of person, can carry
Start for the multinuclear of real time operating system, the isomery multiple operating system of non-real-time operations.
Description of the drawings
Fig. 1 is that multiple operating system starts method flow diagram on multi-core CPU in the embodiment of the present invention;
Fig. 2 is multinuclear multiple operating system frame construction drawing on multi-core CPU in the embodiment of the present invention;
Fig. 3 is multiple operating system starter structure diagram on multi-core CPU in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, is not whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment belongs to the scope of protection of the invention.
As shown in fig.1, in the embodiment of the present invention, the idiographic flow of multiple operating system startup method is as follows on multi-core CPU:
In the embodiment of the present invention, multiple operating system starts method and is applied to multi-core central processing unit (Central
Processing Unit, CPU), mainly solve how to start multiple operating systems on multi-core CPU.
In practice, there are mainly three types of multi-core CPU tupes:Asymmetric multiprocessing (Asymmetric
Multiprocessing, AMP), symmetric multi-processors (Symmetric multiprocessing, SMP) and mixing multiprocessing
(Bound multiprocessing, BMP).In the embodiment of the present invention, AMP tupes are mainly based upon, one kind is provided and exists
Start the realization mechanism of multiple operating system on multi-core CPU, realize that the coordination of multiple heterogeneous operating system is started and run, same
Under a Physical architecture, real time operating system and non-real time operating system etc. can be provided simultaneously.
Wherein, the operating system that the expression of isomorphism operating system is operated in different IPs is same operating system, mutually similar
The operating system of type, either 32 or 64 should be just the same, for example, all run 32 linux system or
Person all runs 64 real time operating systems.Therefore isomorphism operating system can not provide real-time and non real-time function, this hair simultaneously
In bright embodiment, mainly for multiple heterogeneous operating system, heterogeneous operating system expression operates in the operating system in different IPs
Different, type is different, for example, some particular cores run the linux system of 32, some particular cores run the real-time behaviour of 64
Make system, real-time and non real-time function can be provided simultaneously.
Step 100:Start core and read default resource distribution file, and according to the default resource distribution file, open
Dynamic underlying Operating System, and according to default resource distribution file, determine that Client OS is corresponding using core, enable institute
State it is corresponding be sent to using core and by resource distribution file it is described corresponding using core;Wherein, the default resource is matched somebody with somebody
Put the resource distribution that underlying Operating System and Client OS are included at least in file.
In practice, included at least for multi-core CPU and start core and using core, wherein, start core and be commonly referred to as core0, it should
It is usually core1 to core (n-1) with core.It is mainly realized in the embodiment of the present invention and starts more behaviour on core and application core is started
Make the method for system, therefore for ease of description, when introducing multiple operating system Booting sequence respectively to open in the embodiment of the present invention
Kinetonucleus and application core illustrate.
When performing step 100, specifically include:
First, start core and read default resource distribution file, and according to the default resource distribution file, start base
Plinth operating system.
Wherein, underlying Operating System is the operating system for starting the operation of core electrifying startup of multi-core CPU.
In the embodiment of the present invention, the underlying Operating System for it is following any one:Real time operating system, non-real-time operations
System, for example, real time operating system VxWorks, non-real time operating system Linux etc..In the embodiment of the present invention, base is not intended to limit
The type of plinth operating system can be supported to realize operating system, can also support non-real time operating system, can be based on this hair
Multiple operating system in bright embodiment starts method and collaboration startup is carried out in multi-core CPU.
Also, the underlying Operating System possesses internuclear interruption (Inter-processor Interrupt, IPI) communication
Function.
Wherein, the money of underlying Operating System and Client OS is included at least in the default resource distribution file
Source configures.
Memory size, occupied core, external equipment e.g., including needed for underlying Operating System and Client OS
Configuration etc..Specifically, resource distribution can include but is not limited to following any one or combination:1) configuration of core.For example, base
Plinth operating system and Client OS occupy which core of multi-core CPU respectively.2) configuration of memory.For example, each behaviour
Make memory size shared by system and occupy which memory address.For example, shared 8G memories, there is 1 underlying Operating System, 2
Client OS can then distribute to memory size shared by underlying Operating System as 4G, one of client actions system
Memory size shared by system is 1G, and memory size shared by another Client OS is 3G.3) configuration of external equipment.Example
Such as, each operating system is to the usage right of external equipment.4) configuration interrupted.For example, when the interruption of external equipment and local
The interruption of clock (timer).
In this way, starting resource distribution of the core according to underlying Operating System in resource distribution file, start underlying Operating System.
Then, according to default resource distribution file, determine that Client OS is corresponding using core, it is described right to enable
That answers applies core.
Specifically:1) after starting the default resource distribution file of core parsing, underlying Operating System and client computer can be obtained
The resource distribution of operating system, and then be also assured that apply at which and start to start Client OS on core, really
It is corresponding using core to make Client OS.
2) it is enabled described corresponding using core, it specifically includes:Stop signal is sent to the corresponding application core, and true
After the fixed corresponding application core is in halted state, wake-up signal is sent to the corresponding application core, so that the correspondence
Be waken up using core.
This is because in multi-core CPU electrifying startup, each core of multi-core CPU will be activated, and operate in idle shape
Under state, it is necessary to first send stop signal, such as stop IPI to corresponding application core after startup core startup underlying Operating System,
Corresponding application core is made to be in halted state, then, then to corresponding application core transmission wake-up signal, such as Boot IPI, is called out
It wakes up corresponding using core, can so cause corresponding application core is learnt oneself to need to start Client OS, no longer transport
Row is in idle state.
Finally, resource distribution file is sent to described corresponding using core.
The information parsed is sent to corresponding using core in this way, starting core, can allow and know visitor using core
Required resource distribution during the machine os starting of family.
Step 110:After the corresponding application core is enabled, loads the resource distribution file and grasped to default client computer
Make the wake-up physical address of system, and complete to apply the initial work of core and complete according to the resource distribution file
After initial work, the entry address of default Client OS is jumped to, starts Client OS.
When performing step 110, specifically include:
First, after the corresponding application core is enabled, the resource distribution file is loaded to default client actions
The wake-up physical address of system.
Wherein, Client OS is the operating system by being booted up using core.The Client OS is
Below any one:Real time operating system, non-real time operating system, monokaryon operating system, multi-core operation system, for example, in real time
Operating system VxWorks, Ucos etc., non-real time operating system Linux, Windows etc..
In the embodiment of the present invention, after being enabled using core, after obtaining resource distribution file, it can parse and be stored in memory
In address, the resource distribution of Client OS can be obtained from resource distribution file, and be loaded into default client computer
The wake-up physical address of operating system, so as to carry out initial work using core.
Then, the initial work using core is completed according to the resource distribution file.
Wherein, using the initial work of core, preparation required before starting Client OS is represented.Example
Such as, the switching of operating mode, page table management, interrupt register initialization etc..
Finally, after initial work is completed, the entry address of default Client OS is jumped to, starts client
Machine operating system.
In this way, after completing initialization using core, it is possible to start Client OS, so as to be achieved that in multinuclear
Start multiple operating system on CPU, realize simple, it is easy to accomplish.
Further, if there are multiple underlying Operating Systems, start core and determine the fundamental operation being located on the startup core
After system start completion, start the underlying Operating System being located at using on core successively, wherein, start core and only run a basis behaviour
Make system, be located at except positioned at other underlying Operating Systems in addition to starting the underlying Operating System on core using on core.
That is, for multiple underlying Operating Systems, start core and only run a underlying Operating System, this certain base
Plinth operating system can also occupy simultaneously starts core and using core, and other underlying Operating Systems are only taken up using core, at this moment, when
Start core to start after the completion of the underlying Operating System on the startup core, then start other be located at using the bases on core successively
Operating system, only from shadow between the underlying Operating System processing startup IPI flows started on core, each application core
It rings, it is each also to have corresponding boot sequence positioned at using the underlying Operating System on core.
It is respectively underlying Operating System 1, underlying Operating System 2 and fundamental operation system for example, there is 3 underlying Operating Systems
System 3, is correspondingly located at core0, core1 and core2 respectively, wherein core0 to start core, core1 and core2 be using core,
After core0 has started underlying Operating System 1, core1 is enabled, so as to start underlying Operating System 2, then, core0 is enabled
Core2 starts underlying Operating System 3.
Further, if there are multiple Client OSs, core is started according to the default resource distribution file, really
The boot sequence of fixed the multiple Client OS, and according to the boot sequence of the multiple Client OS, really
After a fixed Client OS start completion, then start next Client OS successively.
That is, in the embodiment of the present invention, for multiple Client OSs, opened successively according to boot sequence
It is dynamic, when starting every time, only there are IPI interactions between the application core for starting core and being currently activated, other application core unaware, no
It is impacted, after the startup of core one Client OS of completion is started, it is further continued for starting next Client OS,
It is equivalent to a serial transparent start-up course.
Further, in the embodiment of the present invention, default resource distribution file can be by setting a resource distribution mould
Block realizes that resource configuration module can be presented and change the resource distribution feelings of underlying Operating System and Client OS
Condition, and can realize the digital independent to resource distribution file, data modification, write-in and data preservation etc..
Underlying Operating System and Client OS are provided in this way, user can be allowd easily to realize
Source configures.
Further, in the embodiment of the present invention, pass through between the underlying Operating System and the Client OS
IPI or shared memory space communicate, so as to fulfill the data interaction of underlying Operating System and Client OS.
In the embodiment of the present invention, start core and start underlying Operating System, and pass through interruption and wake-up, enabler client operation
System is corresponding using core, so that corresponding application core jumps to default client actions according to resource distribution file
The wake-up physical address of system is completed after applying core initial work, with jumping to the entrance of default Client OS
Location completes to start Client OS, in this way, can effectively realize the collaboration on multi-core CPU starts multiple isomery operations
System.
Also, in the embodiment of the present invention, it need not be carried out for the type of underlying Operating System and Client OS
Limitation can be real time operating system, non-real time operating system etc., it is achieved thereby that the multinuclear of isomery multiple operating system starts,
In this way, for isomery multiple operating system, either on real-time or non real-time underlying Operating System, real-time behaviour can be provided
Make system, non-real-time operations isomery multiple operating system multinuclear start.
Further description is made to above-described embodiment using a specific application scenarios below.Referring particularly to Fig. 2
Shown, in the embodiment of the present invention, multinuclear multiple operating system frame construction drawing is Linux with underlying Operating System, client actions
Exemplified by system is VxWorks.
1) as shown in fig.2, multi-core CPU includes four cores, respectively core0, core1, core2 and core3, wherein,
Linux accounts for core0, core1, and VxWorks account for core2 and core3.
Wherein, Linux is non-real time operating system, and VxWorks are real time operating systems, and core0 is to start core, core1,
Core2 and core3 is using core.
2) core0 start Linux after, by SMP Boot start core1, core2, core3, wherein core1, core2,
Core3 is run in an idle state.To parse default resource distribution file when Linux starts, obtain Linux and
The resource distribution of Vxworks.
For example, the information such as memory size, external equipment required for obtaining Linux and Vxworks.
3) core0 determines that Client OS is corresponding using core according to default resource distribution file, such as
Core2, it is enabled it is corresponding be sent to using core and by resource distribution file it is corresponding using core.
For example, after Linux is started under order line, core2 is loaded automatically, and by resource distribution file, i.e. memory, equipment
Etc. information pass to core2 as parameter.
4) core2 loads resource distribution file to the wake-up physical address of default Client OS.
Specifically, parse and preserve these information and be put into memory address, while VxWorks are loaded into from root file system
File is placed on the VxWorks specified and wakes up physical address (VxWorks _ Boot physical address).
5) core2 completes the initial work using core according to the resource distribution file.
For example, specifically, calling interface core0 sends stop IPI to core2, then sends init IPI and starts
Core2, and space within pre-set 1M is jumped to, it completes CPU and jumps to protection mould from 16 non-protect mode powered on
32 bit address patterns of formula.
6) core2 jumps to the entry address of default Client OS after initial work is completed, and starts visitor
Family machine operating system.
For example, specifically, jumping to entry address VxWorks _ Entry of default VxWorks system, enter
Vxworks operating system, at this moment, since vxworks operating system is multi-core operation system in itself, startup can be responsible for
core3.In this way, core2, core3 are completed after initialization starts, VxWorks are by the equipment according to being set in resource distribution file
The information such as memory, external equipment are read in the memory address of information and complete the initialization of VxWorks equipment.
7) when whole system complete start when, while operate in the operating system on multi-core CPU include client actions system
Unite VxWorks and underlying Operating System Linux, this whole system is i.e. in AMP patterns.
8) Client OS VxWorks and underlying Operating System Linux can be communicated by IPI or shared drive is empty
Between communicate, such as data exchange and specific hardware resource coordinating.
Based on above-described embodiment, as shown in fig.3, in the embodiment of the present invention, multiple operating system starts dress on multi-core CPU
It puts, is specifically included applied to multi-core central processing unit:
Start core 30, for reading default resource distribution file, and according to the default resource distribution file, start
Underlying Operating System, and according to default resource distribution file, determine the corresponding application core 31 of Client OS, enable institute
It states corresponding application core 31 and resource distribution file is sent to the corresponding application core 31;Wherein, the default money
The resource distribution of underlying Operating System and Client OS is included at least in source profile;
Using core 31, after being enabled, the resource distribution file calling out to default Client OS is loaded
Awake physical address, and completed according to the resource distribution file using the initial work of core 31 and in the initial chemical industry of completion
After work, the entry address of default Client OS is jumped to, starts Client OS.
Preferably, the underlying Operating System possesses internuclear interruption IPI communication functions;
The underlying Operating System for it is following any one:Real time operating system, non-real time operating system.
Preferably, the Client OS for it is following any one:Real time operating system, non-real time operating system,
Monokaryon operating system, multi-core operation system.
Preferably, the enabled corresponding application core 31, starts core 30 and is specifically used for:
Stop signal is sent to the corresponding application core 31, and stops shape determining that the corresponding application core 31 is in
After state, wake-up signal is sent to the corresponding application core 31, so that the corresponding application core 31 is waken up.
Preferably, further comprise:
Resource configuration module 32 for carrying out resource distribution to underlying Operating System and Client OS, and generates
Resource distribution file.
Further, resource configuration module 32 can not only realize the money to underlying Operating System and Client OS
Source configures, and can also change corresponding resource distribution.
Wherein, resource distribution can include but is not limited to following any one or combination:1) configuration of core.2) memory is matched somebody with somebody
It puts.3) configuration of external equipment.4) configuration interrupted.
Also, in the embodiment of the present invention, resource distribution file can be in Device Tree forms or memory
Data structure format, in this embodiment of the present invention and being not limited, however, it is desirable to ensure that resource configuration module 32 can
It is enough to realize to the digital independent of resource distribution file, modification, write-in, preservation etc..
Preferably, further comprise:
Operating system communication module 33, for passing through IPI or shared memory space, optimized integration operating system and client computer
The communication of operating system.
If preferably, there are multiple underlying Operating Systems, start core 30 and be further used for:It determines to be located at the startup core 30
On underlying Operating System start completion after, start the underlying Operating System being located at using on core 31 successively, wherein, start core 30
A underlying Operating System is only run, other underlying Operating System positions in addition to the underlying Operating System on startup core 30
In on application core 31;
If there are multiple Client OSs, start core 30 and be further used for:According to the default resource distribution text
Part determines the boot sequence of the multiple Client OS, and suitable according to the startup of the multiple Client OS
Sequence after determining a Client OS start completion, then starts next Client OS successively.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Realize that multiple operating system starts method on the multi-core CPU in above-mentioned any means embodiment during row.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out the embodiment of the present invention various modification and variations without departing from this hair
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to comprising including these modification and variations.
Claims (10)
1. multiple operating system starts method on a kind of multi-core central processing unit CPU, which is characterized in that including:
Start core and read default resource distribution file, and according to the default resource distribution file, start fundamental operation system
System, and according to default resource distribution file, determine that Client OS is corresponding using core, enable the corresponding application
Core and resource distribution file is sent to described corresponding using core;Wherein, in the default resource distribution file at least
Resource distribution including underlying Operating System and Client OS;
After the corresponding application core is enabled, wake-up of the resource distribution file to default Client OS is loaded
Physical address, and completed according to the resource distribution file using the initial work of core and after initial work is completed,
The entry address of default Client OS is jumped to, starts Client OS.
2. the method as described in claim 1, which is characterized in that the underlying Operating System for it is following any one:Behaviour in real time
Make system, non-real time operating system;
The Client OS for it is following any one:Real time operating system, non-real time operating system, monokaryon operation system
System, multi-core operation system.
3. method as claimed in claim 1 or 2, which is characterized in that it is enabled described corresponding using core, it specifically includes:
Stop signal is sent to the corresponding application core, and after determining that the corresponding application core is in halted state, to
The corresponding application core sends wake-up signal, so that the corresponding application core is waken up.
4. the method as described in claim 1, which is characterized in that further comprise:
If there are multiple underlying Operating Systems, start core and determine the underlying Operating System start completion being located on the startup core
Afterwards, the underlying Operating System being located at using on core is started successively, wherein, start core and only run a underlying Operating System, except position
It is located in starting other underlying Operating Systems outside the underlying Operating System on core using on core.
5. the method as described in claim 1, which is characterized in that further comprise:
If there are multiple Client OSs, start core according to the default resource distribution file, determine the multiple visitor
The boot sequence of family machine operating system, and according to the boot sequence of the multiple Client OS, determine a client computer
After the completion of os starting, then start next Client OS successively.
6. a kind of multiple operating system starter on multi-core central processing unit CPU, which is characterized in that including:
Start core, for reading default resource distribution file, and according to the default resource distribution file, start basis behaviour
Make system, and according to default resource distribution file, determine that Client OS is corresponding using core, enable described corresponding
It is sent to using core and by resource distribution file described corresponding using core;Wherein, in the default resource distribution file
Including at least the resource distribution of underlying Operating System and Client OS;
Using core, after being enabled, the resource distribution file is loaded to the wake-up physics of default Client OS
Address, and complete, using the initial work of core and after initial work is completed, to redirect according to the resource distribution file
To the entry address of default Client OS, start Client OS.
7. device as claimed in claim 5, which is characterized in that the underlying Operating System for it is following any one:Behaviour in real time
Make system, non-real time operating system;
The Client OS for it is following any one:Real time operating system, non-real time operating system, monokaryon operation system
System, multi-core operation system.
8. device as claimed in claims 6 or 7, which is characterized in that it is enabled described corresponding using core, start core and specifically use
In:
Stop signal is sent to the corresponding application core, and after determining that the corresponding application core is in halted state, to
The corresponding application core sends wake-up signal, so that the corresponding application core is waken up.
9. device as claimed in claim 6, which is characterized in that
If there are multiple underlying Operating Systems, start core and be further used for:Determine the fundamental operation system on the startup core
After start completion of uniting, start the underlying Operating System being located at using on core successively, wherein, start core and only run a fundamental operation
System is located at except positioned at other underlying Operating Systems in addition to starting the underlying Operating System on core using on core;
If there are multiple Client OSs, start core and be further used for:According to the default resource distribution file, determine
The boot sequence of the multiple Client OS, and according to the boot sequence of the multiple Client OS, determine
After one Client OS start completion, then start next Client OS successively.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, it is characterised in that:The computer program is processed
The step of any one the method in such as claim 1-5 is realized when device performs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711396711.5A CN108108199A (en) | 2017-12-21 | 2017-12-21 | Multiple operating system starts method and device on a kind of multi-core CPU |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711396711.5A CN108108199A (en) | 2017-12-21 | 2017-12-21 | Multiple operating system starts method and device on a kind of multi-core CPU |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108108199A true CN108108199A (en) | 2018-06-01 |
Family
ID=62212175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711396711.5A Pending CN108108199A (en) | 2017-12-21 | 2017-12-21 | Multiple operating system starts method and device on a kind of multi-core CPU |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108108199A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109343956A (en) * | 2018-09-20 | 2019-02-15 | 阿里巴巴集团控股有限公司 | A kind of operating system configuration method and device |
CN110471705A (en) * | 2019-07-15 | 2019-11-19 | 江苏泛腾电子科技有限公司 | A kind of customization dual system |
CN110704116A (en) * | 2019-09-17 | 2020-01-17 | 一汽解放汽车有限公司 | Method for realizing one-machine multi-screen system based on embedded processor |
CN111381894A (en) * | 2020-02-21 | 2020-07-07 | 杨百涛 | Method for realizing rapid starting and simultaneous working of slave system during starting of complex time-sharing operating system |
CN112559190A (en) * | 2020-12-23 | 2021-03-26 | 科东(广州)软件科技有限公司 | Resource allocation method, system, device, equipment and medium among heterogeneous systems |
CN112732183A (en) * | 2020-12-30 | 2021-04-30 | 科东(广州)软件科技有限公司 | Access method, device and equipment of heterogeneous system storage equipment and storage medium |
CN113157326A (en) * | 2021-04-02 | 2021-07-23 | 锐捷网络(苏州)有限公司 | Multi-system starting method and device, terminal and control platform |
CN114020342A (en) * | 2021-11-05 | 2022-02-08 | 科东(广州)软件科技有限公司 | Starting method and device of embedded equipment, embedded equipment and storage medium |
CN114911538A (en) * | 2022-05-17 | 2022-08-16 | 武汉深之度科技有限公司 | Starting method of running system and computing equipment |
CN114924811A (en) * | 2022-07-20 | 2022-08-19 | 南方电网数字电网研究院有限公司 | Firmware deployment and execution method of multi-core chip |
CN115061784A (en) * | 2022-08-17 | 2022-09-16 | 中诚华隆计算机技术有限公司 | Method and device for sharing memory by security container |
CN115309463A (en) * | 2022-09-29 | 2022-11-08 | 成都菁蓉联创科技有限公司 | Method for guiding and configuring AMP system |
CN116048629A (en) * | 2022-08-22 | 2023-05-02 | 荣耀终端有限公司 | System service switching method, control device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149728A (en) * | 2007-10-29 | 2008-03-26 | 中国科学院计算技术研究所 | Multiple core processing system and its management method |
CN101477511A (en) * | 2008-12-31 | 2009-07-08 | 杭州华三通信技术有限公司 | Method and apparatus for sharing memory medium between multiple operating systems |
CN101533355A (en) * | 2009-04-15 | 2009-09-16 | 杭州华三通信技术有限公司 | Method for starting multioperation system and device thereof |
CN102053869A (en) * | 2009-10-29 | 2011-05-11 | 杭州华三通信技术有限公司 | Resource allocation method and device for multi-operation system |
CN102929719A (en) * | 2012-09-18 | 2013-02-13 | 中标软件有限公司 | Control method for multiple operating systems of multi-core computer and multi-core computer |
CN104714843A (en) * | 2013-12-17 | 2015-06-17 | 华为技术有限公司 | Method and device supporting multiple processors through multi-kernel operating system living examples |
CN106155730A (en) * | 2015-04-21 | 2016-11-23 | 北京信威通信技术股份有限公司 | Operating system loading method and device |
-
2017
- 2017-12-21 CN CN201711396711.5A patent/CN108108199A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149728A (en) * | 2007-10-29 | 2008-03-26 | 中国科学院计算技术研究所 | Multiple core processing system and its management method |
CN101477511A (en) * | 2008-12-31 | 2009-07-08 | 杭州华三通信技术有限公司 | Method and apparatus for sharing memory medium between multiple operating systems |
CN101533355A (en) * | 2009-04-15 | 2009-09-16 | 杭州华三通信技术有限公司 | Method for starting multioperation system and device thereof |
CN102053869A (en) * | 2009-10-29 | 2011-05-11 | 杭州华三通信技术有限公司 | Resource allocation method and device for multi-operation system |
CN102929719A (en) * | 2012-09-18 | 2013-02-13 | 中标软件有限公司 | Control method for multiple operating systems of multi-core computer and multi-core computer |
CN104714843A (en) * | 2013-12-17 | 2015-06-17 | 华为技术有限公司 | Method and device supporting multiple processors through multi-kernel operating system living examples |
CN106155730A (en) * | 2015-04-21 | 2016-11-23 | 北京信威通信技术股份有限公司 | Operating system loading method and device |
Non-Patent Citations (3)
Title |
---|
郭玉东,尹青,董卫宇编著: "《Linux 原理与结构》", 31 March 2012, 西安电子科技大学出版社 * |
陈泰红,肖婧,冯伟编著: "《嵌入式多核DSP应用开发与实践》", 31 March 2017, 北京航空航天大学出版社 * |
高智雷编著: "《Windows 8使用详解》", 31 August 2013, 中国铁道出版社 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109343956A (en) * | 2018-09-20 | 2019-02-15 | 阿里巴巴集团控股有限公司 | A kind of operating system configuration method and device |
CN110471705A (en) * | 2019-07-15 | 2019-11-19 | 江苏泛腾电子科技有限公司 | A kind of customization dual system |
CN110704116A (en) * | 2019-09-17 | 2020-01-17 | 一汽解放汽车有限公司 | Method for realizing one-machine multi-screen system based on embedded processor |
CN111381894B (en) * | 2020-02-21 | 2023-06-13 | 杨百涛 | Method for realizing rapid starting and simultaneous working of slave system during starting of complex time-sharing operating system |
CN111381894A (en) * | 2020-02-21 | 2020-07-07 | 杨百涛 | Method for realizing rapid starting and simultaneous working of slave system during starting of complex time-sharing operating system |
CN112559190A (en) * | 2020-12-23 | 2021-03-26 | 科东(广州)软件科技有限公司 | Resource allocation method, system, device, equipment and medium among heterogeneous systems |
CN112559190B (en) * | 2020-12-23 | 2022-01-11 | 科东(广州)软件科技有限公司 | Resource allocation method, system, device, equipment and medium among heterogeneous systems |
CN112732183A (en) * | 2020-12-30 | 2021-04-30 | 科东(广州)软件科技有限公司 | Access method, device and equipment of heterogeneous system storage equipment and storage medium |
CN113157326A (en) * | 2021-04-02 | 2021-07-23 | 锐捷网络(苏州)有限公司 | Multi-system starting method and device, terminal and control platform |
CN113157326B (en) * | 2021-04-02 | 2022-03-18 | 锐捷网络(苏州)有限公司 | Multi-system starting method and device, terminal and control platform |
CN114020342A (en) * | 2021-11-05 | 2022-02-08 | 科东(广州)软件科技有限公司 | Starting method and device of embedded equipment, embedded equipment and storage medium |
CN114911538A (en) * | 2022-05-17 | 2022-08-16 | 武汉深之度科技有限公司 | Starting method of running system and computing equipment |
CN114924811A (en) * | 2022-07-20 | 2022-08-19 | 南方电网数字电网研究院有限公司 | Firmware deployment and execution method of multi-core chip |
CN115061784A (en) * | 2022-08-17 | 2022-09-16 | 中诚华隆计算机技术有限公司 | Method and device for sharing memory by security container |
CN115061784B (en) * | 2022-08-17 | 2022-10-25 | 中诚华隆计算机技术有限公司 | Method and device for sharing memory by security container |
CN116048629A (en) * | 2022-08-22 | 2023-05-02 | 荣耀终端有限公司 | System service switching method, control device, electronic equipment and storage medium |
CN116048629B (en) * | 2022-08-22 | 2024-04-05 | 荣耀终端有限公司 | System service switching method, control device, electronic equipment and storage medium |
CN115309463A (en) * | 2022-09-29 | 2022-11-08 | 成都菁蓉联创科技有限公司 | Method for guiding and configuring AMP system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108199A (en) | Multiple operating system starts method and device on a kind of multi-core CPU | |
Hamdaqa et al. | Cloud computing uncovered: a research landscape | |
CN104737133B (en) | Optimized using the Distributed Application of service group | |
US9430296B2 (en) | System partitioning to present software as platform level functionality via inter-partition bridge including reversible mode logic to switch between initialization, configuration, and execution mode | |
Dupont et al. | An energy aware framework for virtual machine placement in cloud federated data centres | |
US9858045B2 (en) | Designer tool for managing cloud computing services | |
CN109522087B (en) | Virtual mechanism building method and system based on domestic Shenwei processor | |
CN106775946B (en) | A kind of virtual machine Method of Creation Process | |
CN108830720A (en) | Intelligent contract operation method, device, system and computer readable storage medium | |
CN109284184A (en) | A kind of building method of the distributed machines learning platform based on containerization technique | |
PT2290539E (en) | Computer configuration virtual topology discovery | |
CN109889377A (en) | The method and apparatus of VNF are disposed in NFV system based on Openstack | |
WO2023000673A1 (en) | Hardware accelerator device management method and apparatus, and electronic device and storage medium | |
De Alfonso et al. | An energy management system for cluster infrastructures | |
CN106844008A (en) | A kind of method of data manipulation, equipment and system | |
CN113010265A (en) | Pod scheduling method, scheduler, memory plug-in and system | |
CN105677481B (en) | A kind of data processing method, system and electronic equipment | |
CN106856441A (en) | VIM systems of selection and device in NFVO | |
WO2021212636A1 (en) | Form page generation method and device, terminal, and storage medium | |
CN114816665B (en) | Hybrid arrangement system and virtual machine container resource hybrid arrangement method under super-fusion architecture | |
CN112579294B (en) | Method and device for realizing multi-core scheduling of virtual machine | |
CN109656638A (en) | A kind of user based on Purley platform customizes the implementation method of function | |
US20230040725A1 (en) | Accessing topological mapping of cores | |
CN113220368B (en) | Storage client resource isolation method, system, terminal and storage medium | |
CN115543543A (en) | Application service processing method, device, equipment and medium |
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 | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20180601 Assignee: Kedong (Guangzhou) Software Technology Co.,Ltd. Assignor: KYLAND TECHNOLOGY Co.,Ltd.|CORETEK SYSTEMS Inc. Contract record no.: X2020980000255 Denomination of invention: Method and device for starting multiple operating systems on multi-core CPU License type: Exclusive License Record date: 20200218 |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180601 |