HeMPS  8.0
Macros | Functions
kernel_master.h File Reference

Header of kernel_master with important defines. More...

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

Go to the source code of this file.

Macros

#define TASK_DESCRIPTOR_SIZE   26
 Size of the task descriptor into repository.txt file.
 
#define noc_interruption   (MemoryRead(IRQ_STATUS) & IRQ_NOC)
 Signals a incoming packet from NoC.
 
#define app_req_reg   (MemoryRead(REQ_APP) & 0x80000000)
 Signals a new application request from repository.
 
#define external_app_reg   (MemoryRead(REQ_APP) & 0x7fffffff)
 Used to creates the repository reading address.
 
#define get_cluster_proc(x)   ( (cluster_info[x].master_x << 8) | cluster_info[x].master_y)
 
#define net_address   ( (cluster_info[clusterID].master_x << 8) | cluster_info[clusterID].master_y)
 

Functions

void handle_new_app (int, volatile unsigned int *, unsigned int)
 
void initialize_slaves ()
 

Detailed Description

Header of kernel_master with important defines.

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

void handle_new_app ( int  app_ID,
volatile unsigned int *  ref_address,
unsigned int  app_descriptor_size 
)

Handles a new application incoming from the global manager or by repository

Parameters
app_IDApplication ID to be handled
ref_addressPointer to the application descriptor. It can point to a array (local manager) or the repository directly (global manager)
app_descriptor_sizeSize of the application descriptor
void initialize_slaves ( )

Initializes all slave processor by sending a INITIALIZE_SLAVE packet to each one