Subversion Repositories HelenOS-historic

Rev

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

Rev 1120 Rev 1391
Line 70... Line 70...
70
	movl 12(%eax),%esi	# ctx->esi -> %esi
70
	movl 12(%eax),%esi	# ctx->esi -> %esi
71
	movl 16(%eax),%edi	# ctx->edi -> %edi
71
	movl 16(%eax),%edi	# ctx->edi -> %edi
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
	movl 24(%eax), %eax   # Set arg1 to TLS addr
78
	movl 24(%eax), %eax   # Set arg1 to TLS addr
78
	movl $1, %edi         # Syscall 1
79
	movl $1, %edi         # Syscall 1
79
	int $0x30
80
	int $0x30
-
 
81
	popl %edi
80
	
82
	
81
	xorl %eax,%eax		# context_restore returns 0
83
	xorl %eax,%eax		# context_restore returns 0
82
	ret
84
	ret