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

Unified Diff: src/pkg/runtime/linux/amd64/sys.s

Issue 2150042: code review 2150042: runtime: use manual stack for garbage collection (Closed)
Patch Set: code review 2150042: runtime: use manual stack for garbage collection Created 14 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/linux/386/sys.s ('k') | src/pkg/runtime/linux/arm/sys.s » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/linux/amd64/sys.s
===================================================================
--- a/src/pkg/runtime/linux/amd64/sys.s
+++ b/src/pkg/runtime/linux/amd64/sys.s
@@ -100,7 +100,7 @@
MOVL 32(SP), R8
MOVL 36(SP), R9
- MOVL $9, AX // syscall entry
+ MOVL $9, AX // mmap
SYSCALL
CMPQ AX, $0xfffffffffffff001
JLS 3(PC)
@@ -108,6 +108,16 @@
INCQ AX
RET
+TEXT munmap(SB),7,$0
+ MOVQ 8(SP), DI
+ MOVQ 16(SP), SI
+ MOVQ $11, AX // munmap
+ SYSCALL
+ CMPQ AX, $0xfffffffffffff001
+ JLS 2(PC)
+ CALL notok(SB)
+ RET
+
TEXT notok(SB),7,$0
MOVQ $0xf1, BP
MOVQ BP, (BP)
« no previous file with comments | « src/pkg/runtime/linux/386/sys.s ('k') | src/pkg/runtime/linux/arm/sys.s » ('j') | no next file with comments »

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