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, applied in the direction of program startup/switching, multi-programming installation, etc., can solve the problems that the task switching mechanism is not closely integrated with the processor characteristics, and the stack usage is not economical enough.

Inactive Publication Date: 2005-06-29
TSINGHUA UNIV
View PDF0 Cites 0 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

[0046] 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.

[0047] 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.

[0048] 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 hierarchical task switching method based on the PowerPC processor structure belongs to the embedded real-time operating system field, and is characterized in that: it divides the user task context into basic, extended and optional three parts for the particularity of the PowerPC processor structure. Among them, according to the system configuration and task scheduling, three methods are adopted: only the basic part is pushed, the basic and extended parts are pushed into the stack, and all contexts are pushed into the stack; the interrupt handler first executes the basic part into the stack, and then judges the nature of task scheduling after executing the interrupt processing , choose to execute the next level push operation, call the scheduler, or resume the scene and return to the user task. Reduce unnecessary stack operations. As a part of Tsinghua University's automotive electronics open system, it is implemented on the MPC555 platform. Tests show that it improves the efficiency of task switching and speeds up system 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 Patents(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