diff options
-rw-r--r-- | rt/abort-freebsd.s | 4 | ||||
-rw-r--r-- | rt/abort-osx.s | 4 | ||||
-rw-r--r-- | rt/common.s | 4 | ||||
-rw-r--r-- | rt/start-freebsd.s | 18 | ||||
-rw-r--r-- | rt/start-linux.s | 20 | ||||
-rw-r--r-- | rt/start-osx.s | 14 |
6 files changed, 32 insertions, 32 deletions
diff --git a/rt/abort-freebsd.s b/rt/abort-freebsd.s index 09297a7..a4b12bb 100644 --- a/rt/abort-freebsd.s +++ b/rt/abort-freebsd.s @@ -8,11 +8,11 @@ __rt$abort_oob: movq (%rsp),%rax movq $15,%rdx leaq .digitchars(%rip),%r8 - leaq .pcstr(%rip),%r9 + leaq .pcstr(%rip),%r9 .loop: movq %rax, %rcx andq $0xf, %rcx - movb (%r8,%rcx),%r10b + movb (%r8,%rcx),%r10b movb %r10b,(%r9,%rdx) subq $1, %rdx shrq $4, %rax diff --git a/rt/abort-osx.s b/rt/abort-osx.s index 188fda5..4460439 100644 --- a/rt/abort-osx.s +++ b/rt/abort-osx.s @@ -8,11 +8,11 @@ __rt$abort_oob: movq (%rsp),%rax movq $15,%rdx leaq .digitchars(%rip),%r8 - leaq .pcstr(%rip),%r9 + leaq .pcstr(%rip),%r9 .loop: movq %rax, %rcx andq $0xf, %rcx - movb (%r8,%rcx),%r10b + movb (%r8,%rcx),%r10b movb %r10b,(%r9,%rdx) subq $1, %rdx shrq $4, %rax diff --git a/rt/common.s b/rt/common.s index ee202b7..555a243 100644 --- a/rt/common.s +++ b/rt/common.s @@ -40,7 +40,7 @@ count: * argc in %rax, argv in %rbx, dest vector in %rcx */ cvt: - jmp .cvttest + jmp .cvttest .cvtloop: subq $1,%rax movq (%rbx),%r8 @@ -53,5 +53,5 @@ cvt: testq %rax,%rax jnz .cvtloop .cvtdone: - ret + ret diff --git a/rt/start-freebsd.s b/rt/start-freebsd.s index 396674c..54cd0ce 100644 --- a/rt/start-freebsd.s +++ b/rt/start-freebsd.s @@ -27,7 +27,7 @@ _start: /* stack allocate sizeof(byte[:])*(argc + len(envp)) */ movq (%rdi),%rax leaq 16(%rdi,%rax,8), %rbx /* argp = argv + 8*argc + 8 */ - call count + call count addq %r9,%rax imulq $16,%rax subq %rax,%rsp @@ -36,20 +36,20 @@ _start: /* convert envp to byte[:][:] for std._environment */ movq (%rdi),%rax leaq 16(%rdi,%rax,8), %rbx /* envp = argv + 8*argc + 8 */ - /* store envp for some syscalls to use without spurious conversion. */ - movq %rbx,sys$__cenvp(%rip) + /* store envp for some syscalls to use without spurious conversion. */ + movq %rbx,sys$__cenvp(%rip) movq %r9,%rax movq %rsp, %rcx - movq %r9,.envlen - movq %rdx,.envbase - call cvt + movq %r9,.envlen(%rip) + movq %rdx,.envbase(%rip) + call cvt movq %rcx,%rdx - /* convert argc, argv to byte[:][:] for args. */ + /* convert argc, argv to byte[:][:] for args. */ movq (%rdi), %rax /* argc */ leaq 8(%rdi), %rbx /* argv */ movq (%rdi), %rsi /* saved argc */ - call cvt + call cvt pushq %rsi pushq %rdx @@ -59,7 +59,7 @@ _start: /* enter the main program */ call main /* exit(0) */ - xorq %rdi,%rdi + xorq %rdi,%rdi movq $1,%rax syscall diff --git a/rt/start-linux.s b/rt/start-linux.s index 2164515..04c7029 100644 --- a/rt/start-linux.s +++ b/rt/start-linux.s @@ -49,29 +49,29 @@ _start: /* convert envp to byte[:][:] for sys._environment */ movq (%rbp),%rax leaq 16(%rbp,%rax,8), %rbx /* envp = argv + 8*argc + 8 */ - /* store envp for some syscalls to use without converting */ - movq %rbx,sys$__cenvp(%rip) + /* store envp for some syscalls to use without converting */ + movq %rbx,sys$__cenvp(%rip) movq %r9,%rax movq %rsp, %rcx - movq %r9,.envlen - movq %rdx,.envbase - call cvt + movq %r9,.envlen(%rip) + movq %rdx,.envbase(%rip) + call cvt movq %rcx,%rdx - /* convert argc, argv to byte[:][:] for args. */ + /* convert argc, argv to byte[:][:] for args. */ movq (%rbp), %rax /* argc */ leaq 8(%rbp), %rbx /* argv */ movq (%rbp), %rsi /* saved argc */ - call cvt - pushq %rsi - pushq %rdx + call cvt + pushq %rsi + pushq %rdx /* call pre-main initializers */ call __init__ /* enter the main program */ call main /* exit(0) */ - xorq %rdi,%rdi + xorq %rdi,%rdi movq $60,%rax syscall diff --git a/rt/start-osx.s b/rt/start-osx.s index 7e4d901..edf758a 100644 --- a/rt/start-osx.s +++ b/rt/start-osx.s @@ -29,7 +29,7 @@ start: /* stack allocate sizeof(byte[:])*(argc + len(envp)) */ movq (%rbp),%rax leaq 16(%rbp,%rax,8), %rbx /* argp = argv + 8*argc + 8 */ - call count + call count addq %r9,%rax imulq $16,%rax subq %rax,%rsp @@ -38,21 +38,21 @@ start: /* convert envp to byte[:][:] for sys._environment */ movq (%rbp),%rax leaq 16(%rbp,%rax,8), %rbx /* envp = argv + 8*argc + 8 */ - movq %rbx,_sys$__cenvp(%rip) + movq %rbx,_sys$__cenvp(%rip) movq %r9,%rax movq %rsp, %rcx movq %r9,.envlen(%rip) movq %rdx,.envbase(%rip) - call cvt + call cvt movq %rcx,%rdx - /* convert argc, argv to byte[:][:] for args. */ + /* convert argc, argv to byte[:][:] for args. */ movq (%rbp), %rax /* argc */ leaq 8(%rbp), %rbx /* argv */ movq (%rbp), %rsi /* saved argc */ - call cvt - pushq %rsi - pushq %rdx + call cvt + pushq %rsi + pushq %rdx call ___init__ /* enter the main program */ |