rename amd64 architecture to x86_64
authorSimon Schubert <corecode@dragonflybsd.org>
Wed, 4 Nov 2009 16:22:28 +0000 (08:22 -0800)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 5 Nov 2009 21:48:50 +0000 (22:48 +0100)
The rest of the world seems to call amd64 x86_64.  Bite the bullet and
rename all of the architecture files and references.  This will
hopefully make pkgsrc builds less painful.

Discussed-with:  dillon@

319 files changed:
Makefile
Makefile.inc1
crypto/openssl/README.DRAGONFLY
etc/etc.x86_64/disktab [moved from etc/etc.amd64/disktab with 100% similarity]
etc/etc.x86_64/ttys [moved from etc/etc.amd64/ttys with 100% similarity]
gnu/lib/gcc41/libstdc++/Makefile
gnu/lib/gcc44/libstdc++/Makefile
gnu/lib/gcc44/libstdc++/config.h
gnu/usr.bin/binutils217/as/amd64-dragonfly/itbl-cpu.h [deleted file]
gnu/usr.bin/binutils217/as/amd64-dragonfly/obj-format.h [deleted file]
gnu/usr.bin/binutils217/as/amd64-dragonfly/targ-cpu.h [deleted file]
gnu/usr.bin/binutils217/as/amd64-dragonfly/targ-env.h [deleted file]
gnu/usr.bin/binutils217/as/x86_64-dragonfly/Makefile [moved from gnu/usr.bin/binutils217/as/amd64-dragonfly/Makefile with 68% similarity]
gnu/usr.bin/binutils217/as/x86_64-dragonfly/itbl-cpu.h [copied from gnu/usr.bin/binutils220/as/amd64-dragonfly/itbl-cpu.h with 100% similarity]
gnu/usr.bin/binutils217/as/x86_64-dragonfly/obj-format.h [copied from gnu/usr.bin/binutils220/as/amd64-dragonfly/obj-format.h with 100% similarity]
gnu/usr.bin/binutils217/as/x86_64-dragonfly/targ-cpu.h [copied from gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-cpu.h with 100% similarity]
gnu/usr.bin/binutils217/as/x86_64-dragonfly/targ-env.h [copied from gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-env.h with 100% similarity]
gnu/usr.bin/binutils217/ld/Makefile.x86_64 [moved from gnu/usr.bin/binutils217/ld/Makefile.amd64 with 90% similarity]
gnu/usr.bin/binutils217/libbfd/Makefile
gnu/usr.bin/binutils217/libbfd/Makefile.x86_64 [moved from gnu/usr.bin/binutils217/libbfd/Makefile.amd64 with 61% similarity]
gnu/usr.bin/binutils217/libopcodes/Makefile.amd64 [deleted file]
gnu/usr.bin/binutils217/libopcodes/Makefile.x86_64 [new file with mode: 0644]
gnu/usr.bin/binutils220/as/x86_64-dragonfly/Makefile [moved from gnu/usr.bin/binutils220/as/amd64-dragonfly/Makefile with 82% similarity]
gnu/usr.bin/binutils220/as/x86_64-dragonfly/itbl-cpu.h [moved from gnu/usr.bin/binutils220/as/amd64-dragonfly/itbl-cpu.h with 100% similarity]
gnu/usr.bin/binutils220/as/x86_64-dragonfly/obj-format.h [moved from gnu/usr.bin/binutils220/as/amd64-dragonfly/obj-format.h with 100% similarity]
gnu/usr.bin/binutils220/as/x86_64-dragonfly/targ-cpu.h [moved from gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-cpu.h with 100% similarity]
gnu/usr.bin/binutils220/as/x86_64-dragonfly/targ-env.h [moved from gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-env.h with 100% similarity]
gnu/usr.bin/binutils220/ld/Makefile.x86_64 [moved from gnu/usr.bin/binutils220/ld/Makefile.amd64 with 95% similarity]
gnu/usr.bin/binutils220/libbfd/Makefile.host.x86_64 [moved from gnu/usr.bin/binutils220/libbfd/Makefile.host.amd64 with 100% similarity]
gnu/usr.bin/binutils220/libbfd/Makefile.x86_64 [moved from gnu/usr.bin/binutils220/libbfd/Makefile.amd64 with 100% similarity]
gnu/usr.bin/binutils220/libbinutils/Makefile.x86_64 [moved from gnu/usr.bin/binutils220/libbinutils/Makefile.amd64 with 100% similarity]
gnu/usr.bin/binutils220/libopcodes/Makefile.x86_64 [moved from gnu/usr.bin/binutils220/libopcodes/Makefile.amd64 with 100% similarity]
gnu/usr.bin/cc41/Makefile.tgt
gnu/usr.bin/cc41/cc_prep/dragonfly-native.h
gnu/usr.bin/cc41/libiberty/config.h
gnu/usr.bin/cc44/Makefile.tgt
gnu/usr.bin/cc44/cc_prep/auto-host.h
gnu/usr.bin/cc44/gmp/Makefile.x86_64 [moved from gnu/usr.bin/cc44/gmp/Makefile.amd64 with 100% similarity]
gnu/usr.bin/cc44/gmp/gmp.h
gnu/usr.bin/cc44/libiberty/config.h
gnu/usr.bin/gdb/kgdb/trgt_x86_64.c [moved from gnu/usr.bin/gdb/kgdb/trgt_amd64.c with 100% similarity]
gnu/usr.bin/gdb/libbfd/Makefile.host.x86_64 [moved from gnu/usr.bin/gdb/libbfd/Makefile.host.amd64 with 100% similarity]
gnu/usr.bin/gdb/libbfd/Makefile.x86_64 [moved from gnu/usr.bin/gdb/libbfd/Makefile.amd64 with 100% similarity]
gnu/usr.bin/gdb/libbfd/config.h
gnu/usr.bin/gdb/libgdb/Makefile.x86_64 [moved from gnu/usr.bin/gdb/libgdb/Makefile.amd64 with 100% similarity]
gnu/usr.bin/gdb/libgdb/freebsd-uthread.c
gnu/usr.bin/gdb/libopcodes/Makefile.x86_64 [moved from gnu/usr.bin/gdb/libopcodes/Makefile.amd64 with 100% similarity]
lib/csu/x86_64/Makefile.csu [moved from lib/csu/amd64/Makefile.csu with 79% similarity]
lib/csu/x86_64/crt1.c [moved from lib/csu/amd64/crt1.c with 94% similarity]
lib/csu/x86_64/crti.S [moved from lib/csu/amd64/crti.S with 90% similarity]
lib/csu/x86_64/crtn.S [moved from lib/csu/amd64/crtn.S with 90% similarity]
lib/libc/Makefile.inc
lib/libc/gen/nlist.c
lib/libc/gmon/gmon.c
lib/libc/x86_64/Makefile.inc [moved from lib/libc/amd64/Makefile.inc with 51% similarity]
lib/libc/x86_64/SYS.h [moved from lib/libc/amd64/SYS.h with 97% similarity]
lib/libc/x86_64/_fpmath.h [moved from lib/libc/amd64/_fpmath.h with 96% similarity]
lib/libc/x86_64/arith.h [moved from lib/libc/amd64/arith.h with 86% similarity]
lib/libc/x86_64/gd_qnan.h [moved from lib/libc/amd64/gd_qnan.h with 100% similarity]
lib/libc/x86_64/gen/Makefile.inc [moved from lib/libc/amd64/gen/Makefile.inc with 81% similarity]
lib/libc/x86_64/gen/_setjmp.S [moved from lib/libc/amd64/gen/_setjmp.S with 97% similarity]
lib/libc/x86_64/gen/fabs.S [moved from lib/libc/amd64/gen/fabs.S with 95% similarity]
lib/libc/x86_64/gen/flt_rounds.c [moved from lib/libc/amd64/gen/flt_rounds.c with 82% similarity]
lib/libc/x86_64/gen/fpclassifyl.c [moved from lib/libc/amd64/gen/fpclassifyl.c with 96% similarity]
lib/libc/x86_64/gen/fpgetmask.S [moved from lib/libc/amd64/gen/fpgetmask.S with 84% similarity]
lib/libc/x86_64/gen/fpgetround.S [moved from lib/libc/amd64/gen/fpgetround.S with 83% similarity]
lib/libc/x86_64/gen/fpgetsticky.S [moved from lib/libc/amd64/gen/fpgetsticky.S with 84% similarity]
lib/libc/x86_64/gen/fpsetmask.S [moved from lib/libc/amd64/gen/fpsetmask.S with 89% similarity]
lib/libc/x86_64/gen/fpsetround.S [moved from lib/libc/amd64/gen/fpsetround.S with 89% similarity]
lib/libc/x86_64/gen/fpsetsticky.S [moved from lib/libc/amd64/gen/fpsetsticky.S with 89% similarity]
lib/libc/x86_64/gen/infinityl.c [moved from lib/libc/amd64/gen/infinityl.c with 77% similarity]
lib/libc/x86_64/gen/isfinitel.c [moved from lib/libc/amd64/gen/isfinitel.c with 96% similarity]
lib/libc/x86_64/gen/isinfl.c [moved from lib/libc/amd64/gen/isinfl.c with 96% similarity]
lib/libc/x86_64/gen/isnanl.c [moved from lib/libc/amd64/gen/isnanl.c with 96% similarity]
lib/libc/x86_64/gen/ldexp.c [moved from lib/libc/amd64/gen/ldexp.c with 96% similarity]
lib/libc/x86_64/gen/mcontext.S [moved from lib/libc/amd64/gen/mcontext.S with 97% similarity]
lib/libc/x86_64/gen/modf.S [moved from lib/libc/amd64/gen/modf.S with 96% similarity]
lib/libc/x86_64/gen/nanf.c [moved from lib/libc/amd64/gen/nanf.c with 66% similarity]
lib/libc/x86_64/gen/rfork_thread.S [moved from lib/libc/amd64/gen/rfork_thread.S with 96% similarity]
lib/libc/x86_64/gen/setjmp.S [moved from lib/libc/amd64/gen/setjmp.S with 97% similarity]
lib/libc/x86_64/gen/signbitl.c [moved from lib/libc/amd64/gen/signbitl.c with 96% similarity]
lib/libc/x86_64/gen/sigsetjmp.S [moved from lib/libc/amd64/gen/sigsetjmp.S with 97% similarity]
lib/libc/x86_64/stdlib/Makefile.inc [moved from lib/libc/amd64/stdlib/Makefile.inc with 100% similarity]
lib/libc/x86_64/stdlib/div.S [moved from lib/libc/amd64/stdlib/div.S with 100% similarity]
lib/libc/x86_64/stdlib/ldiv.S [moved from lib/libc/amd64/stdlib/ldiv.S with 100% similarity]
lib/libc/x86_64/stdlib/lldiv.S [moved from lib/libc/amd64/stdlib/lldiv.S with 100% similarity]
lib/libc/x86_64/string/Makefile.inc [moved from lib/libc/amd64/string/Makefile.inc with 100% similarity]
lib/libc/x86_64/string/bcmp.S [moved from lib/libc/amd64/string/bcmp.S with 100% similarity]
lib/libc/x86_64/string/bcopy.S [moved from lib/libc/amd64/string/bcopy.S with 100% similarity]
lib/libc/x86_64/string/bzero.S [moved from lib/libc/amd64/string/bzero.S with 100% similarity]
lib/libc/x86_64/string/memcmp.S [moved from lib/libc/amd64/string/memcmp.S with 100% similarity]
lib/libc/x86_64/string/memcpy.S [moved from lib/libc/amd64/string/memcpy.S with 100% similarity]
lib/libc/x86_64/string/memmove.S [moved from lib/libc/amd64/string/memmove.S with 100% similarity]
lib/libc/x86_64/string/memset.S [moved from lib/libc/amd64/string/memset.S with 100% similarity]
lib/libc/x86_64/string/strcat.S [moved from lib/libc/amd64/string/strcat.S with 100% similarity]
lib/libc/x86_64/string/strcmp.S [moved from lib/libc/amd64/string/strcmp.S with 100% similarity]
lib/libc/x86_64/string/strcpy.S [moved from lib/libc/amd64/string/strcpy.S with 100% similarity]
lib/libc/x86_64/sys/Makefile.inc [moved from lib/libc/amd64/sys/Makefile.inc with 90% similarity]
lib/libc/x86_64/sys/amd64_get_fsbase.c [moved from lib/libc/amd64/sys/amd64_get_fsbase.c with 94% similarity]
lib/libc/x86_64/sys/amd64_get_gsbase.c [moved from lib/libc/amd64/sys/amd64_get_gsbase.c with 94% similarity]
lib/libc/x86_64/sys/amd64_set_fsbase.c [moved from lib/libc/amd64/sys/amd64_set_fsbase.c with 94% similarity]
lib/libc/x86_64/sys/amd64_set_gsbase.c [moved from lib/libc/amd64/sys/amd64_set_gsbase.c with 94% similarity]
lib/libc/x86_64/sys/asmcontext.c [moved from lib/libc/amd64/sys/asmcontext.c with 93% similarity]
lib/libc/x86_64/sys/brk.S [moved from lib/libc/amd64/sys/brk.S with 96% similarity]
lib/libc/x86_64/sys/cerror.S [moved from lib/libc/amd64/sys/cerror.S with 96% similarity]
lib/libc/x86_64/sys/exect.S [moved from lib/libc/amd64/sys/exect.S with 96% similarity]
lib/libc/x86_64/sys/pipe.S [moved from lib/libc/amd64/sys/pipe.S with 96% similarity]
lib/libc/x86_64/sys/ptrace.S [moved from lib/libc/amd64/sys/ptrace.S with 96% similarity]
lib/libc/x86_64/sys/reboot.S [moved from lib/libc/amd64/sys/reboot.S with 96% similarity]
lib/libc/x86_64/sys/sbrk.S [moved from lib/libc/amd64/sys/sbrk.S with 96% similarity]
lib/libc/x86_64/sys/setlogin.S [moved from lib/libc/amd64/sys/setlogin.S with 96% similarity]
lib/libc/x86_64/sys/sigreturn.S [moved from lib/libc/amd64/sys/sigreturn.S with 95% similarity]
lib/libc/x86_64/sys/vfork.S [moved from lib/libc/amd64/sys/vfork.S with 96% similarity]
lib/libc/xdr/xdr_float.c
lib/libc_r/arch/x86_64/_atomic_lock.S [moved from lib/libc_r/arch/amd64/_atomic_lock.S with 93% similarity]
lib/libc_r/uthread/pthread_private.h
lib/libkvm/kvm_x86_64.c [moved from lib/libkvm/kvm_amd64.c with 96% similarity]
lib/libm/arch/i386/Makefile.inc
lib/libm/arch/x86_64/Makefile.inc [moved from lib/libm/arch/amd64/Makefile.inc with 71% similarity]
lib/libm/arch/x86_64/fenv.c [moved from lib/libm/arch/amd64/fenv.c with 100% similarity]
lib/libm/arch/x86_64/fenv.h [moved from lib/libm/arch/amd64/fenv.h with 100% similarity]
lib/libstand/Makefile
lib/libthread_xu/arch/x86_64/Makefile.inc [moved from lib/libthread_xu/arch/amd64/Makefile.inc with 50% similarity]
lib/libthread_xu/arch/x86_64/include/pthread_md.h [moved from lib/libthread_xu/arch/amd64/include/pthread_md.h with 94% similarity]
lib/libthread_xu/arch/x86_64/x86_64/_umtx_sleep_wakeup_err.S [moved from lib/libthread_xu/arch/amd64/amd64/_umtx_sleep_wakeup_err.S with 100% similarity]
lib/libthread_xu/arch/x86_64/x86_64/pthread_md.c [moved from lib/libthread_xu/arch/amd64/amd64/pthread_md.c with 94% similarity]
libexec/rtld-elf/x86_64/Makefile.inc [moved from libexec/rtld-elf/amd64/Makefile.inc with 64% similarity]
libexec/rtld-elf/x86_64/lockdflt.c [moved from libexec/rtld-elf/amd64/lockdflt.c with 98% similarity]
libexec/rtld-elf/x86_64/reloc.c [moved from libexec/rtld-elf/amd64/reloc.c with 99% similarity]
libexec/rtld-elf/x86_64/rtld_machdep.h [moved from libexec/rtld-elf/amd64/rtld_machdep.h with 96% similarity]
libexec/rtld-elf/x86_64/rtld_start.S [moved from libexec/rtld-elf/amd64/rtld_start.S with 97% similarity]
nrelease/Makefile
sbin/Makefile
sbin/gpt/migrate.c
secure/lib/libcrypto/opensslconf-x86_64.h [moved from secure/lib/libcrypto/opensslconf-amd64.h with 100% similarity]
share/man/man3/fpgetround.3
share/man/man4/acpi.4
share/man/man5/kernconf.5
share/man/man7/build.7
share/mk/bsd.cpu.custom.mk
share/mk/bsd.cpu.gcc41.mk
share/mk/bsd.cpu.gcc44.mk
share/mk/sys.mk
sys/boot/Makefile
sys/boot/common/Makefile.inc
sys/boot/common/reloc_elf.c
sys/boot/ficl/Makefile
sys/boot/pc32/Makefile.inc
sys/boot/pc32/boot2/Makefile
sys/boot/pc32/libi386/Makefile
sys/boot/pc32/libi386/elf64_freebsd.c
sys/boot/pc32/libi386/x86_64_tramp.S [moved from sys/boot/pc32/libi386/amd64_tramp.S with 95% similarity]
sys/boot/pc32/loader/conf.c
sys/boot/pc64/Makefile.inc
sys/bus/isa/isa.h
sys/bus/isa/isa_compat.h
sys/bus/isa/isa_device.h
sys/bus/isa/x86_64/isa.c [moved from sys/bus/isa/amd64/isa.c with 98% similarity]
sys/bus/isa/x86_64/isa.h [moved from sys/bus/isa/amd64/isa.h with 98% similarity]
sys/bus/isa/x86_64/isa_compat.c [moved from sys/bus/isa/amd64/isa_compat.c with 98% similarity]
sys/bus/isa/x86_64/isa_compat.h [moved from sys/bus/isa/amd64/isa_compat.h with 97% similarity]
sys/bus/isa/x86_64/isa_device.h [moved from sys/bus/isa/amd64/isa_device.h with 97% similarity]
sys/bus/isa/x86_64/isa_dma.c [moved from sys/bus/isa/amd64/isa_dma.c with 99% similarity]
sys/bus/pci/pci.c
sys/bus/pci/pci_cfgreg.h
sys/bus/pci/pcibus.h
sys/bus/pci/x86_64/legacy.c [moved from sys/bus/pci/amd64/legacy.c with 100% similarity]
sys/bus/pci/x86_64/legacyvar.h [moved from sys/bus/pci/amd64/legacyvar.h with 100% similarity]
sys/bus/pci/x86_64/mptable_pci.c [moved from sys/bus/pci/amd64/mptable_pci.c with 100% similarity]
sys/bus/pci/x86_64/pci_bus.c [moved from sys/bus/pci/amd64/pci_bus.c with 100% similarity]
sys/bus/pci/x86_64/pci_cfgreg.c [moved from sys/bus/pci/amd64/pci_cfgreg.c with 100% similarity]
sys/bus/pci/x86_64/pci_cfgreg.h [moved from sys/bus/pci/amd64/pci_cfgreg.h with 100% similarity]
sys/bus/pci/x86_64/pci_pir.c [moved from sys/bus/pci/amd64/pci_pir.c with 100% similarity]
sys/bus/pci/x86_64/pcibus.h [moved from sys/bus/pci/amd64/pcibus.h with 100% similarity]
sys/conf/files
sys/conf/kmod.mk
sys/config/JG64
sys/config/X86_64_GENERIC [moved from sys/config/AMD64_GENERIC with 98% similarity]
sys/cpu/i386/include/elf.h
sys/cpu/i386/include/ieee.h
sys/cpu/x86_64/include/asm.h [moved from sys/cpu/amd64/include/asm.h with 97% similarity]
sys/cpu/x86_64/include/asmacros.h [moved from sys/cpu/amd64/include/asmacros.h with 98% similarity]
sys/cpu/x86_64/include/atomic.h [moved from sys/cpu/amd64/include/atomic.h with 100% similarity]
sys/cpu/x86_64/include/bus_dma.h [moved from sys/cpu/amd64/include/bus_dma.h with 96% similarity]
sys/cpu/x86_64/include/coredump.h [moved from sys/cpu/amd64/include/coredump.h with 65% similarity]
sys/cpu/x86_64/include/cpu.h [moved from sys/cpu/amd64/include/cpu.h with 99% similarity]
sys/cpu/x86_64/include/cpufunc.h [moved from sys/cpu/amd64/include/cpufunc.h with 99% similarity]
sys/cpu/x86_64/include/cputypes.h [moved from sys/cpu/amd64/include/cputypes.h with 96% similarity]
sys/cpu/x86_64/include/db_machdep.h [moved from sys/cpu/amd64/include/db_machdep.h with 94% similarity]
sys/cpu/x86_64/include/elf.h [moved from sys/cpu/amd64/include/elf.h with 97% similarity]
sys/cpu/x86_64/include/endian.h [moved from sys/cpu/amd64/include/endian.h with 98% similarity]
sys/cpu/x86_64/include/exec.h [moved from sys/cpu/amd64/include/exec.h with 95% similarity]
sys/cpu/x86_64/include/float.h [moved from sys/cpu/amd64/include/float.h with 97% similarity]
sys/cpu/x86_64/include/floatingpoint.h [moved from sys/cpu/amd64/include/floatingpoint.h with 100% similarity]
sys/cpu/x86_64/include/frame.h [moved from sys/cpu/amd64/include/frame.h with 97% similarity]
sys/cpu/x86_64/include/ieee.h [moved from sys/cpu/amd64/include/ieee.h with 96% similarity]
sys/cpu/x86_64/include/ieeefp.h [moved from sys/cpu/amd64/include/ieeefp.h with 98% similarity]
sys/cpu/x86_64/include/int_const.h [moved from sys/cpu/amd64/include/int_const.h with 100% similarity]
sys/cpu/x86_64/include/int_limits.h [moved from sys/cpu/amd64/include/int_limits.h with 100% similarity]
sys/cpu/x86_64/include/inttypes.h [moved from sys/cpu/amd64/include/inttypes.h with 96% similarity]
sys/cpu/x86_64/include/limits.h [moved from sys/cpu/amd64/include/limits.h with 97% similarity]
sys/cpu/x86_64/include/math.h [moved from sys/cpu/amd64/include/math.h with 76% similarity]
sys/cpu/x86_64/include/npx.h [moved from sys/cpu/amd64/include/npx.h with 95% similarity]
sys/cpu/x86_64/include/param.h [moved from sys/cpu/amd64/include/param.h with 96% similarity]
sys/cpu/x86_64/include/pmap.h [moved from sys/cpu/amd64/include/pmap.h with 97% similarity]
sys/cpu/x86_64/include/profile.h [moved from sys/cpu/amd64/include/profile.h with 98% similarity]
sys/cpu/x86_64/include/psl.h [moved from sys/cpu/amd64/include/psl.h with 97% similarity]
sys/cpu/x86_64/include/reg.h [moved from sys/cpu/amd64/include/reg.h with 97% similarity]
sys/cpu/x86_64/include/reloc.h [moved from sys/cpu/amd64/include/reloc.h with 96% similarity]
sys/cpu/x86_64/include/segments.h [moved from sys/cpu/amd64/include/segments.h with 98% similarity]
sys/cpu/x86_64/include/setjmp.h [moved from sys/cpu/amd64/include/setjmp.h with 94% similarity]
sys/cpu/x86_64/include/sigframe.h [moved from sys/cpu/amd64/include/sigframe.h with 95% similarity]
sys/cpu/x86_64/include/signal.h [moved from sys/cpu/amd64/include/signal.h with 98% similarity]
sys/cpu/x86_64/include/specialreg.h [moved from sys/cpu/amd64/include/specialreg.h with 98% similarity]
sys/cpu/x86_64/include/stdarg.h [moved from sys/cpu/amd64/include/stdarg.h with 97% similarity]
sys/cpu/x86_64/include/stdint.h [moved from sys/cpu/amd64/include/stdint.h with 97% similarity]
sys/cpu/x86_64/include/sysarch.h [moved from sys/cpu/amd64/include/sysarch.h with 94% similarity]
sys/cpu/x86_64/include/tls.h [moved from sys/cpu/amd64/include/tls.h with 97% similarity]
sys/cpu/x86_64/include/trap.h [moved from sys/cpu/amd64/include/trap.h with 98% similarity]
sys/cpu/x86_64/include/tss.h [moved from sys/cpu/amd64/include/tss.h with 96% similarity]
sys/cpu/x86_64/include/types.h [moved from sys/cpu/amd64/include/types.h with 96% similarity]
sys/cpu/x86_64/include/ucontext.h [moved from sys/cpu/amd64/include/ucontext.h with 97% similarity]
sys/cpu/x86_64/include/varargs.h [moved from sys/cpu/amd64/include/varargs.h with 97% similarity]
sys/cpu/x86_64/include/vframe.h [moved from sys/cpu/amd64/include/vframe.h with 95% similarity]
sys/cpu/x86_64/misc/x86_64-gdbstub.c [moved from sys/cpu/amd64/misc/amd64-gdbstub.c with 99% similarity]
sys/crypto/via/padlock.c
sys/crypto/via/padlock_hash.c
sys/ddb/db_kld.c
sys/ddb/db_run.c
sys/dev/acpica5/Makefile
sys/dev/acpica5/Osd/OsdHardware.c
sys/dev/acpica5/acpi_timer.c
sys/dev/agp/Makefile
sys/dev/agp/agp.c
sys/dev/agp/agp_x86_64.c [moved from sys/dev/agp/agp_amd64.c with 100% similarity]
sys/dev/disk/mpt/mpt_user.c
sys/dev/disk/sym/sym_hipd.c
sys/dev/drm/drmP.h
sys/dev/misc/syscons/syscons.c
sys/dev/netif/bce/if_bcereg.h
sys/dev/netif/mxge/if_mxge.c
sys/dev/serial/sio/sio.c
sys/dev/video/fb/fbreg.h
sys/dev/video/fb/vga.c
sys/dev/video/x86_64/Makefile [moved from sys/dev/video/amd64/Makefile with 100% similarity]
sys/emulation/Makefile
sys/emulation/ndis/hal_var.h
sys/emulation/ndis/regcall.h
sys/kern/kern_memio.c
sys/kern/link_elf_obj.c
sys/kern/lwkt_ipiq.c
sys/kern/lwkt_thread.c
sys/kern/vfs_vnops.c
sys/platform/pc64/conf/files
sys/platform/pc64/conf/kern.mk
sys/platform/pc64/conf/ldscript.x86_64 [moved from sys/platform/pc64/conf/ldscript.amd64 with 98% similarity]
sys/platform/pc64/conf/options
sys/platform/pc64/include/globaldata.h
sys/platform/pc64/include/pcb.h
sys/platform/pc64/include/pcb_ext.h
sys/platform/pc64/include/vmparam.h
sys/platform/pc64/x86_64/atomic.c [moved from sys/platform/pc64/amd64/atomic.c with 95% similarity]
sys/platform/pc64/x86_64/autoconf.c [moved from sys/platform/pc64/amd64/autoconf.c with 99% similarity]
sys/platform/pc64/x86_64/busdma_machdep.c [moved from sys/platform/pc64/amd64/busdma_machdep.c with 100% similarity]
sys/platform/pc64/x86_64/console.c [moved from sys/platform/pc64/amd64/console.c with 95% similarity]
sys/platform/pc64/x86_64/cpufreq_machdep.c [moved from sys/platform/pc64/amd64/cpufreq_machdep.c with 100% similarity]
sys/platform/pc64/x86_64/db_disasm.c [moved from sys/platform/pc64/amd64/db_disasm.c with 99% similarity]
sys/platform/pc64/x86_64/db_interface.c [moved from sys/platform/pc64/amd64/db_interface.c with 98% similarity]
sys/platform/pc64/x86_64/db_trace.c [moved from sys/platform/pc64/amd64/db_trace.c with 92% similarity]
sys/platform/pc64/x86_64/elf_machdep.c [moved from sys/platform/pc64/amd64/elf_machdep.c with 97% similarity]
sys/platform/pc64/x86_64/est.c [moved from sys/platform/pc64/amd64/est.c with 100% similarity]
sys/platform/pc64/x86_64/exception.S [moved from sys/platform/pc64/amd64/exception.S with 98% similarity]
sys/platform/pc64/x86_64/genassym.c [moved from sys/platform/pc64/amd64/genassym.c with 98% similarity]
sys/platform/pc64/x86_64/global.s [moved from sys/platform/pc64/amd64/global.s with 97% similarity]
sys/platform/pc64/x86_64/globaldata.c [moved from sys/platform/pc64/amd64/globaldata.c with 95% similarity]
sys/platform/pc64/x86_64/identcpu.c [moved from sys/platform/pc64/amd64/identcpu.c with 98% similarity]
sys/platform/pc64/x86_64/in_cksum2.s [moved from sys/platform/pc64/amd64/in_cksum2.s with 96% similarity]
sys/platform/pc64/x86_64/init.c [moved from sys/platform/pc64/amd64/init.c with 97% similarity]
sys/platform/pc64/x86_64/initcpu.c [moved from sys/platform/pc64/amd64/initcpu.c with 96% similarity]
sys/platform/pc64/x86_64/ipl.s [moved from sys/platform/pc64/amd64/ipl.s with 98% similarity]
sys/platform/pc64/x86_64/ipl_funcs.c [moved from sys/platform/pc64/amd64/ipl_funcs.c with 97% similarity]
sys/platform/pc64/x86_64/ktr.c [moved from sys/platform/pc64/amd64/ktr.c with 97% similarity]
sys/platform/pc64/x86_64/locore.s [moved from sys/platform/pc64/amd64/locore.s with 97% similarity]
sys/platform/pc64/x86_64/machdep.c [moved from sys/platform/pc64/amd64/machdep.c with 99% similarity]
sys/platform/pc64/x86_64/mp_machdep.c [moved from sys/platform/pc64/amd64/mp_machdep.c with 99% similarity]
sys/platform/pc64/x86_64/mpboot.S [moved from sys/platform/pc64/amd64/mpboot.S with 100% similarity]
sys/platform/pc64/x86_64/mplock.s [moved from sys/platform/pc64/amd64/mplock.s with 100% similarity]
sys/platform/pc64/x86_64/nexus.c [moved from sys/platform/pc64/amd64/nexus.c with 99% similarity]
sys/platform/pc64/x86_64/npx.c [moved from sys/platform/pc64/amd64/npx.c with 99% similarity]
sys/platform/pc64/x86_64/pmap.c [moved from sys/platform/pc64/amd64/pmap.c with 99% similarity]
sys/platform/pc64/x86_64/pmap_inval.c [moved from sys/platform/pc64/amd64/pmap_inval.c with 97% similarity]
sys/platform/pc64/x86_64/procfs_machdep.c [moved from sys/platform/pc64/amd64/procfs_machdep.c with 97% similarity]
sys/platform/pc64/x86_64/sigtramp.s [moved from sys/platform/pc64/amd64/sigtramp.s with 95% similarity]
sys/platform/pc64/x86_64/spinlock.s [moved from sys/platform/pc64/amd64/spinlock.s with 97% similarity]
sys/platform/pc64/x86_64/support.s [moved from sys/platform/pc64/amd64/support.s with 98% similarity]
sys/platform/pc64/x86_64/swtch.s [moved from sys/platform/pc64/amd64/swtch.s with 99% similarity]
sys/platform/pc64/x86_64/sysarch.c [moved from sys/platform/pc64/amd64/sysarch.c with 95% similarity]
sys/platform/pc64/x86_64/systimer.c [moved from sys/platform/pc64/amd64/systimer.c with 96% similarity]
sys/platform/pc64/x86_64/tls.c [moved from sys/platform/pc64/amd64/tls.c with 95% similarity]
sys/platform/pc64/x86_64/trap.c [moved from sys/platform/pc64/amd64/trap.c with 99% similarity]
sys/platform/pc64/x86_64/userldt.c [moved from sys/platform/pc64/amd64/userldt.c with 95% similarity]
sys/platform/pc64/x86_64/vm_machdep.c [moved from sys/platform/pc64/amd64/vm_machdep.c with 98% similarity]
sys/sys/disklabel32.h
sys/sys/mpt_ioctl.h
sys/sys/systm.h
sys/sys/tls.h
sys/vm/vm_page.c
sys/vm/vm_page.h
test/sysperf/memcpy.S
test/x86_64/Makefile [moved from test/amd64/Makefile with 92% similarity]
test/x86_64/qemu.patch [moved from test/amd64/qemu.patch with 100% similarity]
usr.bin/gprof/gprof.h
usr.bin/gprof/x86_64.h [moved from usr.bin/gprof/amd64.h with 96% similarity]
usr.bin/mandoc/arch.in
usr.bin/mandoc/mdoc.7
usr.bin/xlint/lint1/param.h
usr.sbin/Makefile
usr.sbin/mergemaster/mergemaster.sh
usr.sbin/pppd/main.c

