summaryrefslogtreecommitdiff
path: root/libgo/syscalls
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-12 02:03:46 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-12 02:03:46 +0000
commit7731bf71fc8c041403999d425fdd61591110fd6d (patch)
tree7721836a180b18fc4931e7caa3818c3f5412471f /libgo/syscalls
parentd0c8a42812ccc5e7dbe9872a4ae9b8822bc996bc (diff)
downloadgcc-7731bf71fc8c041403999d425fdd61591110fd6d.tar.gz
Simplify libgo Makefile conditionals.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168696 138bc75d-0d04-0410-961f-82ee72b054a4
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 05e93c4d8b8..aca9c7bf5ef 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 a2ede002954..9932579cc10 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 00000000000..7f0c1195443
--- /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 00000000000..a09c5ac9cfa
--- /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 00000000000..941ea236653
--- /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