Subversion Repositories HelenOS

Rev

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

Rev 3153 Rev 3403
Line 46... Line 46...
46
	addiu	$v0,$a1,3
46
	addiu	$v0,$a1,3
47
	li	$v1,-4			# 0xfffffffffffffffc
47
	li	$v1,-4			# 0xfffffffffffffffc
48
	and	$v0,$v0,$v1
48
	and	$v0,$v0,$v1
49
	beq	$a1,$v0,3f
49
	beq	$a1,$v0,3f
50
	move	$t0,$a0
50
	move	$t0,$a0
-
 
51
	move	$t2,$a0			# save dst
51
 
52
 
52
0:
53
0:
53
	beq	$a2,$zero,2f
54
	beq	$a2,$zero,2f
54
	move	$a3,$zero
55
	move	$a3,$zero
55
 
56
 
Line 61... Line 62...
61
	bne	$a3,$a2,1b
62
	bne	$a3,$a2,1b
62
	sb	$a0,0($v1)
63
	sb	$a0,0($v1)
63
 
64
 
64
2:
65
2:
65
	jr	$ra
66
	jr	$ra
66
	move	$v0,$a1
67
	move	$v0,$t2
67
 
68
 
68
3:
69
3:
69
	addiu	$v0,$a0,3
70
	addiu	$v0,$a0,3
70
	and	$v0,$v0,$v1
71
	and	$v0,$v0,$v1
71
	bne	$a0,$v0,0b
72
	bne	$a0,$v0,0b
Line 101... Line 102...
101
	addiu	$a3,$a3,1
102
	addiu	$a3,$a3,1
102
	bne	$a3,$a2,6b
103
	bne	$a3,$a2,6b
103
	sb	$a0,0($v1)
104
	sb	$a0,0($v1)
104
 
105
 
105
	jr	$ra
106
	jr	$ra
106
	move	$v0,$a1
107
	move	$v0,$t2
107
 
108
 
108
jump_to_kernel:
109
jump_to_kernel:
109
	#
110
	#
110
	# TODO
111
	# TODO
111
	# Make sure that the I-cache, D-cache and memory are mutually coherent
112
	# Make sure that the I-cache, D-cache and memory are mutually coherent