index 6cbffba..6a286bc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,7 @@
 #
 # See src/UPDATING `COMMON ITEMS' for more complete information.
 #
-# If TARGET_ARCH=arch (e.g. amd64) is specified you can
+# If TARGET_ARCH=arch (e.g. x86_64) is specified you can
 # cross build world for other architectures using the buildworld target,
 # and once the world is built you can cross build a kernel using the
 # buildkernel target.
index 34e2250..dd0f629 100644 (file)
@@ -123,6 +123,12 @@ DESTDIRBASE?=              ${OBJTREE}${.CURDIR}
 WORLD_CCVER?=  gcc41
 WORLD_BINUTILSVER?=    binutils217
 
+# temporary until everybody has converted to x86_64
+.if ${MACHINE_ARCH} == "amd64"
+MACHINE_ARCH=  x86_64
+.makeenv MACHINE_ARCH
+.endif
+
 TARGET_ARCH?=  ${MACHINE_ARCH}
 .if ${TARGET_ARCH} == ${MACHINE_ARCH}
 TARGET?=       ${MACHINE}
@@ -131,6 +137,12 @@ TARGET?=   ${TARGET_ARCH}
 .endif
 .if make(buildworld)
 BUILD_ARCH!=   sysctl -n hw.machine_arch
+
+# temporary until everybody has converted to x86_64
+.if ${BUILD_ARCH} == "amd64"
+BUILD_ARCH=    x86_64
+.endif
+
 .if ${MACHINE_ARCH} != ${BUILD_ARCH}
 .error To cross-build, set TARGET_ARCH.
 .endif
