Method for controlling separate running of linked program blocks, and controller
1 Assignment
0 Petitions
Accused Products
Abstract
A method controls separated running of linked program blocks which are configured for implementing functions of safety-relevant systems. A first program block is executed on a processor, the first program block being present in a first portion of a memory. A second program block is called during the execution of the first program block. The second program block is present in a second portion of the memory, which is different from the first portion. Access to the memory is monitored by a memory protection device, which initiates an exception if it is determined that the second program block is called during the execution of the first program block. An exception handler locks the first portion upon occurrence of the exception and releases the second portion for execution. The access to data is controlled by the memory protection device by use of exceptions and of the locks and releases resulting therefrom.
-
Citations
24 Claims
-
1-10. -10. (canceled)
-
11. A method for controlling separate running of linked program blocks configured for implementing functions of safety-relevant systems, which comprises the steps of:
-
executing a first program block of the linked program blocks on a processor, the first program block being stored in a first section of a memory accessed by the processor; calling up a second program block of the linked program blocks during an execution of the first program block, the second program block being stored in a second section of the memory being different than the first section of the memory; monitoring accesses to the memory by a memory protection device, the memory protection device triggering an exception if the monitoring of the accesses by the memory protection device prompts ascertainment that during the execution of the first program block the second program block is called; and prompting an exception handler to disable the first section and to enable the second section for execution upon an occurrence of the exception. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
-
-
22. A controller, comprising:
-
a data processing apparatus having a memory, a processor and a memory protection device; said memory being connected to said processor and having a first and also at least one second program block being stored in first and second sections of said memory, said first section and said second section being different from one another; the first and the at least one second program block are linked to one another and said memory protection device embodied with programming or with a connection to said memory that prompts said memory protection device to trigger an exception when the first program block, being stored in said first section, calls the second program block, being stored in said second section; said data processing apparatus further having an exception handler connected to said memory protection device for receiving the exception; and said exception handler being connected to said memory protection device and thereby being set up to be prompted by a reception of the exception to disable a logical connection between said first section of said memory and said processor and to enable a further logical connection between said second section of said memory and said processor for executing the second program block on said processor. - View Dependent Claims (23, 24)
-
Specification