diff options
| author | Rob Pike <r@golang.org> | 2015-02-17 09:49:57 -0800 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2015-02-17 18:23:08 +0000 |
| commit | 0f3f2c4110fc177b9a37998cb6c426647110d98f (patch) | |
| tree | def6f4bff814b56acae9012f466a7f1a453ba3f1 /src/runtime | |
| parent | 09ce5d38d04da7e5f3b42ddfd2d6d669e017f4a9 (diff) | |
| download | go-0f3f2c4110fc177b9a37998cb6c426647110d98f.tar.xz | |
[dev.cc] runtime/cgo: change PC to R15 in asm_arm.s
R15 is the real register. PC is a pseudo-register that we are making
illegal in this context as part of the grand assembly unification.
Change-Id: Ie0ea38ce7ef4d2cf4fcbe23b851a570fd312ce8d
Reviewed-on: https://go-review.googlesource.com/4966
Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/cgo/asm_arm.s | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/cgo/asm_arm.s b/src/runtime/cgo/asm_arm.s index 6e57432e35..fcd212eb8e 100644 --- a/src/runtime/cgo/asm_arm.s +++ b/src/runtime/cgo/asm_arm.s @@ -19,6 +19,6 @@ TEXT crosscall2(SB),NOSPLIT,$-4 */ MOVM.WP [R0, R1, R2, R4, R5, R6, R7, R8, R9, g, R11, R12, R14], (R13) BL runtimeĀ·load_g(SB) - MOVW PC, R14 - MOVW 0(R13), PC - MOVM.IAW (R13), [R0, R1, R2, R4, R5, R6, R7, R8, R9, g, R11, R12, PC] + MOVW R15, R14 // R15 is PC. + MOVW 0(R13), R15 + MOVM.IAW (R13), [R0, R1, R2, R4, R5, R6, R7, R8, R9, g, R11, R12, R15] |