@@ -147,7 +159,7 @@ MACHINE_PLATFORM= pc32
 .if !defined(TARGET_PLATFORM)
 .if ${TARGET_ARCH} == "i386"
 TARGET_PLATFORM= pc32
-.elif ${TARGET_ARCH} == "amd64"
+.elif ${TARGET_ARCH} == "x86_64"
 TARGET_PLATFORM= pc64
 .else
 .error Unknown target architecture.
@@ -494,7 +506,7 @@ KERNWARN=   yes
 .if ${TARGET_ARCH} == "i386"
 KERNCONF?=     GENERIC
 .else
-KERNCONF?=     AMD64_GENERIC
+KERNCONF?=     X86_64_GENERIC
 .endif
 .endif
 INSTKERNNAME?= kernel
index 36836ee..96942a0 100644 (file)
@@ -5,7 +5,7 @@ Here's some hints to upgrading:
 ./Configure shared no-asm --prefix=/usr --openssldir=/etc/ssl BSD-x86-elf
 cp crypto/opensslconf.h ../../secure/lib/libcrypto/opensslconf-i386.h
 ./Configure shared no-asm --prefix=/usr --openssldir=/etc/ssl BSD-x86_64
-cp crypto/opensslconf.h ../../secure/lib/libcrypto/opensslconf-amd64.h
+cp crypto/opensslconf.h ../../secure/lib/libcrypto/opensslconf-x86_64.h
 cd ../../secure/lib/libcrypto
 # Update the version in Makefile.inc
 # Add DragonFly keywords to opensslconf-*.h
