Subversion Repositories HelenOS

Rev

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

Rev 3157 Rev 3169
Line 26... Line 26...
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
.globl program_run
29
.globl program_run
30
 
30
 
31
## void program_run(uintptr_t entry_point);
31
## void program_run(void *entry_point, void *pcb);
-
 
32
#
-
 
33
# in0	contains entry_point
-
 
34
# in1	contains pcb
32
#
35
#
33
# Jump to a program entry point
36
# Jump to a program entry point
34
program_run:
37
program_run:
-
 
38
	# Pass pcb to the entry point in r2
-
 
39
	mov r2 = in1
35
	mov b1 = r32 ;;
40
	mov b1 = in0 ;;
36
	br b1 ;;
41
	br b1 ;;