HeMPS  8.0
Macros | Functions
kernel_slave.h File Reference

kernel_slave is the core of the OS running into the slave processors More...

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

Go to the source code of this file.

Macros

#define MIGRATION_ENABLED   1
 Enable or disable the migration module.
 

Functions

unsigned int ASM_SetInterruptEnable (unsigned int)
 
void ASM_SaveRemainingContext (TCB *)
 
void ASM_RunScheduledTask (TCB *)
 
void OS_InterruptServiceRoutine (unsigned int)
 
unsigned int OS_InterruptMaskSet (unsigned int)
 
unsigned int OS_InterruptMaskClear (unsigned int)
 
void OS_Init ()
 
void OS_Idle ()
 
void Scheduler ()
 

Detailed Description

kernel_slave is the core of the OS running into the slave processors

HEMPS VERSION - 8.0 - support for RT applications

Distribution: June 2016

Edited 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

Its job is to runs the user's task. It communicates whit the kernel_master to receive new tasks and also notifying its finish. The kernel_slave file uses several modules that implement specific functions

Function Documentation

void OS_Idle ( )

Idle function

unsigned int OS_InterruptMaskClear ( unsigned int  Mask)

Clear a interruption mask

Parameters
MaskInterruption mask clear
unsigned int OS_InterruptMaskSet ( unsigned int  Mask)

Set a interruption mask

Parameters
MaskInterruption mask set
void OS_InterruptServiceRoutine ( unsigned int  status)

Function called by assembly (into interruption handler). Implements the routine to handle interruption in HeMPS

Parameters
statusStatus of the interruption. Signal the interruption type
void Scheduler ( )

Generic task scheduler call