similarity index 100%
rename from etc/etc.amd64/disktab
rename to etc/etc.x86_64/disktab
similarity index 100%
rename from etc/etc.amd64/ttys
rename to etc/etc.x86_64/ttys
index bafe045..24ece1d 100644 (file)
@@ -4,7 +4,7 @@
 
 .if ${MACHINE_ARCH} == "i386" && !empty(MACHINE_CPU:Mi486)
 MARCHDIR=      i486
-.elif ${MACHINE_ARCH} == "amd64"
+.elif ${MACHINE_ARCH} == "x86_64"
 MARCHDIR=      i486
 .else
 MARCHDIR=      ${MACHINE_ARCH}
index 87d91a9..fdf5403 100644 (file)
@@ -2,7 +2,7 @@
 
 .if ${MACHINE_ARCH} == "i386" && !empty(MACHINE_CPU:Mi486)
 MARCHDIR=      i486
-.elif ${MACHINE_ARCH} == "amd64"
+.elif ${MACHINE_ARCH} == "x86_64"
 MARCHDIR=      i486
 .else
 MARCHDIR=      ${MACHINE_ARCH}
index d43bdca..5c0cb06 100644 (file)
 
 /* Define if int64_t is a long long. */
 #define HAVE_INT64_T_LONG_LONG 1
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
 /* Define if int64_t is a long. */
 #define HAVE_INT64_T_LONG 1
 
diff --git a/gnu/usr.bin/binutils217/as/amd64-dragonfly/itbl-cpu.h b/gnu/usr.bin/binutils217/as/amd64-dragonfly/itbl-cpu.h
deleted file mode 100644 (file)
index eb88bb1..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
- * $DragonFly: src/gnu/usr.bin/binutils217/as/amd64-dragonfly/itbl-cpu.h,v 1.1 2007/04/13 12:24:32 corecode Exp $
- */
-
-#include "itbl-i386.h"
diff --git a/gnu/usr.bin/binutils217/as/amd64-dragonfly/obj-format.h b/gnu/usr.bin/binutils217/as/amd64-dragonfly/obj-format.h
deleted file mode 100644 (file)
index d4ad9fa..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/*
- * $DragonFly: src/gnu/usr.bin/binutils217/as/amd64-dragonfly/obj-format.h,v 1.1 2007/04/13 12:24:32 corecode Exp $
- */
-#include "obj-elf.h"
diff --git a/gnu/usr.bin/binutils217/as/amd64-dragonfly/targ-cpu.h b/gnu/usr.bin/binutils217/as/amd64-dragonfly/targ-cpu.h
deleted file mode 100644 (file)
index c1ffb83..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
- * $DragonFly: src/gnu/usr.bin/binutils217/as/amd64-dragonfly/targ-cpu.h,v 1.1 2007/04/13 12:24:32 corecode Exp $
- */
-
-#include "tc-i386.h"
diff --git a/gnu/usr.bin/binutils217/as/amd64-dragonfly/targ-env.h b/gnu/usr.bin/binutils217/as/amd64-dragonfly/targ-env.h
deleted file mode 100644 (file)
index e4346ea..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- * Default target format spec for the assembler
- *
- * $DragonFly: src/gnu/usr.bin/binutils217/as/amd64-dragonfly/targ-env.h,v 1.1 2007/04/13 12:24:32 corecode Exp $
- */
-
-#define LOCAL_LABELS_DOLLAR 1
-#define LOCAL_LABELS_FB 1
-
-#include "obj-format.h"
-
@@ -1,5 +1,3 @@
-# $DragonFly: src/gnu/usr.bin/binutils217/as/amd64-dragonfly/Makefile,v 1.1 2007/04/13 12:24:32 corecode Exp $
-
 DEFAULT_ARCH=           x86_64 
 EMULATIONS=             &i386elf,
 DEFAULT_EMULATION=      i386elf 
@@ -10,8 +8,8 @@ TARGET_CPU=             x86_64
 .include "${.CURDIR}/../Makefile.inc0"
 
 CFLAGS += -I${.OBJDIR}/../../libbfd
-.if ${TARGET_ARCH} != "amd64"
-BINDIR=        /usr/libexec/cross/amd64-dragonfly
+.if ${TARGET_ARCH} != "x86_64"
+BINDIR=        /usr/libexec/cross/x86_64-dragonfly
 .endif
 SRCS+= obj-elf.c tc-i386-local.c
 CLEANFILES=    tc-i386-local.c
