URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 666 |
Rev 700 |
Line 298... |
Line 298... |
"l.nop\n"
|
"l.nop\n"
|
"l.sfeqi r11,0 \n\t"
|
"l.sfeqi r11,0 \n\t"
|
"l.bnf 1f \n\t" /* return if parent */
|
"l.bnf 1f \n\t" /* return if parent */
|
/* this is in child */
|
/* this is in child */
|
"l.addi r3,%3,0 \n\t" /* child -- load args and call fn */
|
"l.addi r3,%3,0 \n\t" /* child -- load args and call fn */
|
"l.addi r9,%4,0 \n\t"
|
"l.addi r11,%4,0 \n\t"
|
"l.jr r9 \n\t"
|
"l.jr r11 \n\t"
|
"l.nop \n\t"
|
"l.nop \n\t"
|
"l.addi r3,r11,0 \n\t"
|
"l.addi r3,r11,0 \n\t"
|
"l.addi r11,r0,%2 \n\t" /* exit after child exits */
|
"l.addi r11,r0,%2 \n\t" /* exit after child exits */
|
"l.addi r11,r0,0 \n\t"
|
|
"l.sys 1\n"
|
"l.sys 1\n"
|
"l.nop\n"
|
"l.nop\n"
|
/* parent */
|
/* parent */
|
"1: \n\t"
|
"1: \n\t"
|
:"=r" (retval)
|
:"=r" (retval)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.