Subversion Repositories HelenOS

Rev

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

Rev 2482 Rev 2613
Line 72... Line 72...
72
	movl 20(%eax),%ebp	# ctx->ebp -> %ebp
72
	movl 20(%eax),%ebp	# ctx->ebp -> %ebp
73
 
73
 
74
	movl %edx,0(%esp)	# ctx->pc -> saver's return %eip
74
	movl %edx,0(%esp)	# ctx->pc -> saver's return %eip
75
 
75
 
76
	# Set thread local storage
76
	# Set thread local storage
77
	pushl %edi
77
	pushl %edx
78
	movl 24(%eax), %eax   # Set arg1 to TLS addr
78
	movl 24(%eax), %edx   # Set arg1 to TLS addr
79
	movl $1, %edi         # Syscall 1
79
	movl $1, %eax         # Syscall SYS_TLS_SET
80
	int $0x30
80
	int $0x30
81
	popl %edi
81
	popl %edx
82
	
82
	
83
	xorl %eax,%eax		# context_restore returns 0
83
	xorl %eax,%eax		# context_restore returns 0
84
	ret
84
	ret