mirror of https://github.com/mkerrisk/man-pages
spu_run.2: Minor fix-ups for comments
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a8114045ab
commit
d5d83905a1
|
@ -232,8 +232,9 @@ int main(void)
|
|||
if (context == \-1)
|
||||
handle_error("spu_create");
|
||||
|
||||
/* write a \(aqstop 0x1234\(aq instruction to the SPU\(aqs
|
||||
* local store memory
|
||||
/*
|
||||
* Write a \(aqstop 0x1234\(aq instruction to the SPU\(aqs
|
||||
* local store memory.
|
||||
*/
|
||||
instruction = 0x00001234;
|
||||
|
||||
|
@ -242,9 +243,10 @@ int main(void)
|
|||
handle_error("open");
|
||||
write(fd, &instruction, sizeof(instruction));
|
||||
|
||||
/* set npc to the starting instruction address of the
|
||||
/*
|
||||
* set npc to the starting instruction address of the
|
||||
* SPU program. Since we wrote the instruction at the
|
||||
* start of the mem file, the entry point will be 0x0
|
||||
* start of the mem file, the entry point will be 0x0.
|
||||
*/
|
||||
npc = 0;
|
||||
|
||||
|
@ -252,7 +254,8 @@ int main(void)
|
|||
if (spu_status == \-1)
|
||||
handle_error("open");
|
||||
|
||||
/* we should see a status code of 0x1234002:
|
||||
/*
|
||||
* We should see a status code of 0x1234002:
|
||||
* 0x00000002 (spu was stopped due to stop\-and\-signal)
|
||||
* | 0x12340000 (the stop\-and\-signal code)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue