#include <stdint.h>
#include <string.h>
#include <spu_mfcio.h>
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 |
Definition in file ctrump-libspe2.h.
#define PT_LOAD 1 |
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.
static void ctrump_libspe2_program_boot | ( | ctrump_ea_t | prog_handle, | |
register unsigned long long | argp, | |||
register unsigned long long | envp | |||
) | [static] |
Definition at line 108 of file ctrump-libspe2.h.
References ctrump_ehdr::e_entry, ctrump_ehdr::e_phentsize, ctrump_ehdr::e_phnum, ctrump_ehdr::e_phoff, int(), ctrump_phdr::p_filesz, ctrump_phdr::p_memsz, ctrump_phdr::p_offset, ctrump_phdr::p_paddr, ctrump_phdr::p_type, and PT_LOAD.
static void ctrump_libspe2_program_boot | ( | ctrump_ea_t | prog_handle, | |
unsigned long long | argp, | |||
unsigned long long | envp | |||
) | [static] |
次のプログラムをロードしたあと、現在のプログラムを終了、 次のプログラムを開始する
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プログラムを終了する.
spe_id | 自分のSPE番号 (0-16) | |
is_last_spe | 最後のSPEなら1 | |
sync_ea | 同期バッファのEA |
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().
char ctrump_begin |
char ctrump_end |
void noreturn |
Definition at line 105 of file ctrump-libspe2.h.