Subversion Repositories HelenOS

Rev

Rev 3169 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3169 Rev 3202
Line 24... Line 24...
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
#
27
#
28
 
28
 
-
 
29
.text
29
.globl program_run
30
.globl program_run
30
 
31
 
31
## void program_run(void *entry_point, void *pcb);
32
## void program_run(void *entry_point, void *pcb);
32
#
33
#
33
# in0	contains entry_point
34
# in0	contains entry_point
34
# in1	contains pcb
35
# in1	contains pcb
35
#
36
#
36
# Jump to a program entry point
37
# Jump to a program entry point
37
program_run:
38
program_run:
38
	# Pass pcb to the entry point in r2
39
	# Pass pcb to the entry point in r2
-
 
40
	alloc loc0 = ar.pfs, 2, 1, 1, 0 ;;
-
 
41
 
39
	mov r2 = in1
42
	mov out0 = in1
40
	mov b1 = in0 ;;
43
	mov b6 = in0 ;;
41
	br b1 ;;
44
	br b6 ;;