Task control method with reduced stacked memory requirement
AssigneeDenso Corporation
InventorMitsuhiro Kawai
Life of this patent
Estimating the term…
Abstract
Task control via a multi-task or real time operating system that reduces the size of a RAM in which a stack region for processing the tasks, as well as an interrupt processing function, is set. An interrupt for interrupting any of a plurality of individual tasks having set priorities at a higher priority than the set priorities of the individual tasks is set. Thereafter, a stack region is set for processing the individual tasks and the interrupt in a writable and readable memory. The size of the stack region is then set to a size necessary for processing the individual tasks and in accordance with a task number, while a separate stack region is set for the interrupt.
Claims13
A method of controlling tasks performed by an operating system, said method comprising:
- setting an interrupt for interrupting any of a plurality of individual tasks by having a higher priority than set priorities of the individual tasks;
- setting a stack region as a working region for processing the individual tasks and the interrupt in a writable and readable memory, and at a size necessary for processing the individual tasks and in accordance with a task number;
- setting a region for the interrupt separate from the stack region in the writable and readable memory;
- setting a stack pointer managing region in the memory for each of the individual tasks and the interrupt;
- latching a value of a stack pointer in the stack pointer managing region for a task being processed when processing is interrupted;
- and
- shifting the stack pointer to the stack region for the interrupt to execute the interrupt.
A method to control a plurality of tasks for controlling a vehicle engine, comprising:
- setting a first region for processing the individual tasks in a writable and readable memory, and at a size necessary for processing the individual tasks and in accordance with a task number;
- setting a second region for an interrupt for interrupting a plurality of individual tasks by having a highest priority;
- setting a stack pointer managing region for each of the individual tasks and the interrupt, wherein said individual tasks control said vehicle engine;
- latching a value of a stack pointer in the stack pointer managing region for a task being processed when the task is interrupted;
- shifting the stack pointer to an interrupt processing stack region to perform the interrupt processing;
- and
- shifting the stack pointer back to the value latched in the stack pointer managing region when the interrupt processing is ended.
Dependencies are inferred from the claim text.