Get all tests passing on NetBSD

This commit is contained in:
Justine Tunney
2021-02-05 09:44:54 -08:00
parent 23ae9dfceb
commit b2cd58a322
41 changed files with 202 additions and 655 deletions

View File

@@ -21,6 +21,6 @@
/ Directly calls ftruncate() impl on host o/s if available.
sys_ftruncate:
mov %rsi,%rdx # openbsd:pad
mov %rsi,%rdx # netbsd+openbsd:pad
jmp __sys_ftruncate
.endfn sys_ftruncate,globl,hidden

View File

@@ -22,9 +22,9 @@
/ Directly calls lseek() impl on host o/s if available.
sys_lseek:
#if SupportsOpenbsd()
testb IsOpenbsd() # openbsd:evilpad
cmovnz %rdx,%rcx
#if SupportsOpenbsd() || SupportsNetbsd()
testb $OPENBSD|NETBSD,__hostos(%rip)
cmovnz %rdx,%rcx # openbsd:evilpad
cmovnz %rsi,%rdx
cmovnz .Lzero(%rip),%rsi
#endif

View File

@@ -23,7 +23,7 @@
sys_mmap:
push %rbp
mov %rsp,%rbp
push %r9 # openbsd:pad
push %r9 # netbsd+openbsd:pad
call __sys_mmap
leave
ret

View File

@@ -21,6 +21,6 @@
/ Directly calls pread() impl on host o/s if available.
sys_pread:
mov %rcx,%r8 # openbsd:pad
mov %rcx,%r8 # netbsd+openbsd:pad
jmp __sys_pread
.endfn sys_pread,globl,hidden

View File

@@ -21,6 +21,6 @@
/ Directly calls preadv() impl on host o/s if available.
sys_preadv:
mov %rcx,%r8 # openbsd:pad
mov %rcx,%r8 # netbsd+openbsd:pad
jmp __sys_preadv
.endfn sys_preadv,globl,hidden

View File

@@ -21,6 +21,6 @@
/ Directly calls pwrite() impl on host o/s if available.
sys_pwrite:
mov %rcx,%r8 # openbsd:pad
mov %rcx,%r8 # netbsd+openbsd:pad
jmp __sys_pwrite
.endfn sys_pwrite,globl,hidden

View File

@@ -21,6 +21,6 @@
/ Directly calls pwritev() impl on host o/s if available.
sys_pwritev:
mov %rcx,%r8 # openbsd:pad
mov %rcx,%r8 # netbsd+openbsd:pad
jmp __sys_pwritev
.endfn sys_pwritev,globl,hidden

View File

@@ -21,6 +21,6 @@
/ Directly calls truncate() impl on host o/s if available.
sys_truncate:
mov %rsi,%rdx # openbsd:pad
mov %rsi,%rdx # netbsd+openbsd:pad
jmp __sys_truncate
.endfn sys_truncate,globl,hidden