Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Multi-core processor stack initialization method and device

A multi-core processor, initialization technology, applied in the direction of electrical digital data processing, instruments, computers, etc., to achieve the effect of ensuring independence

Active Publication Date: 2021-03-30
HYGON INFORMATION TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Both of the above methods are not applicable to the CPU verification system

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 processor stack initialization method and device
  • Multi-core processor stack initialization method and device
  • Multi-core processor stack initialization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0041] figure 1 A schematic flowchart of a method for initializing a stack of a multi-core processor provided by an embodiment of the present invention is shown. Such as figure 1 As shown, the embodiment of the present invention provides a method for stack initialization of a multi-core processor, which is suitable for allocating stack spac...

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 invention provides a multi-core processor stack initialization method and device, and the method comprises the steps: judging an interrupt mode supported by a core, and obtaining an APICID corresponding to the core according to the interrupt mode supported by the core; obtaining a top address of a stack address space, wherein the stack address space is an address space of a storage stack allocated to all cores of the multi-core processor on a system memory; setting stack space capacity occupied by the kernel; and calculating and obtaining the top address of the stack space occupied by thekernel according to the APICID of the kernel, the top address of the stack address space and the capacity of the stack space occupied by the kernel. According to the method and device, the independence of each kernel stack space can be ensured.

Description

technical field [0001] The invention relates to the technical field of processors, in particular to a method and device for initializing a multi-core processor stack. Background technique [0002] At present, multi-core processors have been widely used, and it is inevitable to allocate the stack space used by the kernel to complete the initialization of the stack register when the multi-core processor starts. The allocation of stack space and the initialization of stack registers often affect the parallel computing of subsequent multi-core processors. [0003] Existing methods for initializing the multi-core processor stack include the following methods. For example, the Linux system uses four kinds of stack spaces, including the temporary stack when the system is booted and initialized, the stack initialized by the kernel program after entering the protected mode, the kernel mode stack used by the system call to execute the kernel program, and the stack executed by the tas...

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): G06F15/177
CPCG06F15/177
Inventor 杨振陈玉龙吴敌
Owner HYGON INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products