From c3b5b97b64685cee2635d0dc61425a5add983a39 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 12 Jan 2011 02:03:46 +0000 Subject: Simplify libgo Makefile conditionals. From-SVN: r168696 --- libgo/syscalls/syscall_linux_386.go | 2 -- libgo/syscalls/syscall_linux_amd64.go | 2 -- libgo/syscalls/syscall_rtems.go | 7 +++++++ libgo/syscalls/syscall_rtems_386.go | 7 +++++++ libgo/syscalls/syscall_rtems_amd64.go | 7 +++++++ 5 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 libgo/syscalls/syscall_rtems.go create mode 100644 libgo/syscalls/syscall_rtems_386.go create mode 100644 libgo/syscalls/syscall_rtems_amd64.go (limited to 'libgo/syscalls') 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 -- cgit v1.1