Subversion Repositories HelenOS-historic

Rev

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

Rev 919 Rev 993
Line 58... Line 58...
58
 * @param in4 Value to be stored in RSC.
58
 * @param in4 Value to be stored in RSC.
59
 */
59
 */
60
.global switch_to_userspace
60
.global switch_to_userspace
61
switch_to_userspace:
61
switch_to_userspace:
62
	alloc loc0 = ar.pfs, 5, 3, 0, 0
62
	alloc loc0 = ar.pfs, 5, 3, 0, 0
63
	rsm (PSR_IC_MASK | PSR_I_MASK)		/* disable interruption collection  and interrupts */
63
	rsm (PSR_IC_MASK | PSR_I_MASK)		/* disable interruption collection and interrupts */
64
	srlz.d ;;
64
	srlz.d ;;
65
	srlz.i ;;
65
	srlz.i ;;
66
	
66
	
67
	mov cr.ipsr = in3
67
	mov cr.ipsr = in3
68
	mov cr.iip = in0
68
	mov cr.iip = in0