Skip to content

Commit 5ae7abd

Browse files
crabtwbrson
authored andcommitted
---
yaml --- r: 48121 b: refs/heads/incoming c: 314605f h: refs/heads/master i: 48119: f29850b v: v3
1 parent 5d7edb5 commit 5ae7abd

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: c2a61d7df33acc606209b0b020208c7f20212394
9+
refs/heads/incoming: 314605f94844dcff0b1fc5f94f195ab042023002
1010
refs/heads/dist-snap: 8b98e5a296d95c5e832db0756828e5bec31c6f50
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/rt/arch/mips/_context.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ swap_registers:
7878
lw $31, 31 * 4($5)
7979

8080
jr $31
81+
nop
8182
.end swap_registers

branches/incoming/src/rt/arch/mips/ccall.S

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,22 @@
88
__morestack:
99
.set noreorder
1010
.set nomacro
11+
move $7, $29
12+
move $29, $6
1113

14+
sw $7, 0($29)
15+
sw $31, -4($29)
16+
17+
addiu $29, $29, -24
18+
move $25, $5
19+
jalr $25
20+
nop
21+
addiu $29, $29, 24
22+
23+
lw $31, -4($29)
24+
lw $7, 0($29)
25+
26+
move $29, $7
27+
jr $31
28+
nop
1229
.end __morestack

branches/incoming/src/rt/arch/mips/gpr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class rust_gpr : public rust_gpr_base {
2121
uintptr_t r24, r25, r26, r27, r28, r29, r30, r31;
2222

2323
inline uintptr_t get_fp() { return r30; }
24-
inline uintptr_t get_ip() { return r0; }
24+
inline uintptr_t get_ip() { return r31; }
2525

2626
inline void set_fp(uintptr_t new_fp) { r30 = new_fp; }
27-
inline void set_ip(uintptr_t new_ip) { r0 = new_ip; }
27+
inline void set_ip(uintptr_t new_ip) { r31 = new_ip; }
2828

2929
void load();
3030
};

branches/incoming/src/rt/arch/mips/record_sp.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ record_sp_limit:
1414
addiu $3, $3, -0x7008
1515
sw $4, 4($3)
1616
jr $31
17+
nop
1718
.end record_sp_limit
1819

1920
.globl get_sp_limit
@@ -30,6 +31,7 @@ get_sp_limit:
3031
addiu $3, $3, -0x7008
3132
lw $2, 4($3)
3233
jr $31
34+
nop
3335
.end get_sp_limit
3436

3537
.globl get_sp
@@ -41,4 +43,5 @@ get_sp:
4143
.set nomacro
4244
move $2, $29
4345
jr $31
46+
nop
4447
.end get_sp

0 commit comments

Comments
 (0)