LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "zasm_GOOS_GOARCH.h" | 5 #include "zasm_GOOS_GOARCH.h" |
6 #include "funcdata.h" | 6 #include "funcdata.h" |
7 #include "../../cmd/ld/textflag.h" | 7 #include "../../cmd/ld/textflag.h" |
8 | 8 |
9 // using frame size $-4 means do not save LR on stack. | 9 // using frame size $-4 means do not save LR on stack. |
10 TEXT _rt0_go(SB),NOSPLIT,$-4 | 10 TEXT _rt0_go(SB),NOSPLIT,$-4 |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 MOVW $-4(R0), R0 | 644 MOVW $-4(R0), R0 |
645 RET | 645 RET |
646 | 646 |
647 TEXT runtime·emptyfunc(SB),0,$0-0 | 647 TEXT runtime·emptyfunc(SB),0,$0-0 |
648 RET | 648 RET |
649 | 649 |
650 TEXT runtime·abort(SB),NOSPLIT,$-4-0 | 650 TEXT runtime·abort(SB),NOSPLIT,$-4-0 |
651 MOVW $0, R0 | 651 MOVW $0, R0 |
652 MOVW (R0), R1 | 652 MOVW (R0), R1 |
653 | 653 |
| 654 TEXT runtime·gocputicks(SB),NOSPLIT,$4-8 |
| 655 ADD $8, SP, R0 |
| 656 MOVW R0, 0(SP) |
| 657 BL runtime·cputicks(SB) |
| 658 RET |
| 659 |
654 // bool armcas(int32 *val, int32 old, int32 new) | 660 // bool armcas(int32 *val, int32 old, int32 new) |
655 // Atomically: | 661 // Atomically: |
656 // if(*val == old){ | 662 // if(*val == old){ |
657 // *val = new; | 663 // *val = new; |
658 // return 1; | 664 // return 1; |
659 // }else | 665 // }else |
660 // return 0; | 666 // return 0; |
661 // | 667 // |
662 // To implement runtime·cas in sys_$GOOS_arm.s | 668 // To implement runtime·cas in sys_$GOOS_arm.s |
663 // using the native instructions, use: | 669 // using the native instructions, use: |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 RET | 1250 RET |
1245 | 1251 |
1246 TEXT runtime·fastrand2(SB), NOSPLIT, $-4-4 | 1252 TEXT runtime·fastrand2(SB), NOSPLIT, $-4-4 |
1247 MOVW g_m(g), R1 | 1253 MOVW g_m(g), R1 |
1248 MOVW m_fastrand(R1), R0 | 1254 MOVW m_fastrand(R1), R0 |
1249 ADD.S R0, R0 | 1255 ADD.S R0, R0 |
1250 EOR.MI $0x88888eef, R0 | 1256 EOR.MI $0x88888eef, R0 |
1251 MOVW R0, m_fastrand(R1) | 1257 MOVW R0, m_fastrand(R1) |
1252 MOVW R0, ret+0(FP) | 1258 MOVW R0, ret+0(FP) |
1253 RET | 1259 RET |
LEFT | RIGHT |