runtime/spe/ctrump-libspe2.h File Reference

Linux-libspe2でのSPE側のランタイム. More...

#include <stdint.h>
#include <string.h>
#include <spu_mfcio.h>

Include dependency graph for ctrump-libspe2.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ctrump_ehdr
 SPE ELF の ehdr. More...
struct  ctrump_phdr
 SPE ELF の phdr. More...

Defines

#define PT_LOAD   1

Typedefs

typedef uint32_t Elf32_Word
typedef uint16_t Elf32_Half
typedef uint32_t Elf32_Off
typedef uint32_t Elf32_Addr
typedef uint32_t ctrump_ea_t
typedef struct ctrump_ehdr ehdr

Functions

static void ctrump_libspe2_program_boot (ctrump_ea_t prog_handle, unsigned long long argp, unsigned long long envp) __attribute__((noinline
 次のプログラムをロードしたあと、現在のプログラムを終了、 次のプログラムを開始する
static void ctrump_libspe2_program_boot (ctrump_ea_t prog_handle, register unsigned long long argp, register unsigned long long envp)
static int ctrump_spe_fini (int spe_id, int is_last_spe, unsigned long long sync_ea)
 CTRUMP SPEプログラムを終了する.
static void ctrump_spe_wait_ppe (void)
 PPEからの起動コマンドを待つ.

Variables

char ctrump_begin
char ctrump_end
static void noreturn


Detailed Description

Linux-libspe2でのSPE側のランタイム.

Definition in file ctrump-libspe2.h.


Define Documentation

#define PT_LOAD   1

Definition at line 51 of file ctrump-libspe2.h.

Referenced by ctrump_libspe2_program_boot().


Typedef Documentation

typedef uint32_t ctrump_ea_t

Definition at line 57 of file ctrump-libspe2.h.

typedef struct ctrump_ehdr ehdr

Definition at line 91 of file ctrump-libspe2.h.

typedef uint32_t Elf32_Addr

Definition at line 50 of file ctrump-libspe2.h.

typedef uint16_t Elf32_Half

Definition at line 48 of file ctrump-libspe2.h.

typedef uint32_t Elf32_Off

Definition at line 49 of file ctrump-libspe2.h.

typedef uint32_t Elf32_Word

Definition at line 47 of file ctrump-libspe2.h.


Function Documentation

static void ctrump_libspe2_program_boot ( ctrump_ea_t  prog_handle,
register unsigned long long  argp,
register unsigned long long  envp 
) [static]

static void ctrump_libspe2_program_boot ( ctrump_ea_t  prog_handle,
unsigned long long  argp,
unsigned long long  envp 
) [static]

次のプログラムをロードしたあと、現在のプログラムを終了、 次のプログラムを開始する

Parameters:
prog_handle spe_program_handle オブジェクト
argp 次のプログラムに渡すargp
envp 次のプログラムに渡すenvp

Referenced by ctrump_spe_fini(), and ctrump_spe_wait_ppe().

static int ctrump_spe_fini ( int  spe_id,
int  is_last_spe,
unsigned long long  sync_ea 
) [inline, static]

CTRUMP SPEプログラムを終了する.

Parameters:
spe_id 自分のSPE番号 (0-16)
is_last_spe 最後のSPEなら1
sync_ea 同期バッファのEA
Note:
戻らない

Definition at line 222 of file ctrump-libspe2.h.

References __attribute__(), and ctrump_libspe2_program_boot().

static void ctrump_spe_wait_ppe ( void   )  [inline, static]

PPEからの起動コマンドを待つ.

Definition at line 284 of file ctrump-libspe2.h.

References ctrump_libspe2_program_boot().

Referenced by main().


Variable Documentation

char ctrump_end

void noreturn

Definition at line 105 of file ctrump-libspe2.h.


Generated on Tue Mar 31 20:19:25 2009 for ctrump by  doxygen 1.5.6