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

Graded task switching method based on PowerPC processor structure

A task switching and processor technology, which is applied in the direction of program startup/switching, multi-programming installation, etc., can solve the problems of uneconomical stack usage and insufficient integration of task switching mechanism and processor characteristics.

Inactive Publication Date: 2004-04-21
TSINGHUA UNIV
View PDF0 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the problem that the task switching mechanism of the existing real-time operating system is not closely combined with the processor characteristics, there are redundant operations in the switching process, and the use of the stack is not economical, the present invention is based on the PowerPC structural instruction system stack operation instructions that can allocate stack space in batches. , a hierarchical task switching method is proposed, which mainly includes the following contents:

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
  • Graded task switching method based on PowerPC processor structure
  • Graded task switching method based on PowerPC processor structure
  • Graded task switching method based on PowerPC processor structure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The method proposed by the invention is a part of the embedded real-time operating system kernel, and is realized in the form of operating system code. Taking the Tsinghua OSEK (Automotive Electronics Open System and its corresponding interface) operating system independently developed by Tsinghua University and the hardware platform environment based on the MPC555 microcontroller as an example, the specific implementation of the hierarchical task switching method will be described below.

[0046] In the MPC555 microcontroller, multiple program entry addresses are specified. The system startup code is placed at the entry address 0x100, the external interrupt handler is placed at the entry address 0x500, and the counter interrupt handler is placed at the entry address 0x900. When the system is powered on and reset, the startup code is executed from address 0x100.

[0047] The Tsinghua OSEK operating system running on the MPC555 platform includes five parts: startup code...

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 method has the following characteristics: the task contex of the user can be divided into three parts of basic, expansion and selectable according to speciality of Power PC processor structure. In interruption process, only three stack entering modes of basic, basicand expansion as well as all context part are applied according to condition of system disposal and task dispatching. The basic part stack entering is executed first. After interruption process is finished the nature of task dispatching is judged for selecting to execute the next stage of stack entering operation, to call dispatcher or to return to the user task in order to reduce unnecessary stacking operation.

Description

technical field [0001] The hierarchical task switching method based on PowerPC processor structure belongs to the technical field of embedded real-time operating system, in particular to the technical field of embedded real-time operating system based on PowerPC processor structure. Background technique [0002] The task switching mechanism is the core of the multitasking real-time operating system. Among them, stack operation is the main operation of task switching. The rationality of the stack operation is directly related to the stability and operating efficiency of the operating system. The main task of the task switching mechanism is to save and restore the necessary program running scene, so that the program can be interrupted during the execution without producing wrong results. On the one hand, the real-time operating system requires a higher speed in the task switching process; on the other hand, the embedded system requires the task switching process to save reso...

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/48
Inventor 孙晓民蔡云鹏
Owner TSINGHUA UNIV
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