Subversion Repositories HelenOS

Rev

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

Rev 2787 Rev 3424
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
#
38
#
37
#
39
__entry:
38
__entry:
40
	mov %ss, %ax
39
	mov %ss, %ax
41
	mov %ax, %ds
40
	mov %ax, %ds
42
	mov %ax, %es
41
	mov %ax, %es
43
	mov %ax, %fs
42
	mov %ax, %fs
44
	# Do not set %gs, it contains descriptor that can see TLS
43
	# Do not set %gs, it contains descriptor that can see TLS
45
	
-
 
46
	call __main
-
 
47
	call __io_init
-
 
48
	call main
-
 
49
	call __exit
-
 
50
	
-
 
51
__entry_driver:
-
 
52
	mov %ss, %ax
-
 
53
	mov %ax, %ds
-
 
54
	mov %ax, %es
-
 
55
	mov %ax, %fs
-
 
56
	# Do not set %gs, it contains descriptor that can see TLS
-
 
57
	
44
	
58
	call __main
45
	call __main
59
	call main
46
	call main
60
	call __exit
47
	call __exit