Subversion Repositories HelenOS

Rev

Rev 3157 | 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
# %r3	contains entry_point
-
 
34
# %r4	contains pcb
32
#
35
#
33
# Jump to a program entry point
36
# Jump to a program entry point
34
program_run:
37
program_run:
35
	mtctr %r3
38
	mtctr %r3
-
 
39
	mr %r3, %r4	# Pass pcb to the entry point in %r3
36
	bctr
40
	bctr