Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(25)

Delta Between Two Patch Sets: src/pkg/runtime/asm_arm.s

Issue 123640043: code review 123640043: runtime: convert common scheduler functions to Go (Closed)
Left Patch Set: diff -r 9985ecf9828f87d8887550109060357e2163ab8a https://dvyukov%40google.com@code.google.com/p/go/ Created 10 years, 7 months ago
Right Patch Set: diff -r d290f48255fb933439916159ecd5301c5bb5c301 https://dvyukov%40google.com@code.google.com/p/go/ Created 10 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/asm_amd64p32.s ('k') | src/pkg/runtime/chan.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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
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
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b