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 3425
Line 49... Line 49...
49
memcpy_to_uspace:
49
memcpy_to_uspace:
50
	alloc loc0 = ar.pfs, 3, 1, 0, 0
50
	alloc loc0 = ar.pfs, 3, 1, 0, 0
51
 
51
 
52
	adds r14 = 7, in1
52
	adds r14 = 7, in1
53
	mov r2 = ar.lc
53
	mov r2 = ar.lc
54
	mov r8 = in1 ;;
54
	mov r8 = in0
55
	and r14 = -8, r14 ;;
55
	and r14 = -8, r14 ;;
56
	cmp.ne p6, p7 = r14, in1
56
	cmp.ne p6, p7 = r14, in1
57
(p7)	br.cond.dpnt 3f	;;
57
(p7)	br.cond.dpnt 3f	;;
58
0:
58
0:
59
	cmp.ne p6, p7 = 0, in2
59
	cmp.ne p6, p7 = 0, in2
Line 61... Line 61...
61
(p6)	adds r14 = -1, in2
61
(p6)	adds r14 = -1, in2
62
(p6)	mov r16 = r0
62
(p6)	mov r16 = r0
63
(p6)	mov r17 = r0 ;;
63
(p6)	mov r17 = r0 ;;
64
(p6)	mov ar.lc = r14
64
(p6)	mov ar.lc = r14
65
1:
65
1:
66
	add r14 = r16, r8
66
	add r14 = r16, in1 
67
	add r15 = r16, in0
67
	add r15 = r16, in0
68
	adds r17 = 1, r17 ;;
68
	adds r17 = 1, r17 ;;
69
	ld1 r14 = [r14]
69
	ld1 r14 = [r14]
70
	mov r16 = r17 ;;
70
	mov r16 = r17 ;;
71
	st1 [r15] = r14
71
	st1 [r15] = r14
72
	br.cloop.sptk.few 1b ;;
72
	br.cloop.sptk.few 1b ;;
73
2:
73
2:
74
	mov ar.lc = r2
74
	mov ar.lc = r2
75
 
-
 
76
	mov ar.pfs = loc0
75
	mov ar.pfs = loc0
77
	br.ret.sptk.many rp
76
	br.ret.sptk.many rp
78
3:
77
3:
79
	adds r14 = 7, in0 ;;
78
	adds r14 = 7, in0 ;;
80
	and r14 = -8, r14 ;;
79
	and r14 = -8, r14 ;;
Line 88... Line 87...
88
(p6)	mov r17 = r0 ;;
87
(p6)	mov r17 = r0 ;;
89
(p6)	mov ar.lc = r14
88
(p6)	mov ar.lc = r14
90
4:
89
4:
91
	shladd r14 = r16, 3, r0
90
	shladd r14 = r16, 3, r0
92
	adds r16 = 1, r17 ;;
91
	adds r16 = 1, r17 ;;
93
	add r15 = r8, r14
92
	add r15 = in1, r14
94
	add r14 = in0, r14
93
	add r14 = in0, r14
95
	mov r17 = r16 ;;
94
	mov r17 = r16 ;;
96
	ld8 r15 = [r15] ;;
95
	ld8 r15 = [r15] ;;
97
	st8 [r14] = r15
96
	st8 [r14] = r15
98
	br.cloop.sptk.few 4b
97
	br.cloop.sptk.few 4b
Line 102... Line 101...
102
	mov r16 = r0
101
	mov r16 = r0
103
	mov r18 = r0 ;;
102
	mov r18 = r0 ;;
104
	cmp.eq p6, p7 = 0, r15
103
	cmp.eq p6, p7 = 0, r15
105
	add in0 = r14, in0
104
	add in0 = r14, in0
106
	adds r15 = -1, r15
105
	adds r15 = -1, r15
107
	add r17 = r14, r8
106
	add r17 = r14, in1 
108
(p6)	br.cond.dpnt 2b	;;
107
(p6)	br.cond.dpnt 2b	;;
109
	mov ar.lc = r15
108
	mov ar.lc = r15
110
6:
109
6:
111
	add r14 = r16, r17
110
	add r14 = r16, r17
112
	add r15 = r16, in0
111
	add r15 = r16, in0
Line 114... Line 113...
114
	ld1 r14 = [r14]
113
	ld1 r14 = [r14]
115
	mov r18 = r16 ;;
114
	mov r18 = r16 ;;
116
	st1 [r15] = r14
115
	st1 [r15] = r14
117
	br.cloop.sptk.few 6b ;;
116
	br.cloop.sptk.few 6b ;;
118
	mov ar.lc = r2
117
	mov ar.lc = r2
119
 
-
 
120
	mov ar.pfs = loc0
118
	mov ar.pfs = loc0
121
	br.ret.sptk.many rp
119
	br.ret.sptk.many rp
122
	
120
	
123
memcpy_from_uspace_failover_address:
121
memcpy_from_uspace_failover_address:
124
memcpy_to_uspace_failover_address:
122
memcpy_to_uspace_failover_address:
Line 161... Line 159...
161
	mov cr.iip = in0
159
	mov cr.iip = in0
162
	mov r12 = in1
160
	mov r12 = in1
163
 
161
 
164
	xor r1 = r1, r1
162
	xor r1 = r1, r1
165
	
163
	
-
 
164
	/* r2 is defined to hold pcb_ptr - set it to 0 */
-
 
165
	xor r2 = r2, r2
-
 
166
	
166
	mov loc1 = cr.ifs
167
	mov loc1 = cr.ifs
167
	movl loc2 = PFM_MASK ;;
168
	movl loc2 = PFM_MASK ;;
168
	and loc1 = loc2, loc1 ;;
169
	and loc1 = loc2, loc1 ;;
169
	mov cr.ifs = loc1 ;;			/* prevent decrementing BSP by rfi */
170
	mov cr.ifs = loc1 ;;			/* prevent decrementing BSP by rfi */
170
 
171