Unlock instant, AI-driven research and patent intelligence for your innovation.

A processing method for virtual interrupt of embedded operating system partition based on powerpc processor

A technology of virtual interrupt and operating system, applied in electrical digital data processing, instruments, multi-program devices, etc., can solve problems such as damage, errors, increase the complexity of testing and verification of partition interrupt handlers, etc., to improve independence. Effect

Active Publication Date: 2020-12-29
FLIGHT AUTOMATIC CONTROL RES INST
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Generally speaking, the above process can guarantee the independence of each partition of the embedded operating system. However, since the PowerPC processor needs to enter the kernel state when responding to external interrupts, the running program can access all registers and memory address spaces at this time. Therefore, the operation The non-interference feature of each partition of the system is destroyed, which is manifested in two aspects: first, a software error in one partition may spread to other partitions, for example, when a stack overflow occurs in the external interrupt processing function of a partition, there will be The data or code of other partitions may be modified, resulting in unpredictable errors; secondly, because multiple partitions may have different processing logic for the same external interrupt source, but according to the interrupt mode provided by the PowerPC processor, all external interrupts are Processing at the same entry point, at this time, it is necessary to judge the partition at the entry, and enter different processing flows according to different partition numbers, so the external interrupt handlers of each partition are coupled here, which is independent of the partition idea It violates, and also increases the complexity of testing and verification of interrupt handlers of each partition

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
  • A processing method for virtual interrupt of embedded operating system partition based on powerpc processor
  • A processing method for virtual interrupt of embedded operating system partition based on powerpc processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Below in conjunction with accompanying drawing, the present invention is described in detail, figure 1 It shows the original interrupt processing flow. When an external interrupt occurs, the program automatically jumps to the external interrupt entry address, and the current processor state also enters the kernel state. In the external interrupt entry program, save the interrupt context, and then search and jump to the corresponding interrupt handler according to the interrupt vector number.

[0020] After using this method, when a hardware interrupt occurs, the operating system enters the kernel state, the SRR0 register automatically saves the address of the next instruction to be executed when the interrupt occurs, the SRR1 register automatically saves the processor state when the interrupt occurs, and the instruction pointer jumps to the external Interrupt processing entry address. In the entry program, the current context is saved, and it is judged whether to enter...

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 designs a realization method for a partition virtual interrupt of an operating system based on a PowerPC processor. Interrupt processing of different partitions all depends on an only interrupt entry of the processor in the interrupt processing of the operating system for a mechanism for the interrupt processing of the PowerPC processor to result in coupling of the interrupt processing of the different partitions in the design and implementation. The invention puts forward the realization method of the virtual interrupt, so that the interrupt processing of the different partitions in the embedded operating system based on the PowerPC processor is decoupled, and then the interrupt processing of each partition does not affect other partitions, furthermore, each partition has a full interrupt control ability and a processing ability for the interrupt under the user state. The method provides necessary technical support for the embedded operating system to realize mutual independence and non-interference among various partitions to lower the complexity of software design and verification in the partitions.

Description

technical field [0001] The invention belongs to the field of embedded operating systems and relates to a method for processing virtual interrupts of embedded operating system partitions based on PowerPC processors. Background technique [0002] The partition of an embedded real-time operating system refers to code segments that run on the same processor but are isolated from each other in terms of execution time and storage space. The operating system kernel schedules each partition cyclically according to certain scheduling rules, and each partition monopolizes processor resources within its own execution time. At the same time, through memory configuration, each partition has its own memory space, and the partitions cannot directly access each other, and the communication between partitions must be carried out through the kernel. The partition of the embedded operating system provides convenience for the integration of tasks with different functional groups, different sec...

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/46G06F9/48
CPCG06F9/461G06F9/4818G06F2209/484
Inventor 淡图南宋科璞武方方颜纪迅朱立平鹿雪玲
Owner FLIGHT AUTOMATIC CONTROL RES INST