similarity index 90%
rename from gnu/usr.bin/binutils217/ld/Makefile.amd64
rename to gnu/usr.bin/binutils217/ld/Makefile.x86_64
index eec3067..4e652a0 100644 (file)
@@ -1,12 +1,10 @@
-# $DragonFly: src/gnu/usr.bin/binutils217/ld/Makefile.amd64,v 1.1 2007/04/13 12:24:32 corecode Exp $
-
 TARGET_TUPLE?= x86_64-just-dragonfly
 
 NATIVE_EMULATION=      elf_x86_64
 HOST=  ${TARGET_TUPLE}
 CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
 CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
-_amd64_path=   ${USRDATA_PREFIX}/usr/lib
+_x86_64_path=  ${USRDATA_PREFIX}/usr/lib
 EMS+=          ${NATIVE_EMULATION}
 .for ext in ${ELF_SCR_EXT}
 LDSCRIPTS_${NATIVE_EMULATION}+=        ${NATIVE_EMULATION}.${ext}
@@ -20,7 +18,7 @@ e${NATIVE_EMULATION}.c ${LDSCRIPTS_${NATIVE_EMULATION}}: \
     scripttempl/elf.sc genscripts.sh stringify.sed sort-sections.sh
        sh ${SRCDIR}/ld/genscripts.sh \
                ${SRCDIR:Q}/ld \
-               ${_amd64_path:Q} \
+               ${_x86_64_path:Q} \
                "" \
                "" \
                ${HOST} \
index b9e5376..42bad0f 100644 (file)
@@ -31,7 +31,7 @@ CFLAGS+= -I${BINUTILSDISTDIR}/bfd -I${BINUTILSDISTDIR}/include -I.
 
 # XXX broken
 SELARCH=
-.if ${BINUTIL_ARCH} == "amd64"
+.if ${BINUTIL_ARCH} == "x86_64"
 SELARCH= &bfd_i386_arch
 .else
 .for _a in ${ARCHS}
@@ -91,7 +91,7 @@ bfdver.h: ${SRCDIR}/bfd/version.h
        mv -f bfdver.h.new bfdver.h
 
 # match targets defined in the assembler's targ-env.h with an output vector.
-# XXX i386-*-dragonfly and amd64-*-dragonfly are obsolete, but not quite
+# XXX i386-*-dragonfly and x86_64-*-dragonfly are obsolete, but not quite
 # removed from the binutils build yet.
 targmatch.h: targmatch.sed config.bfd
        sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET}.new
@@ -1,5 +1,3 @@
-# $DragonFly: src/gnu/usr.bin/binutils217/libbfd/Makefile.amd64,v 1.1 2007/04/13 12:24:32 corecode Exp $
-
 BFD_ARCH_SIZE?=64
 BFD_DEFAULT_TARGET_SIZE?=64
 
@@ -8,8 +6,7 @@ VECS+=  bfd_elf64_x86_64_vec
 
 DEFAULT_VECTOR?= bfd_elf64_x86_64_vec
 
-TARGMATCH+=    { "elf64-amd64-dragonfly*", &bfd_elf64_x86_64_vec },
-TARGMATCH+=    { "amd64-*-dragonfly*", &bfd_elf64_x86_64_vec },
+TARGMATCH+=    { "elf64-x86_64-dragonfly*", &bfd_elf64_x86_64_vec },
 TARGMATCH+=    { "x86_64-*-dragonfly*", &bfd_elf64_x86_64_vec },
 
 CLEANFILES+=   elf64-target.h
diff --git a/gnu/usr.bin/binutils217/libopcodes/Makefile.amd64 b/gnu/usr.bin/binutils217/libopcodes/Makefile.amd64
deleted file mode 100644 (file)
index ffea0f0..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# $DragonFly: src/gnu/usr.bin/binutils217/libopcodes/Makefile.amd64,v 1.1 2007/04/13 12:24:32 corecode Exp $
-
-SRCS+= i386-dis.c
-CFLAGS+= -DARCH_i386
diff --git a/gnu/usr.bin/binutils217/libopcodes/Makefile.x86_64 b/gnu/usr.bin/binutils217/libopcodes/Makefile.x86_64
new file mode 100644 (file)
index 0000000..2909164
--- /dev/null
@@ -0,0 +1,2 @@
+SRCS+= i386-dis.c
+CFLAGS+= -DARCH_i386
@@ -8,8 +8,8 @@ TARGET_CPU=             x86_64
 .include "${.CURDIR}/../Makefile.inc0"
 
 CFLAGS += -I${.OBJDIR}/../../libbfd
-.if ${TARGET_ARCH} != "amd64"
-BINDIR=        /usr/libexec/cross/amd64-dragonfly
+.if ${TARGET_ARCH} != "x86_64"
+BINDIR=        /usr/libexec/cross/x86_64-dragonfly
 .endif
 SRCS+= obj-elf.c tc-i386.c
 
similarity index 95%
rename from gnu/usr.bin/binutils220/ld/Makefile.amd64
rename to gnu/usr.bin/binutils220/ld/Makefile.x86_64
index a9155de..8e1f794 100644 (file)
@@ -4,7 +4,7 @@ NATIVE_EMULATION=       elf_x86_64
 HOST=  ${TARGET_TUPLE}
 CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
 CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
-_amd64_path=   ${USRDATA_PREFIX}/usr/lib
+_x86_64_path=  ${USRDATA_PREFIX}/usr/lib
 EMS+=          ${NATIVE_EMULATION}
 .for ext in ${ELF_SCR_EXT}
 LDSCRIPTS_${NATIVE_EMULATION}+=        ${NATIVE_EMULATION}.${ext}
@@ -18,7 +18,7 @@ e${NATIVE_EMULATION}.c ${LDSCRIPTS_${NATIVE_EMULATION}}: \
     scripttempl/elf.sc genscripts.sh stringify.sed
        sh ${SRCDIR}/ld/genscripts.sh \
                ${SRCDIR:Q}/ld \
-               ${_amd64_path:Q} \
+               ${_x86_64_path:Q} \
                "" \
                "" \
                ${HOST} \
index 9462239..8b7ce92 100644 (file)
@@ -6,7 +6,7 @@ version=        4.1.2
 target_machine=        ${TARGET_ARCH}-pc-dragonflybsd
 
 GCC_CPU?=      ${TARGET_ARCH}
