Subversion Repositories HelenOS-historic

Rev

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

Rev 342 Rev 414
Line 28... Line 28...
28
 
28
 
29
#include <arch/asm/macro.h>
29
#include <arch/asm/macro.h>
30
 
30
 
31
.text   
31
.text   
32
 
32
 
33
.global context_save
33
.global context_save_arch
34
.global context_restore
34
.global context_restore_arch
35
 
35
 
36
context_save:
36
context_save_arch:
37
	REGISTERS_STORE r3
37
	REGISTERS_STORE r3
38
	
38
	
39
	mflr r3
39
	mflr r3
40
	stw r3, 128(r3)
40
	stw r3, 128(r3)
41
	
41
	
42
	# context_save returns 1
42
	# context_save returns 1
43
	li r3, 1
43
	li r3, 1
44
	blr
44
	blr
45
	
45
	
46
context_restore:
46
context_restore_arch:
47
	REGISTERS_LOAD r3
47
	REGISTERS_LOAD r3
48
	
48
	
49
	lwz r3, 128(r3)
49
	lwz r3, 128(r3)
50
	mtlr r3
50
	mtlr r3
51
	
51