Revert "rename amd64 architecture to x86_64" This reverts commit c1543a890188d397acca9fe7f76bcd982481a763. I'm reverting it because: 1) the change didn't get properly discussed 2) it was based on false premises: "The rest of the world seems to call amd64 x86_64." 3) no pkgsrc bulk build was done to test the change 4) the original committer acted irresponsibly by committing such a big change just before going on vacation.
AMD64 - More signal handler work. Signals now appear to work. Finish implementing signal handler argument construction. For AMD64 the arguments are passed in registers rather than on the stack. Align the stack to 16 bytes. Misc cleanup, comments, and enable PROCFS in kernel config JG64. Taken-from: FreeBSD code used as a loose template.
AMD64 - Make signals operational, fix reg mappings, fix %fs management, trace Adjust sigframe, trapframe, mcontext, ucontext, and regs. Add tf_xflags too all structures. Reorder struct regs to match the register layout in the other structures. Implement the commented out signaling code. Signals now work, or at least do not crash programs. Theoretically the FP state is also saved and restored. The exec() code failed to adjust gd_user_fs and gd_user_gs when setting the msr registers for the user %fs and %gs, causing %fs to unexpectedly change in running user programs. Implement trace/debug support functions to set %rip and to single-step. Define the missing vkernel flag FP_SOFTFP.
AMD64 - Sync AMD64 support from Jordan Gordeev's svn repository and Google SOC project. This work is still continuing but represents substantial progress in the effort. With this commit the world builds and installs, the loader is able to boot the kernel, and the kernel is able to initialize, probe devices, and exec the init program. The init program is then able to run until it hits its first fork(). For the purposes of the GSOC the project is being considered a big success! The code has been adapted from multiple sources, most notably Peter Wemm and other peoples work from FreeBSD, with many modifications to make it work with DragonFly. Also thanks go to Simon Schubert for working on gdb and compiler issues, and to Noah Yan for a good chunk of precursor work in 2007. While Jordan wishes to be modest on his contribution, frankly we would not have been able to make this much progress without the large number of man-hours Jordan has dedicated to his GSOC project painstakingly gluing code together, tracking down issues, and progressing the boot sequence. Submitted-by: Jordan Gordeev <jgordeev@dir.bg>