-.if ${TARGET_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "x86_64"
 GCC_CPU=       i386
 .endif
 
@@ -29,11 +29,11 @@ GTFILES_SRCDIR = $(srcdir)
 # This is ordered to avoid build warnings/errors
 
 TARGET_INC=    options.h
-.if ${TARGET_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "x86_64"
 TARGET_INC+=   i386/biarch64.h
 .endif
 TARGET_INC+=   ${GCC_CPU}/${GCC_CPU}.h
-.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
 TARGET_INC+=   ${GCC_CPU}/unix.h
 TARGET_INC+=   ${GCC_CPU}/att.h
 .endif
@@ -41,11 +41,11 @@ TARGET_INC+=        dbxelf.h
 TARGET_INC+=   elfos.h
 TARGET_INC+=   dragonfly-spec.h
 TARGET_INC+=   dragonfly.h
-.if ${TARGET_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "x86_64"
 TARGET_INC+=   ${GCC_CPU}/x86-64.h
 .endif
 TARGET_INC+=   ${GCC_CPU}/dragonfly.h
-.if ${TARGET_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "x86_64"
 TARGET_INC+=   ${GCC_CPU}/dragonfly64.h
 .endif
 TARGET_INC+=   defaults.h
index 05e795c..6612d6f 100644 (file)
 #ifndef USED_FOR_TARGET
 #if defined(__i386__)
 #define SIZEOF_LONG SIZEOF_INT
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
 #define SIZEOF_LONG SIZEOF_LONG_LONG
 #else
 #error "Unknown architecture"
index 107c9cb..66abeea 100644 (file)
 /* The size of a `int', as computed by sizeof. */
 #if defined(__i386__)
 #define SIZEOF_INT 4
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
 #define SIZEOF_INT 8
 #else
 #error "Unknown target platform"
index dac15ad..84bfe32 100644 (file)
@@ -4,7 +4,7 @@ version=        ${GCCCOMPLETEVER}
 target_machine=        ${TARGET_ARCH}-pc-dragonflybsd
 
 GCC_CPU?=      ${TARGET_ARCH}
-.if ${TARGET_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "x86_64"
 GCC_CPU=       i386
 .endif
 
@@ -31,11 +31,11 @@ GTFILES_SRCDIR = $(srcdir)
 # This is ordered to avoid build warnings/errors
 
 TARGET_INC=    options.h
-.if ${TARGET_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "x86_64"
 TARGET_INC+=   i386/biarch64.h
 .endif
 TARGET_INC+=   ${GCC_CPU}/${GCC_CPU}.h
-.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
 TARGET_INC+=   ${GCC_CPU}/unix.h
 TARGET_INC+=   ${GCC_CPU}/att.h
 .endif
@@ -44,7 +44,7 @@ TARGET_INC+=  elfos.h
 TARGET_INC+=   dragonfly.h
 .if ${TARGET_ARCH} == "i386"
 TARGET_INC+=   ${GCC_CPU}/dragonfly.h
-.elif ${TARGET_ARCH} == "amd64"
+.elif ${TARGET_ARCH} == "x86_64"
 TARGET_INC+=   ${GCC_CPU}/x86-64.h
 TARGET_INC+=   ${GCC_CPU}/dragonfly64.h
 .endif
index 704b2d1..144f42a 100644 (file)
 #ifndef USED_FOR_TARGET
 #if defined(__i386__)
 #define SIZEOF_LONG SIZEOF_INT
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
 #define SIZEOF_LONG SIZEOF_LONG_LONG
 #else
 #error "Unknown architecture"
index d5b4783..f303828 100644 (file)
@@ -30,7 +30,7 @@ along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
 #if ! defined (__GMP_WITHIN_CONFIGURE)
 #if defined(__i386__)
 #define __GMP_BITS_PER_MP_LIMB             32
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
 #define __GMP_BITS_PER_MP_LIMB             64
 #else
 #error port me!
index 0565b0c..fb4c0dd 100644 (file)
 /* The size of a `int', as computed by sizeof. */
 #if defined(__i386__)
 #define SIZEOF_INT 4
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
 #define SIZEOF_INT 8
 #else
 #error "Unknown target platform"
index f6e896c..40ef46a 100644 (file)
 /* The size of `long', as computed by sizeof. */
 #if defined(__i386__)
 #define SIZEOF_LONG 4
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
 #define SIZEOF_LONG 8
 #else
 #error Unsupported platform
 /* The size of `void *', as computed by sizeof. */
 #if defined(__i386__)
 #define SIZEOF_VOID_P 4
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
 #define SIZEOF_VOID_P 8
 #else
 #error Unsupported platform
index 6b75a22..e22cf0e 100644 (file)
@@ -474,7 +474,7 @@ static char jmpmap[I386_SSE_NUM_REGS] = /* map reg to jmp_buf */
 
 #endif
 
-#ifdef __amd64__
+#ifdef __x86_64__
 
 #include "amd64-tdep.h"
 
similarity index 79%
rename from lib/csu/amd64/Makefile.csu
rename to lib/csu/x86_64/Makefile.csu
index 9efa444..a49c8f3 100644 (file)
@@ -1,5 +1,4 @@
 # $FreeBSD: src/lib/csu/amd64/Makefile,v 1.18 2003/06/30 12:53:39 ru Exp $
-# $DragonFly: src/lib/csu/amd64/Makefile.csu,v 1.2 2007/07/11 21:12:50 corecode Exp $
 
 SRCS+=         crt1.c crti.S crtn.S
 OBJS+=         gcrt1.o
similarity index 94%
rename from lib/csu/amd64/crt1.c
rename to lib/csu/x86_64/crt1.c
index 71ce7ca..e2db276 100644 (file)
@@ -24,7 +24,6 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/csu/amd64/crt1.c,v 1.13 2003/04/30 19:27:07 peter Exp $
- * $DragonFly: src/lib/csu/amd64/crt1.c,v 1.2 2008/08/25 23:38:35 dillon Exp $
  */
 
 #ifndef lint
@@ -106,5 +105,3 @@ __asm__(".text");
 __asm__("eprol:");
 __asm__(".previous");
 #endif
-
-__asm__(".ident\t\"$DragonFly: src/lib/csu/amd64/crt1.c,v 1.2 2008/08/25 23:38:35 dillon Exp $\"");
similarity index 90%
rename from lib/csu/amd64/crti.S
rename to lib/csu/x86_64/crti.S
index e0b4328..e2fee49 100644 (file)
@@ -23,7 +23,6 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/csu/amd64/crti.S,v 1.6 2002/05/15 04:19:49 obrien Exp $
- * $DragonFly: src/lib/csu/amd64/crti.S,v 1.1 2004/02/02 05:43:13 dillon Exp $
  */
 
        .section .init,"ax",@progbits
@@ -39,4 +38,3 @@ _init:
 _fini:
 
        .section .rodata
-.ascii "$DragonFly: src/lib/csu/amd64/crti.S,v 1.1 2004/02/02 05:43:13 dillon Exp $\0"
similarity index 90%
rename from lib/csu/amd64/crtn.S
rename to lib/csu/x86_64/crtn.S
index 498f310..1dbbb44 100644 (file)
@@ -23,7 +23,6 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/csu/amd64/crtn.S,v 1.5 2002/05/15 04:19:49 obrien Exp $
- * $DragonFly: src/lib/csu/amd64/crtn.S,v 1.1 2004/02/02 05:43:13 dillon Exp $
  */
 
        .section .init,"ax",@progbits
@@ -33,4 +32,3 @@
        ret
 
        .section .rodata
-.ascii "$DragonFly: src/lib/csu/amd64/crtn.S,v 1.1 2004/02/02 05:43:13 dillon Exp $\0"
index 1a83c29..772b85a 100644 (file)
@@ -25,7 +25,7 @@ NOASM=
 .include "${.CURDIR}/../libc/locale/Makefile.inc"
 .include "${.CURDIR}/../libc/net/Makefile.inc"
 .include "${.CURDIR}/../libc/nls/Makefile.inc"
-.if ${MACHINE_ARCH} != "amd64"
+.if ${MACHINE_ARCH} != "x86_64"
 .include "${.CURDIR}/../libc/quad/Makefile.inc"
 .endif
 .include "${.CURDIR}/../libc/regex/Makefile.inc"
index 08d71bb..a5c3272 100644 (file)
@@ -256,7 +256,7 @@ __elf_fdnlist(int fd, struct nlist *list)
        /* calculate section header table size */
        shdr_size = ehdr.e_shentsize * ehdr.e_shnum;
 
-#ifndef __amd64__
+#ifndef __x86_64__
        /* Make sure it's not too big to mmap */
        if (shdr_size > SIZE_T_MAX) {
                errno = EFBIG;
@@ -287,7 +287,7 @@ __elf_fdnlist(int fd, struct nlist *list)
                }
        }
 
-#ifndef __amd64__
+#ifndef __x86_64__
        /* Check for files too large to mmap. */
        if (symstrsize > SIZE_T_MAX) {
                errno = EFBIG;
index 47bfa18..7051ed7 100644 (file)
@@ -47,7 +47,7 @@
 
 #include "libc_private.h"
 
-#if defined(__i386__) || defined(__sparc64__) || defined(__amd64__) || defined(__powerpc__)
+#if defined(__i386__) || defined(__sparc64__) || defined(__x86_64__) || defined(__powerpc__)
 extern char *minbrk __asm (".minbrk");
 #else
 extern char *minbrk __asm ("minbrk");
similarity index 51%
rename from lib/libc/amd64/Makefile.inc
rename to lib/libc/x86_64/Makefile.inc
index 1fb1310..e067a24 100644 (file)
@@ -1,7 +1,6 @@
 # $FreeBSD: src/lib/libc/amd64/Makefile.inc,v 1.6 2007/12/03 07:17:32 das Exp $
-# $DragonFly: src/lib/libc/amd64/Makefile.inc,v 1.1 2004/02/02 05:43:14 dillon Exp $
 #
-# Machine dependent definitions for the amd64 architecture.
+# Machine dependent definitions for the x86_64 architecture.
 #
 
 # Long double is 80 bits
similarity index 97%
rename from lib/libc/amd64/SYS.h
rename to lib/libc/x86_64/SYS.h
index 85f2281..e2d38d0 100644 (file)
@@ -31,7 +31,6 @@
  *
  *     @(#)SYS.h       5.5 (Berkeley) 5/7/91
  * $FreeBSD: src/lib/libc/amd64/SYS.h,v 1.30 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/SYS.h,v 1.2 2006/07/27 00:43:42 corecode Exp $
  */
 
 #include <sys/syscall.h>
similarity index 96%
rename from lib/libc/amd64/_fpmath.h
rename to lib/libc/x86_64/_fpmath.h
index 8a1396d..41b01c3 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc/amd64/_fpmath.h,v 1.7 2008/01/17 16:39:06 bde Exp $
- * $DragonFly: src/lib/libc/amd64/_fpmath.h,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 union IEEEl2bits {
similarity index 86%
rename from lib/libc/amd64/arith.h
rename to lib/libc/x86_64/arith.h
index f4dafa9..8d3b5f6 100644 (file)
@@ -2,7 +2,6 @@
  * MD header for contrib/gdtoa
  *
  * $FreeBSD: src/lib/libc/amd64/arith.h,v 1.3 2003/05/08 13:50:43 das Exp $
- * $DragonFly: src/lib/libc/amd64/arith.h,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 /*
similarity index 81%
rename from lib/libc/amd64/gen/Makefile.inc
rename to lib/libc/x86_64/gen/Makefile.inc
index 54be1f7..fb0a5a8 100644 (file)
@@ -1,6 +1,5 @@
 #      @(#)Makefile.inc        8.1 (Berkeley) 6/4/93
 # $FreeBSD: src/lib/libc/amd64/gen/Makefile.inc,v 1.24 2003/10/13 20:32:33 alc Exp $
-# $DragonFly: src/lib/libc/amd64/gen/Makefile.inc,v 1.4 2007/08/21 19:49:10 corecode Exp $
 
 SRCS+= _setjmp.S rfork_thread.S setjmp.S sigsetjmp.S \
        fabs.S modf.S mcontext.S\
similarity index 97%
rename from lib/libc/amd64/gen/_setjmp.S
rename to lib/libc/x86_64/gen/_setjmp.S
index 3e82ac0..5b6af71 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)_setjmp.s       5.1 (Berkeley) 4/23/90
  * $FreeBSD: src/lib/libc/amd64/gen/_setjmp.S,v 1.21 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/gen/_setjmp.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 95%
rename from lib/libc/amd64/gen/fabs.S
rename to lib/libc/x86_64/gen/fabs.S
index 4be6b3e..171e3e0 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc/amd64/gen/fabs.S,v 1.4 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/gen/fabs.S,v 1.2 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <machine/asm.h>
similarity index 82%
rename from lib/libc/amd64/gen/flt_rounds.c
rename to lib/libc/x86_64/gen/flt_rounds.c
index 43717b9..d0bba7d 100644 (file)
@@ -1,8 +1,6 @@
 /*
  * Written by J.T. Conklin, Apr 10, 1995
  * Public domain.
- *
- * $DragonFly: src/lib/libc/amd64/gen/flt_rounds.c,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <sys/cdefs.h>
similarity index 96%
rename from lib/libc/amd64/gen/fpclassifyl.c
rename to lib/libc/x86_64/gen/fpclassifyl.c
index 0c93348..25c2d34 100644 (file)
@@ -34,7 +34,6 @@
  * POSSIBILITY OF SUCH DAMAGE.
  *
  * $NetBSD: fpclassifyl.c,v 1.2 2004/01/18 19:33:01 matt Exp $
- * $DragonFly: src/lib/libc/amd64/gen/fpclassifyl.c,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <sys/cdefs.h>
similarity index 84%
rename from lib/libc/amd64/gen/fpgetmask.S
rename to lib/libc/x86_64/gen/fpgetmask.S
index 8c16876..589818e 100644 (file)
@@ -3,7 +3,6 @@
  * Public domain.
  *
  * $NetBSD: fpgetmask.S,v 1.3 2002/06/12 19:17:22 fvdl Exp $
- * $DragonFly: src/lib/libc/amd64/gen/fpgetmask.S,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <machine/asm.h>
similarity index 83%
rename from lib/libc/amd64/gen/fpgetround.S
rename to lib/libc/x86_64/gen/fpgetround.S
index 3308fa5..1a08850 100644 (file)
@@ -3,7 +3,6 @@
  * Public domain.
  *
  * $NetBSD: fpgetround.S,v 1.3 2002/06/12 19:17:22 fvdl Exp $
- * $DragonFly: src/lib/libc/amd64/gen/fpgetround.S,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <machine/asm.h>
similarity index 84%
rename from lib/libc/amd64/gen/fpgetsticky.S
rename to lib/libc/x86_64/gen/fpgetsticky.S
index a0f8fdd..76ffeb3 100644 (file)
@@ -3,7 +3,6 @@
  * Public domain.
  *
  * $NetBSD: fpgetsticky.S,v 1.3 2002/06/12 19:17:22 fvdl Exp $
- * $DragonFly: src/lib/libc/amd64/gen/fpgetsticky.S,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <machine/asm.h>
similarity index 89%
rename from lib/libc/amd64/gen/fpsetmask.S
rename to lib/libc/x86_64/gen/fpsetmask.S
index 475206f..42476f9 100644 (file)
@@ -3,7 +3,6 @@
  * Public domain.
  *
  * $NetBSD: fpsetmask.S,v 1.3 2002/06/12 19:17:22 fvdl Exp $
- * $DragonFly: src/lib/libc/amd64/gen/fpsetmask.S,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <machine/asm.h>
similarity index 89%
rename from lib/libc/amd64/gen/fpsetround.S
rename to lib/libc/x86_64/gen/fpsetround.S
index f7106f4..43d7e50 100644 (file)
@@ -3,7 +3,6 @@
  * Public domain.
  *
  * $NetBSD: fpsetround.S,v 1.3 2002/06/12 19:17:22 fvdl Exp $
- * $DragonFly: src/lib/libc/amd64/gen/fpsetround.S,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <machine/asm.h>
similarity index 89%
rename from lib/libc/amd64/gen/fpsetsticky.S
rename to lib/libc/x86_64/gen/fpsetsticky.S
index ad763de..1659045 100644 (file)
@@ -3,7 +3,6 @@
  * Public domain.
  *
  * $NetBSD: fpsetsticky.S,v 1.5 2004/03/09 17:16:13 drochner Exp $
- * $DragonFly: src/lib/libc/amd64/gen/fpsetsticky.S,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <machine/asm.h>
similarity index 77%
rename from lib/libc/amd64/gen/infinityl.c
rename to lib/libc/x86_64/gen/infinityl.c
index 3ed0e85..fa62487 100644 (file)
@@ -1,9 +1,8 @@
 /*
  * IEEE-compatible infinityl.c for little-endian 80-bit format -- public domain.
- * Note that the representation includes 48 bits of tail padding per amd64 ABI.
+ * Note that the representation includes 48 bits of tail padding per x86_64 ABI.
  *
  * $NetBSD: infinityl.c,v 1.2 2005/06/12 05:21:27 lukem Exp $
- * $DragonFly: src/lib/libc/amd64/gen/infinityl.c,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <sys/cdefs.h>
similarity index 96%
rename from lib/libc/amd64/gen/isfinitel.c
rename to lib/libc/x86_64/gen/isfinitel.c
index 7af01cf..5c9aef3 100644 (file)
@@ -34,7 +34,6 @@
  * POSSIBILITY OF SUCH DAMAGE.
  *
  * $NetBSD: isfinitel.c,v 1.1 2003/10/29 20:03:51 kleink Exp $
- * $DragonFly: src/lib/libc/amd64/gen/isfinitel.c,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <sys/cdefs.h>
similarity index 96%
rename from lib/libc/amd64/gen/isinfl.c
rename to lib/libc/x86_64/gen/isinfl.c
index 28b20d3..cad0ae1 100644 (file)
@@ -32,7 +32,6 @@
  *
  * from: Header: isinf.c,v 1.1 91/07/08 19:03:34 torek Exp
  * $NetBSD: isinfl.c,v 1.5 2004/03/04 23:42:39 kleink Exp $
- * $DragonFly: src/lib/libc/amd64/gen/isinfl.c,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <sys/cdefs.h>
similarity index 96%
rename from lib/libc/amd64/gen/isnanl.c
rename to lib/libc/x86_64/gen/isnanl.c
index 67ed436..55f3bb4 100644 (file)
@@ -32,7 +32,6 @@
  *
  * from: Header: isinf.c,v 1.1 91/07/08 19:03:34 torek Exp
  * $NetBSD: isnanl.c,v 1.5 2004/03/04 23:42:39 kleink Exp $
- * $DragonFly: src/lib/libc/amd64/gen/isnanl.c,v 1.1 2006/07/27 00:46:57 corecode Exp $
  */
 
 #include <sys/cdefs.h>
similarity index 96%
rename from lib/libc/amd64/gen/ldexp.c
rename to lib/libc/x86_64/gen/ldexp.c
index 2783f40..c991544 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)ldexp.c 8.1 (Berkeley) 6/4/93
  * $FreeBSD: src/lib/libc/amd64/gen/ldexp.c,v 1.14 2007/01/09 00:38:24 imp Exp $
- * $DragonFly: src/lib/libc/amd64/gen/ldexp.c,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 /*
similarity index 97%
rename from lib/libc/amd64/gen/mcontext.S
rename to lib/libc/x86_64/gen/mcontext.S
index 1dd5010..ea31674 100644 (file)
@@ -24,8 +24,6 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
- *
- * $DragonFly: src/lib/libc/amd64/gen/mcontext.S,v 1.2 2008/08/28 23:36:31 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/gen/modf.S
rename to lib/libc/x86_64/gen/modf.S
index 8b857de..42895d0 100644 (file)
@@ -32,7 +32,6 @@
  *     from: @(#)modf.s        5.5 (Berkeley) 3/18/91
  * $NetBSD: modf.S,v 1.5 1997/07/16 14:37:18 christos Exp $
  * $FreeBSD: src/lib/libc/amd64/gen/modf.S,v 1.4 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/gen/modf.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 66%
rename from lib/libc/amd64/gen/nanf.c
rename to lib/libc/x86_64/gen/nanf.c
index 58257cc..7959f78 100644 (file)
@@ -1,7 +1,3 @@
-/*
- * $DragonFly: src/lib/libc/amd64/gen/nanf.c,v 1.1 2006/07/27 00:46:57 corecode Exp $
- */
-
 #include <sys/cdefs.h>
 
 #include <math.h>
similarity index 96%
rename from lib/libc/amd64/gen/rfork_thread.S
rename to lib/libc/x86_64/gen/rfork_thread.S
index eebef2a..9f1fd06 100644 (file)
@@ -25,7 +25,6 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc/amd64/gen/rfork_thread.S,v 1.2 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/gen/rfork_thread.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 97%
rename from lib/libc/amd64/gen/setjmp.S
rename to lib/libc/x86_64/gen/setjmp.S
index f854281..f22bd55 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)setjmp.s        5.1 (Berkeley) 4/23/90
  * $FreeBSD: src/lib/libc/amd64/gen/setjmp.S,v 1.29 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/gen/setjmp.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/gen/signbitl.c
rename to lib/libc/x86_64/gen/signbitl.c
index 541403e..c5003bb 100644 (file)
@@ -34,7 +34,6 @@
  * POSSIBILITY OF SUCH DAMAGE.
  *
  * $NetBSD: signbitl.c,v 1.1 2004/01/15 19:43:45 kleink Exp $
- * $DragonFly: src/lib/libc/amd64/gen/signbitl.c,v 1.1 2006/07/27 00:46:57 corecode Exp $ 
  */
 
 #include <sys/cdefs.h>
similarity index 97%
rename from lib/libc/amd64/gen/sigsetjmp.S
rename to lib/libc/x86_64/gen/sigsetjmp.S
index 519e8bb..6463634 100644 (file)
@@ -32,7 +32,6 @@
  *     @(#)setjmp.s    5.1 (Berkeley) 4/23/90
  * $Id: sigsetjmp.S,v 1.1 1993/12/05 13:01:05 ats Exp $
  * $FreeBSD: src/lib/libc/amd64/gen/sigsetjmp.S,v 1.30 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/gen/sigsetjmp.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 90%
rename from lib/libc/amd64/sys/Makefile.inc
rename to lib/libc/x86_64/sys/Makefile.inc
index 6a80ceb..5145e76 100644 (file)
@@ -1,6 +1,5 @@
 #      from: Makefile.inc,v 1.1 1993/09/03 19:04:23 jtc Exp
 # $FreeBSD: src/lib/libc/amd64/sys/Makefile.inc,v 1.29 2003/10/23 06:07:09 peter Exp $
-# $DragonFly: src/lib/libc/amd64/sys/Makefile.inc,v 1.3 2007/08/21 19:49:10 corecode Exp $
 
 SRCS+= amd64_get_fsbase.c amd64_get_gsbase.c amd64_set_fsbase.c amd64_set_gsbase.c
 
similarity index 94%
rename from lib/libc/amd64/sys/amd64_get_fsbase.c
rename to lib/libc/x86_64/sys/amd64_get_fsbase.c
index 7de04bc..e024c71 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc/amd64/sys/amd64_get_fsbase.c,v 1.2 2004/01/09 16:52:09 nectar Exp $
- * $DragonFly: src/lib/libc/amd64/sys/amd64_get_fsbase.c,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/sysarch.h>
similarity index 94%
rename from lib/libc/amd64/sys/amd64_get_gsbase.c
rename to lib/libc/x86_64/sys/amd64_get_gsbase.c
index defd958..2b2b6f7 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc/amd64/sys/amd64_get_gsbase.c,v 1.2 2004/01/09 16:52:09 nectar Exp $
- * $DragonFly: src/lib/libc/amd64/sys/amd64_get_gsbase.c,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/sysarch.h>
similarity index 94%
rename from lib/libc/amd64/sys/amd64_set_fsbase.c
rename to lib/libc/x86_64/sys/amd64_set_fsbase.c
index d803ced..e077a78 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc/amd64/sys/amd64_set_fsbase.c,v 1.2 2004/01/09 16:52:09 nectar Exp $
- * $DragonFly: src/lib/libc/amd64/sys/amd64_set_fsbase.c,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/sysarch.h>
similarity index 94%
rename from lib/libc/amd64/sys/amd64_set_gsbase.c
rename to lib/libc/x86_64/sys/amd64_set_gsbase.c
index 7aefaef..d55b83c 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc/amd64/sys/amd64_set_gsbase.c,v 1.2 2004/01/09 16:52:09 nectar Exp $
- * $DragonFly: src/lib/libc/amd64/sys/amd64_set_gsbase.c,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/sysarch.h>
similarity index 93%
rename from lib/libc/amd64/sys/asmcontext.c
rename to lib/libc/x86_64/sys/asmcontext.c
index 4e54b30..166bdb4 100644 (file)
@@ -1,5 +1,3 @@
-/* $DragonFly: src/lib/libc/amd64/sys/asmcontext.c,v 1.2 2008/08/28 23:36:47 dillon Exp $ */
-
 #define _KERNEL_STRUCTURES
 #include <sys/types.h>
 #include <sys/ucontext.h>
@@ -10,7 +8,7 @@ ASSYM(UC_SIGMASK, offsetof(ucontext_t, uc_sigmask));
 ASSYM(UC_MCONTEXT, offsetof(ucontext_t, uc_mcontext));
 ASSYM(SIG_BLOCK, SIG_BLOCK);
 ASSYM(SIG_SETMASK, SIG_SETMASK);
-#ifdef __amd64__
+#ifdef __x86_64__
 ASSYM(MC_ONSTACK, offsetof(mcontext_t, mc_onstack));
 ASSYM(MC_RDI, offsetof(mcontext_t, mc_rdi));
 ASSYM(MC_RSI, offsetof(mcontext_t, mc_rsi));
similarity index 96%
rename from lib/libc/amd64/sys/brk.S
rename to lib/libc/x86_64/sys/brk.S
index 53eeea9..2314546 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)brk.s   5.2 (Berkeley) 12/17/90
  * $FreeBSD: src/lib/libc/amd64/sys/brk.S,v 1.15 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/sys/brk.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/sys/cerror.S
rename to lib/libc/x86_64/sys/cerror.S
index 94c15bb..b1835e4 100644 (file)
@@ -35,7 +35,6 @@
  *
  * @(#)cerror.s        5.1 (Berkeley) 4/23/90
  * $FreeBSD: src/lib/libc/amd64/sys/cerror.S,v 1.13 2003/04/30 18:16:33 peter Exp $
- * $DragonFly: src/lib/libc/amd64/sys/cerror.S,v 1.3 2008/08/28 23:38:52 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/sys/exect.S
rename to lib/libc/x86_64/sys/exect.S
index 41d47d1..1782990 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)exect.s 5.1 (Berkeley) 4/23/90
  * $FreeBSD: src/lib/libc/amd64/sys/exect.S,v 1.13 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/sys/exect.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/sys/pipe.S
rename to lib/libc/x86_64/sys/pipe.S
index 3aa3fc0..0357f20 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)pipe.s  5.1 (Berkeley) 4/23/90
  * $FreeBSD: src/lib/libc/amd64/sys/pipe.S,v 1.15 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/sys/pipe.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/sys/ptrace.S
rename to lib/libc/x86_64/sys/ptrace.S
index 74770da..5246112 100644 (file)
@@ -35,7 +35,6 @@
  *
  * @(#)ptrace.s        5.1 (Berkeley) 4/23/90
  * $FreeBSD: src/lib/libc/amd64/sys/ptrace.S,v 1.11 2003/05/24 17:35:23 peter Exp $
- * $DragonFly: src/lib/libc/amd64/sys/ptrace.S,v 1.2 2006/07/27 00:44:27 corecode Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/sys/reboot.S
rename to lib/libc/x86_64/sys/reboot.S
index 0d38b9a..fdca804 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)reboot.s        5.1 (Berkeley) 4/23/90
  * $FreeBSD: src/lib/libc/amd64/sys/reboot.S,v 1.11 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/sys/reboot.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/sys/sbrk.S
rename to lib/libc/x86_64/sys/sbrk.S
index f651197..4f6e5a7 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)sbrk.s  5.1 (Berkeley) 4/23/90
  * $FreeBSD: src/lib/libc/amd64/sys/sbrk.S,v 1.15 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/sys/sbrk.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/sys/setlogin.S
rename to lib/libc/x86_64/sys/setlogin.S
index eb0d59d..6dabe7e 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)setlogin.s      5.2 (Berkeley) 4/12/91
  * $FreeBSD: src/lib/libc/amd64/sys/setlogin.S,v 1.14 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/sys/setlogin.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 95%
rename from lib/libc/amd64/sys/sigreturn.S
rename to lib/libc/x86_64/sys/sigreturn.S
index 95af738..b51a82c 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)sigreturn.s     5.2 (Berkeley) 12/17/90
  * $FreeBSD: src/lib/libc/amd64/sys/sigreturn.S,v 1.13 2007/01/09 00:27:49 imp Exp $
- * $DragonFly: src/lib/libc/amd64/sys/sigreturn.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
similarity index 96%
rename from lib/libc/amd64/sys/vfork.S
rename to lib/libc/x86_64/sys/vfork.S
index 744d9b5..6831835 100644 (file)
@@ -31,7 +31,6 @@
  *
  * @(#)Ovfork.s        5.1 (Berkeley) 4/23/90
  * $FreeBSD: src/lib/libc/amd64/sys/vfork.S,v 1.24 2008/11/02 01:10:54 peter Exp $
- * $DragonFly: src/lib/libc/amd64/sys/vfork.S,v 1.1 2004/02/02 05:43:14 dillon Exp $
  */
 
 #include <machine/asm.h>
index 7c52dc4..cb2f2f9 100644 (file)
@@ -61,7 +61,7 @@
 #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \
     defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \
     defined(__arm__) || defined(__ppc__) || defined(__ia64__) || \
-    defined(__arm26__) || defined(__sparc64__) || defined(__amd64__)
+    defined(__arm26__) || defined(__sparc64__) || defined(__x86_64__)
 #include <machine/endian.h>
 #define IEEEFP
 #endif
similarity index 93%
rename from lib/libc_r/arch/amd64/_atomic_lock.S
rename to lib/libc_r/arch/x86_64/_atomic_lock.S
index fc95692..1045152 100644 (file)
@@ -20,7 +20,6 @@
  * SUCH DAMAGE.    
  *
  * $FreeBSD: src/lib/libc_r/arch/i386/_atomic_lock.S,v 1.3 1999/08/28 00:03:01 peter Exp $
- * $DragonFly: src/lib/libc_r/arch/amd64/_atomic_lock.S,v 1.1 2006/07/27 00:43:35 corecode Exp $
  */
 
 #include <machine/asm.h>
index a0e1fae..8c1d1e6 100644 (file)
@@ -78,7 +78,7 @@
 #define        SET_STACK_SJB(sjb, stk) (sjb)[0]._sjb[2] = (int)(stk)
 #define        SET_STACK_UC(ucp, stk)  (ucp)->uc_mcontext.mc_esp = (int)(stk)
 #define SET_RETURN_ADDR_JB(jb, ra)     (jb)[0]._jb[0] = (int)(ra)
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
 #define        GET_STACK_JB(jb)        ((unsigned long)((jb)[0]._jb[2]))
 #define        GET_STACK_SJB(sjb)      ((unsigned long)((sjb)[0]._sjb[2]))
 #define        GET_STACK_UC(ucp)       ((unsigned long)((ucp)->uc_mcontext.mc_rsp))
similarity index 96%
rename from lib/libkvm/kvm_amd64.c
rename to lib/libkvm/kvm_x86_64.c
index be28db1..300007e 100644 (file)
  *
  * @(#)kvm_hp300.c     8.1 (Berkeley) 6/4/93
  * $FreeBSD: src/lib/libkvm/kvm_amd64.c,v 1.16 2003/04/30 21:05:33 peter Exp $
- * $DragonFly: src/lib/libkvm/kvm_amd64.c,v 1.2 2007/04/29 01:36:04 dillon Exp $
  */
 
 /*
- * AMD64 machine dependent routines for kvm.  Hopefully, the forthcoming
+ * x86_64 machine dependent routines for kvm.  Hopefully, the forthcoming
  * vm code will one day obsolete this module.
  */
 
@@ -61,8 +60,8 @@
 #include "kvm_private.h"
 
 #ifndef btop
-#define        btop(x)         (amd64_btop(x))
-#define        ptob(x)         (amd64_ptob(x))
+#define        btop(x)         (x86_64_btop(x))
+#define        ptob(x)         (x86_64_ptob(x))
 #endif
 
 struct vmstate {
index b43d364..6dece21 100644 (file)
@@ -11,7 +11,7 @@ SRCS+=        e_acos.S e_asin.S e_atan2.S e_atan2f.S e_exp.S e_expf.S e_fmod.S \
        s_scalbn.S s_scalbnf.S s_significand.S s_significandf.S s_sin.S \
        s_sinf.S s_tan.S s_tanf.S
 
-# This file is included by arch/amd64/Makefile.inc, so pull in the right
+# This file is included by arch/x86_64/Makefile.inc, so pull in the right
 # fenv.[ch].
 #
 .if ${MACHINE_ARCH} == "i386"
similarity index 71%
rename from lib/libm/arch/amd64/Makefile.inc
rename to lib/libm/arch/x86_64/Makefile.inc
index a6fa209..2b2164d 100644 (file)
@@ -1,4 +1,4 @@
-.PATH: ${.CURDIR}/arch/amd64
+.PATH: ${.CURDIR}/arch/x86_64
 
 SRCS+= fenv.c
 INCS=  fenv.h
index 0cfdf2e..3612521 100644 (file)
@@ -18,7 +18,7 @@ WARNS?=               2
 # Mostly OK, some of the libc imports are a bit noisy
 CFLAGS+=       -ffreestanding -std=c99
 
-.if ${MACHINE_ARCH} == "amd64"
+.if ${MACHINE_ARCH} == "x86_64"
 CFLAGS+=       -m32 -mpreferred-stack-boundary=2