aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vm/vmimpl/console.go2
-rw-r--r--vm/vmimpl/console_darwin.go (renamed from vm/vmimpl/darwin.go)2
-rw-r--r--vm/vmimpl/console_linux_amd64.go (renamed from vm/vmimpl/linux.go)2
-rw-r--r--vm/vmimpl/console_linux_arm64.go16
-rw-r--r--vm/vmimpl/console_linux_ppc64le.go13
5 files changed, 29 insertions, 6 deletions
diff --git a/vm/vmimpl/console.go b/vm/vmimpl/console.go
index 3fa501162..7fe878c2a 100644
--- a/vm/vmimpl/console.go
+++ b/vm/vmimpl/console.go
@@ -1,8 +1,6 @@
// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-// +build !ppc64le
-
package vmimpl
import (
diff --git a/vm/vmimpl/darwin.go b/vm/vmimpl/console_darwin.go
index 6c890da21..15909ae57 100644
--- a/vm/vmimpl/darwin.go
+++ b/vm/vmimpl/console_darwin.go
@@ -1,8 +1,6 @@
// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-// +build darwin
-
package vmimpl
import "syscall"
diff --git a/vm/vmimpl/linux.go b/vm/vmimpl/console_linux_amd64.go
index 19e052076..6eeb2b258 100644
--- a/vm/vmimpl/linux.go
+++ b/vm/vmimpl/console_linux_amd64.go
@@ -1,8 +1,6 @@
// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-// +build linux
-
package vmimpl
import (
diff --git a/vm/vmimpl/console_linux_arm64.go b/vm/vmimpl/console_linux_arm64.go
new file mode 100644
index 000000000..f10edf002
--- /dev/null
+++ b/vm/vmimpl/console_linux_arm64.go
@@ -0,0 +1,16 @@
+// Copyright 2017 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+package vmimpl
+
+import (
+ "golang.org/x/sys/unix"
+)
+
+// This compiles, but wan't tested.
+const (
+ unix_CBAUD = unix.CBAUD
+ unix_CRTSCTS = unix.CRTSCTS
+ syscall_TCGETS = unix.TCGETS2
+ syscall_TCSETS = unix.TCSETS2
+)
diff --git a/vm/vmimpl/console_linux_ppc64le.go b/vm/vmimpl/console_linux_ppc64le.go
new file mode 100644
index 000000000..a7374c0e5
--- /dev/null
+++ b/vm/vmimpl/console_linux_ppc64le.go
@@ -0,0 +1,13 @@
+// Copyright 2017 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+package vmimpl
+
+// Just to make the code compile.
+// linux_ppc64le as host with adb VMs is not tested.
+const (
+ unix_CBAUD = 0
+ unix_CRTSCTS = 0
+ syscall_TCGETS = 0
+ syscall_TCSETS = 0
+)