summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/cell/spu/main.c
blob: e8d5fdccbf7c9d593e5e11f26382965632880bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* main.c for cell SPU code */


#include <stdio.h>
#include <libmisc.h>
#include <spu_mfcio.h>

#include "tri.h"
#include "pipe/cell/common.h"


static struct init_info init;


int
main(unsigned long long speid,
     unsigned long long argp,
     unsigned long long envp)
{
   int tag = 0;

   mfc_get(&init, (unsigned int) argp, sizeof(struct init_info), tag, 0, 0);

   printf("Enter spu main(): init.foo=%d\n", init.foo);

   draw_triangle(0, 1, 2);

   return 0;
}