shithub: mc

Download patch

ref: 2713494493ca1d5f438dbf4c1a109c07ef758973
parent: e281949b99fc3e5b9a9a49a7abaf95b36be88dde
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 22 18:33:48 EST 2014

Fix asm syntax.

--- a/libstd/syscall+plan9-x64.s
+++ b/libstd/syscall+plan9-x64.s
@@ -1,16 +1,15 @@
-.globl sys$syscall
-sys$syscall:
-	/*
-        Ugly: Kernel is caller-save, Myrddin
-        is callee-save. We need to preserve
-        registers before entering the kernel.
+/*
+Ugly: Kernel is caller-save, Myrddin
+is callee-save. We need to preserve
+registers before entering the kernel.
 
-        However, we also need SP to point to the
-        start of the arguments.
+However, we also need SP to point to the
+start of the arguments.
 
-	Luckily, the kernel doesn't touch our stack,
-	and we have 256 bytes of gap if we get a note.
-        */
+Luckily, the kernel doesn't touch our stack,
+and we have 256 bytes of gap if we get a note.
+*/
+TEXT sys$syscall+0(SB),1,$0
         MOVQ BX,-16(SP)
         MOVQ CX,-24(SP)
         MOVQ DX,-32(SP)