aboutsummaryrefslogtreecommitdiff
path: root/libgo/syscalls
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-01-12 02:03:46 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-01-12 02:03:46 +0000
commitc3b5b97b64685cee2635d0dc61425a5add983a39 (patch)
tree7721836a180b18fc4931e7caa3818c3f5412471f /libgo/syscalls
parentae82f812b9c48bddc2149eef5e5e542deacd9b15 (diff)
downloadgcc-c3b5b97b64685cee2635d0dc61425a5add983a39.zip
gcc-c3b5b97b64685cee2635d0dc61425a5add983a39.tar.gz
gcc-c3b5b97b64685cee2635d0dc61425a5add983a39.tar.bz2
Simplify libgo Makefile conditionals.
From-SVN: r168696
Diffstat (limited to 'libgo/syscalls')
-rw-r--r--libgo/syscalls/syscall_linux_386.go2
-rw-r--r--libgo/syscalls/syscall_linux_amd64.go2
-rw-r--r--libgo/syscalls/syscall_rtems.go7
-rw-r--r--libgo/syscalls/syscall_rtems_386.go7
-rw-r--r--libgo/syscalls/syscall_rtems_amd64.go7
5 files changed, 21 insertions, 4 deletions
diff --git a/libgo/syscalls/syscall_linux_386.go b/libgo/syscalls/syscall_linux_386.go
index 05e93c4..aca9c7b 100644
--- a/libgo/syscalls/syscall_linux_386.go
+++ b/libgo/syscalls/syscall_linux_386.go
@@ -6,8 +6,6 @@
package syscall
-const ARCH = "386"
-
func (r *PtraceRegs) PC() uint64 {
return uint64(uint32(r.Eip));
}
diff --git a/libgo/syscalls/syscall_linux_amd64.go b/libgo/syscalls/syscall_linux_amd64.go
index a2ede00..9932579 100644
--- a/libgo/syscalls/syscall_linux_amd64.go
+++ b/libgo/syscalls/syscall_linux_amd64.go
@@ -6,8 +6,6 @@
package syscall
-const ARCH = "amd64"
-
func (r *PtraceRegs) PC() uint64 {
return r.Rip;
}
diff --git a/libgo/syscalls/syscall_rtems.go b/libgo/syscalls/syscall_rtems.go
new file mode 100644
index 0000000..7f0c119
--- /dev/null
+++ b/libgo/syscalls/syscall_rtems.go
@@ -0,0 +1,7 @@
+// syscall_rtems.go -- RTEMS specific syscall interface.
+
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package syscall
diff --git a/libgo/syscalls/syscall_rtems_386.go b/libgo/syscalls/syscall_rtems_386.go
new file mode 100644
index 0000000..a09c5ac
--- /dev/null
+++ b/libgo/syscalls/syscall_rtems_386.go
@@ -0,0 +1,7 @@
+// syscall_rtems_386.go -- RTEMS 386 specific syscall interface.
+
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package syscall
diff --git a/libgo/syscalls/syscall_rtems_amd64.go b/libgo/syscalls/syscall_rtems_amd64.go
new file mode 100644
index 0000000..941ea23
--- /dev/null
+++ b/libgo/syscalls/syscall_rtems_amd64.go
@@ -0,0 +1,7 @@
+// syscall_rtems_amd64.go -- RTEMS AMD64 specific syscall interface.
+
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package syscall