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
# %o0 contains uarg
-
 
38
# %o1 contains pcb_ptr
38
#
39
#
39
__entry:
40
__entry:
-
 
41
	# Pass pcb_ptr as the first argument to __main()
-
 
42
	mov %o1, %o0
40
	sethi %hi(_gp), %l7
43
	sethi %hi(_gp), %l7
41
	call __main
44
	call __main
42
	or %l7, %lo(_gp), %l7
45
	or %l7, %lo(_gp), %l7
43
	call __io_init
-
 
44
	nop
-
 
45
	call main
-
 
46
	nop
-
 
47
	call __exit
-
 
48
	nop
-
 
49
 
46
 
50
__entry_driver:
-
 
51
	sethi %hi(_gp), %l7
-
 
52
	call __main
-
 
53
	or %l7, %lo(_gp), %l7
-
 
54
	call main
-
 
55
	nop
-
 
56
	call __exit
47
	call __exit
57
	nop
48
	nop