Subversion Repositories HelenOS

Rev

Rev 3022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3022 Rev 4055
Line 29... Line 29...
29
.section .init, "ax"
29
.section .init, "ax"
30
 
30
 
31
.org 0
31
.org 0
32
 
32
 
33
.globl __entry
33
.globl __entry
34
.globl __entry_driver
-
 
35
 
34
 
36
## User-space task entry point
35
## User-space task entry point
37
#
36
#
-
 
37
# r2 contains the PCB pointer
38
#
38
#
39
__entry:
39
__entry:
40
	alloc loc0 = ar.pfs, 0, 1, 2, 0
40
	alloc loc0 = ar.pfs, 0, 1, 2, 0
41
	mov r1 = _gp 
41
	movl r1 = _gp
42
	br.call.sptk.many b0 = __main
-
 
43
0:
-
 
44
	br.call.sptk.many b0 = __io_init
-
 
45
1:
-
 
46
	br.call.sptk.many b0 = main
-
 
47
2:
-
 
48
	br.call.sptk.many b0 = __exit
-
 
49
 
42
 
50
__entry_driver:
-
 
51
	alloc loc0 = ar.pfs, 0, 1, 2, 0
43
	# Pass PCB pointer as the first argument to __main
52
	mov r1 = _gp 
44
	mov out0 = r2
53
	br.call.sptk.many b0 = __main
45
	br.call.sptk.many b0 = __main
54
0:
46
0:
55
	br.call.sptk.many b0 = main
-
 
56
1:
-
 
57
	br.call.sptk.many b0 = __exit
47
	br.call.sptk.many b0 = __exit