HeMPS  8.0
Functions
task_migration.h File Reference

This module defines function relative to task migration. More...

#include "../../include/kernel_pkg.h"
#include "packet.h"
#include "task_control.h"
Include dependency graph for task_migration.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int handle_migration (volatile ServiceHeader *, unsigned int)
 
void migrate_dynamic_memory (TCB *)
 

Detailed Description

This module defines function relative to task migration.

HEMPS VERSION - 8.0 - support for RT applications

Distribution: June 2016

Created by: Marcelo Ruaro - contact: marce.nosp@m.lo.r.nosp@m.uaro@.nosp@m.acad.nosp@m..pucr.nosp@m.s.br

Research group: GAPH-PUCRS - contact: ferna.nosp@m.ndo..nosp@m.morae.nosp@m.s@pu.nosp@m.crs.b.nosp@m.r

Function Documentation

int handle_migration ( volatile ServiceHeader p,
unsigned int  master_address 
)

Handles all task migration packets, calling the appropriated sub-function.

Parameters
pServiceHeader pointer of the packet a generic task migration packet
master_addressAddress of the kernel master of the slave processor
Returns
The necessity of call the scheduler, 1 - need scheduler, 0 not need scheduler
void migrate_dynamic_memory ( TCB tcb_aux)

This function os the core of task migration. It is called by the source processor (the older processor) Its job is to migrate to the new processor the dynamic data section that can change during task execution.

Parameters
tcb_auxThe TCB pointer of the task to be migrated