Subversion Repositories HelenOS

Rev

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

Rev 1288 Rev 1784
Line 24... Line 24...
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
#
27
#
28
 
28
 
-
 
29
#include <arch/stack.h>
-
 
30
#include <arch/register.h>
-
 
31
 
29
.text
32
.text
30
 
33
 
31
.global memcpy
34
.global memcpy
32
.global memcpy_from_uspace
35
.global memcpy_from_uspace
33
.global memcpy_to_uspace
36
.global memcpy_to_uspace
34
.global memcpy_from_uspace_failover_address
37
.global memcpy_from_uspace_failover_address
35
.global memcpy_to_uspace_failover_address
38
.global memcpy_to_uspace_failover_address
36
.global memsetb
39
.global memsetb
37
 
40
 
-
 
41
 
38
memcpy:
42
memcpy:
39
memcpy_from_uspace:
43
memcpy_from_uspace:
40
memcpy_to_uspace:
44
memcpy_to_uspace:
41
 
45
 
42
	b _memcpy
46
	b _memcpy
Line 49... Line 53...
49
 
53
 
50
memsetb:
54
memsetb:
51
	b _memsetb
55
	b _memsetb
52
	nop
56
	nop
53
 
57
 
-
 
58
.global ofw
-
 
59
ofw:
-
 
60
	save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
-
 
61
	set ofw_cif, %l0
-
 
62
	ldx [%l0], %l0
-
 
63
 
-
 
64
	rdpr  %pstate, %l1
-
 
65
	and  %l1, ~PSTATE_AM_BIT, %l2
-
 
66
	wrpr  %l2, 0, %pstate
-
 
67
	    
-
 
68
	jmpl %l0, %o7
-
 
69
	mov %i0, %o0
-
 
70
	
-
 
71
	wrpr  %l1, 0, %pstate
-
 
72
 
-
 
73
	ret
-
 
74
	restore %o0, 0, %o0