match the headers files in include/.
As a consequence, coregrind/$PLATFORM directories are no longer needed,
hooray!
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3814
coregrind/arm/Makefile
coregrind/x86/Makefile
coregrind/linux/Makefile
- coregrind/amd64-linux/Makefile
- coregrind/arm-linux/Makefile
- coregrind/x86-linux/Makefile
addrcheck/Makefile
addrcheck/tests/Makefile
addrcheck/docs/Makefile
## But when doing 'make dist', we are interested in every arch/OS/platform.
## That's what DIST_SUBDIRS specifies.
SUBDIRS = \
- $(VG_ARCH) $(VG_OS) $(VG_PLATFORM) \
+ $(VG_ARCH) $(VG_OS) \
$(MODULES) .
DIST_SUBDIRS = \
- $(VG_ARCH_ALL) $(VG_OS_ALL) $(VG_PLATFORM_ALL) \
+ $(VG_ARCH_ALL) $(VG_OS_ALL) \
$(MODULES) .
AM_CPPFLAGS += -DVG_LIBDIR="\"$(valdir)"\" \
pub_core_transtab_asm.h \
ume.h \
vg_symtab2.h \
- vg_symtypes.h
+ vg_symtypes.h \
+ vki_unistd.h \
+ vki_unistd-amd64-linux.h\
+ vki_unistd-arm-linux.h \
+ vki_unistd-x86-linux.h
EXTRA_DIST = \
valgrind.vs \
+++ /dev/null
-include $(top_srcdir)/Makefile.all.am
-include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
-
-noinst_HEADERS = \
- vki_unistd.h
+++ /dev/null
-include $(top_srcdir)/Makefile.all.am
-include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
-
-noinst_HEADERS = \
- vki_unistd.h
The GNU General Public License is contained in the file COPYING.
*/
-#ifndef __AMD64_LINUX_VKI_UNISTD_H_
-#define __AMD64_LINUX_VKI_UNISTD_H_
+#ifndef __VKI_UNISTD_AMD64_LINUX_H
+#define __VKI_UNISTD_AMD64_LINUX_H
// From linux-2.6.9/include/asm-x86_64/unistd.h
#define __NR_waitid 247
-#endif /* __AMD64_LINUX_VKI_UNISTD_H_ */
+#endif /* __VKI_UNISTD_AMD64_LINUX_H */
The GNU General Public License is contained in the file COPYING.
*/
-#ifndef __ARM_LINUX_VKI_UNISTD_H_
-#define __ARM_LINUX_VKI_UNISTD_H_
+#ifndef __VKI_UNISTD_ARM_LINUX_H
+#define __VKI_UNISTD_ARM_LINUX_H
// From linux-2.6.8.1/include/asm-arm/unistd.h
#define __NR_pciconfig_read (__NR_SYSCALL_BASE+272)
#define __NR_pciconfig_write (__NR_SYSCALL_BASE+273)
-#endif /* __ARM_LINUX_VKI_UNISTD_H_ */
+#endif /* __VKI_UNISTD_ARM_LINUX_H */
The GNU General Public License is contained in the file COPYING.
*/
-#ifndef __X86_LINUX_VKI_UNISTD_H_
-#define __X86_LINUX_VKI_UNISTD_H_
+#ifndef __VKI_UNISTD_X86_LINUX_H
+#define __VKI_UNISTD_X86_LINUX_H
// From linux-2.6.9/include/asm-i386/unistd.h
#define __NR_sys_kexec_load 283
#define __NR_wait 284
-#endif /* __X86_LINUX_VKI_UNISTD_H_ */
+#endif /* __VKI_UNISTD_X86_LINUX_H */
--- /dev/null
+
+/*--------------------------------------------------------------------*/
+/*--- Generic header for Valgrind's kernel interface. ---*/
+/*--- vki_unistd.h ---*/
+/*--------------------------------------------------------------------*/
+
+/*
+ This file is part of Valgrind, a dynamic binary instrumentation
+ framework.
+
+ Copyright (C) 2005 Nicholas Nethercote
+ njn@valgrind.org
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307, USA.
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
+#ifndef __VKI_UNISTD_H
+#define __VKI_UNISTD_H
+
+#if defined(VGP_x86_linux)
+# include "vki_unistd-x86-linux.h"
+#elif defined(VGP_amd64_linux)
+# include "vki_unistd-amd64-linux.h"
+#elif defined(VGP_arm_linux)
+# include "vki_unistd-arm-linux.h"
+#else
+# error Unknown platform
+#endif
+
+#endif // __VKI_UNISTD_H
+
+/*--------------------------------------------------------------------*/
+/*--- end ---*/
+/*--------------------------------------------------------------------*/
+++ /dev/null
-Makefile
-Makefile.in
+++ /dev/null
-include $(top_srcdir)/Makefile.all.am
-include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
-
-noinst_HEADERS = \
- vki_unistd.h
-#include "../../../coregrind/x86-linux/vki_unistd.h"
+#include "../../../coregrind/vki_unistd-x86-linux.h"
#include <assert.h>
#include <errno.h>