Multi-core online patching method and device

A patch and multi-core technology, applied in the computer field, can solve problems such as multi-core CPU shared global variables cannot be mapped

Active Publication Date: 2011-07-27
FENGJIE DONGYANG BUILDING MATERIALS CO LTD
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventor finds that under MMU conditions, since each core in the multi-core CPU accesses the same logical address and is mapped to different physical addresses in the patch area, the shared global variables of the multi-core CPU cannot is mapped

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-core online patching method and device
  • Multi-core online patching method and device
  • Multi-core online patching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] For a clear description of how to map all patch data into the patch area of ​​shared memory, see figure 2 , first, the physical address division of the patch area will be described. In the present invention, the physical address of the patch area is divided into three consecutive parts: shared area, private area and backup area.

[0025] The shared area includes a shared code segment and a shared data segment, wherein the shared code segment is used to store the shared code of the patch and the read-only data segment in the patch code, and the shared data segment is used to store shared global variables defined in the patch. The patch shared area is mapped with a direct memory address, that is to say, when the core reads data, it is directly obtained from the memory without going through the cache bus.

[0026] The private area is divided into a plurality of private data segments according to the number of cores. The starting address of each private data segment is al...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a multi-core online patching method and a multi-core online patching device. By the method and the device, all patch data can be mapped into a patch area of a shared memory. The method of the embodiment of the invention comprises the following steps of: separating a shared global variable from a private global variable in a patch; and mapping the shared global variable into a shared data segment of the patch area in a direct memory address mapping way, and mapping the private global variable into a private data segment of the patch area in a user-specified variable address mapping way. The embodiment of the invention can be used for a multi-core digital signal processor (DSP) system of carrier-class software.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a multi-core online patching method and device. Background technique [0002] An online patch refers to a patch that takes effect without restarting the program while the program is running. For a multi-core processor, the current multi-core CPU with a hardware memory management unit (Memory Management Unit, MMU) already supports an online patch function. In a multi-core CPU environment, the main control core implements operations such as loading and activating online patches. [0003] like figure 1 As shown, in the patch loading operation of the multi-core CPU, the main control core obtains the patch, reads it into the cache (cache), parses the patch, extracts the code segment and data segment of the patch, and loads it according to the logical address. The MMU unit realizes the mapping from the logical address to the physical address, and maps the core private ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F12/1009
CPCG06F11/0793G06F12/0638G06F11/0721G06F8/67G06F12/1009G06F11/0724G06F8/656G06F12/0292
Inventor 强鸿斐雷镇姚芳兵
Owner FENGJIE DONGYANG BUILDING MATERIALS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products