~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to uspace/lib/c/arch/mips32/src/fibril.S

MergeĀ mainlineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
.set noreorder
33
33
 
34
34
#include <libarch/context_offset.h>
35
 
        
 
35
 
36
36
.global context_save
37
37
.global context_restore
38
 
        
 
38
 
39
39
context_save:
40
40
        CONTEXT_SAVE_ARCH_CORE $a0
41
 
 
 
41
        
42
42
        # context_save returns 1
43
43
        j $ra
44
 
        li $v0, 1       
45
 
        
 
44
        li $v0, 1
 
45
 
46
46
context_restore:
47
47
        CONTEXT_RESTORE_ARCH_CORE $a0
48
 
 
49
 
        # Just for the jump into first function, but one instruction
50
 
        # should not bother us
51
 
        move $t9, $ra   
 
48
        
 
49
        # Just for the jump into first function,
 
50
        # but one instruction should not bother us
 
51
        move $t9, $ra
 
52
        
52
53
        # context_restore returns 0
53
54
        j $ra
54
 
        xor $v0, $v0    
55
 
 
 
55
        xor $v0, $v0