The content of the invention
It is an object of the invention to provide a kind of method that CedarTrail platforms support UCDOS, to solve in the prior art
CedarTrail platforms of new generation do not support UCDOS technical problem.
The purpose of the present invention is achieved through the following technical solutions:
A kind of method that UCDOS is supported there is provided Cedartrail platforms, including CPU are initialized and specified and be initial
Change primary processor and from processor the step of, it is further comprising the steps of:
The extension word carry-out bit of CPU expanded function registers is set;
The internal memory operation space for supporting to install UCDOS is set;
UCDOS errorlevel is installed in operation.
Alternatively, before the extension word carry-out bit of the setting CPU expanded function registers, methods described also includes setting
Environment changing is put to protected mode;
After the extension word carry-out bit of the setting CPU expanded function registers, methods described also includes that environment will be set
It is switched to real pattern.
Alternatively, after the extension word carry-out bit of the setting CPU expanded function registers, and described set is installed
Before UCDOS internal memory operation space, methods described also includes:Set the extension word of expanded function register defeated in DXE phase
Go out position.
Alternatively, the extension word carry-out bit of the setting CPU expanded function registers, specifically, setting expanded function to post
The 18th of storage CR4 is 1.
Alternatively, before the internal memory operation space for setting and supporting to install UCDOS, methods described also includes, from setting
Put environment and be inducted into DOS systems.
Alternatively, it is described that the internal memory operation space for supporting to install UCDOS is set, be specially:
It is available to set UMB space, and the UMB space is more than or equal to required for the UCDOS is installed
Memory headroom.
CedarTrail platforms provided in an embodiment of the present invention support UCDOS method, the technique effect having or excellent
Putting is:The method that CedarTrail platforms provided in an embodiment of the present invention support UCDOS, in BIOS(Basic Input
Output System, basic input output system)Initial phase sets CPU expanded function, and CPU expanded functions are deposited
The relevant bits for being responsible for extension word output in device are set up, and open corresponding internal memory behaviour under DOS to install UCDOS systems
Make space so that on the one hand CedarTrail platforms can support UCDOS chinese characters inputoutpnt function, on the one hand be installed
The corresponding memory headrooms of UCDOS, so as to possess the condition in CedarTrail stage+modules UCDOS.Present invention offer is provided
Method so that CedarTrail platforms possess install UCDOS condition, then CedarTrail platforms can smoothly install
UCDOS installation files, the UCDOS after installation also can normally be run in CedarTrail platforms, realize the input in Chinese under DOS
And output.
Embodiment
Method to realize CedarTrail platforms support UCDOS provided in an embodiment of the present invention, the embodiment of the present invention is carried
A kind of method that UCDOS is supported for CedarTrail platforms, can be by setting the extension word of CPU expanded function registers to export
Position so that CedarTrail platforms possess the function of input and output Chinese character, and by setting the UMB space in CPU, make
Obtain CedarTrail platforms and obtain the memory headroom for supporting that UCDOS is installed, so as to possess in CedarTrail stage+modules UCDOS
Condition.
Below in conjunction with accompanying drawing, technical scheme provided in an embodiment of the present invention is described in detail.
The method that CedarTrail platforms provided in an embodiment of the present invention support UCDOS, as shown in figure 1, including following step
Suddenly:
Step S01:Initialize CPU.
Setting the operation of the extension word carry-out bit of CPU expanded function registers needs to carry out in the BIOS initialization stage.
BIOS content, i.e. BIOS program, are integrated in the ROM of mainboard(Read Only Memory read-only storages)Chip
On, the most important basic input/output routine of the main in store relevant system of rom chip, system information is set, start it is upper it is electric certainly
Inspection program and system start self-check program etc.;Most direct hardware setting and the control of the bottom can be provided for system.
When pressing system power switch, power supply starts to power to mainboard and other equipment, powered on moment spread of voltage,
Control chip group on mainboard can send to CPU and keep a RESET(Reset or reset)Signal, makes CPU inside automatic extensive
Original state is arrived again, and after chipset, which detects power supply, powers stable, CPU can remove RESET signal.Now, in BIOS program
Power-on self-test program each internal equipment is detected first, including to CPU, 640K base memories, more than 1M extension
Internal memory, ROM, mainboard, CMOS memory(Complementary Metal Oxide Semiconductor, complementary metal oxidation
Thing semiconductor, is integrated in the read-write random access storage device on mainboard, for preserve current system hardware configuration and
Setting of the user to some parameters;Namely BIOS program performs read-write motion, by the hardware configuration of current system and user to certain
The setting of a little parameters is preserved or read out), serial paralled interface, video card, the subsystem such as soft or hard disk and keyboard are tested;Then,
Self-check program is started by BIOS program, according to the boot sequence preserved in CMOS memory, each driver of sequential hunting, and read in
Dos boot record, is then completed the startup of system by leader record.
Therebetween, system accesses the register that CPU deposits core number, obtains current CPU core number, and by CPU core calculation
And the parameter such as CPU concrete models is stored in CMOS memory, for example, core number has double-core, four cores etc., concrete model has
CedarTrail D2550, D2500 and N2800 etc..
After the parameters such as initialization core number, into step S02.
Step S02:Specify and initialize primary processor and from processor.
After system boot, it is whether multicomputer system, can all specifies BSP(Bootstrap Process)And AP
(Application Process), BSP is the primary processor for controlling whole system, and AP is then referred to as from processor or answered
Use processor.
After BSP and AP is specified, extreme higher position FFFFoh instruction is performed, this address is actually in system bios
Address realm in(The memory range that BIOS can actually have access to), be placed on this address is a jump instruction, skips to and is
Really start code block in system BIOS, start to perform initial work.
Step S03:The extension word carry-out bit of CPU expanded function registers is set.
After system initialization work is completed, into the step of extending output word function for CedarTrail platforms.Step
S03 can have a variety of implementations, in one example as shown in Fig. 2 step S03 can be realized in the following way:
Step S031:Will environment be set protected mode is switched to by real pattern;
Real pattern:Addressing is used and 8086 identical, 16 sections and offset, maximum address space 1MB, maximum segment
64KB.32 bit instructions can be used.
Protected mode:Addressing uses 32 sections and offset, maximum address space 4GB, maximum segment 4GB.
It is maximum under real pattern to access 1MB space, and the maximum space that protected mode can be accessed is 4GB, here
Being meant with protected mode prevents from accessing CPU spaces and transfiniting causing system unstable(The space accessed under protected mode is more
It is many);Also, because the X86 CPU of 32 are used as the 8086 of high speed, and CPU can enter virtual 8086 side in protected mode
Formula, it is therefore desirable to which system environments is switched to protected mode from real pattern.
Step S032:Set CPU expanded function registers CR4 the 18th is 1;
Read and write CPU expanded function register paths, find expanded function register CR4 the 18th(Totally 32), and
The value for setting this is the 1, the 18th relevant bits to be responsible for extension word bit output, for controlling character and graphic under DOS patterns
Deng input and output;It is to open expanded function to be set to 1, and is set to 0 to close expanded function.It is noted that can not set
Mistake, being arranged to other meetings causes the setting of CPU expanded function registers to produce mistake, causes system unstable.
Step S033:Will environment be set real pattern is switched back into by protected mode.
After the relevant bits for setting up expanded function register CR4, system is restarted, environment will be set to switch to real mould again
Formula.
Further, can be in DXE after the setting that expanded function position is completed in protected mode(Driver
Execution Environment, DXE phase operation result be ready to it is a set of than more complete firmware interface)Stage weight
The extension word carry-out bit of new setting one extension function register.The operation of expanded function register is reset in DXE phase,
Need also exist for carrying out in protected mode, after being provided with, need also exist for switching back into real pattern.
The purpose reset is:Some interface functions are when CPU registers are read and write, it is possible to can change the extension
Function register CR4 extension word carry-out bit, for safety, resetting CPU expanded function registers in DXE phase is
A preferred step in the BIOS initialization stage.By the setting of the step, it can avoid when some interface functions are being read
When writing CPU registers, the situation of expanded function register CR4 extension word carry-out bit have changed.
Step S04:The internal memory operation space for supporting to install UCDOS is set.
Before the internal memory operation space for supporting to install UCDOS is set, DOS systems are inducted into from environment is set.
Because in general platform, in the controllable 1MB memory headrooms of DOS, conventional memory occupies 640KB sky
Between, referred to as 640KB base memories, and remaining 384KB UMB(UMB high memories)It is reserved to BIOS ROM(It is non-
Space in BIOS program), video card and other various expansion cards use, so, it can use 384KB's beyond base memory
UMB(Address is as follows:0A00H-0FFFFF1H)It is used as the operating space for installing UCDOS.
Surmount basic 640KB spaces, using 384KB UMB space, it is necessary to following condition and operation:
Perform exented memory order:CONFIG.SYS sets Device=C:\DOS\HIMEN.sys;
Perform Extended RAM analog-driven program:CONFIG.SYS sets Device=C:\DOS\EMM386.EXE,
NOEMS;The internal memory operation space for needing to extend is set under the order, and the size in the space is greater than equal to installation UCDOS's
Operating space size.
Perform and UMB order is set:CONFIG.SYS sets DOS=HIGH.UMB.
Step S05:UCDOS errorlevel is installed in operation.
Set up behind UMB space, system is on the one hand defeated by setting the expanded function position of control register to realize
Go out the function of word, on the other hand, by setting UMB, possess the internal memory operation space for installing UCDOS, then next transport
Row UCDOS installation errorlevel autoexec.bat(It is exactly to run install.exe in fact)To install UCDOS.
The method that UCDOS is supported by CedarTrail platforms provided in an embodiment of the present invention, in the BIOS initialization stage
CPU expanded function register is set, the relevant bits for being responsible for extension word bit output in CPU expanded function register are set
Come, i.e., by the 18th of expanded function register CR4(Extend word bit output)It is set to 1 so that system can support that Chinese is defeated
Enter the function of output;And by setting a part of UMB space in CPU to be available, opened accordingly to install UCDOS
Internal memory operation space so that CedarTrail platforms on the one hand can support UCDOS chinese characters inputoutpnt function, on the one hand
Obtain and the corresponding operating spaces of UCDOS are installed, so as to possess the condition in CedarTrail stage+modules UCDOS.By this
Invent the method provided so that CedarTrail platforms possess the condition for installing UCDOS, then CedarTrail platforms can be suitable
Profit installs UCDOS installation file, and the UCDOS after installation also can normally run in CedarTrail platforms, realize in DOS
Text input and output, so as to reach the technique effect for making CedarTrail platforms support UCDOS.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation
The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.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 produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively 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 being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.