]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Commit MD parts of a loosely functional AMD64 port. This is based on
authorPeter Wemm <peter@FreeBSD.org>
Thu, 1 May 2003 01:05:25 +0000 (01:05 +0000)
committerPeter Wemm <peter@FreeBSD.org>
Thu, 1 May 2003 01:05:25 +0000 (01:05 +0000)
commitafa8862328041298fe0c059d65cea406f92bad4b
treedd665cefeba0e426ad2b212b76851de96f1ad18b
parent4580c352e198e8e5191edb06bb1c9b5488d1bb90
Commit MD parts of a loosely functional AMD64 port.  This is based on
a heavily stripped down FreeBSD/i386 (brutally stripped down actually) to
attempt to get a stable base to start from.  There is a lot missing still.
Worth noting:
- The kernel runs at 1GB in order to cheat with the pmap code.  pmap uses
  a variation of the PAE code in order to avoid having to worry about 4
  levels of page tables yet.
- It boots in 64 bit "long mode" with a tiny trampoline embedded in the
  i386 loader.  This simplifies locore.s greatly.
- There are still quite a few fragments of i386-specific code that have
  not been translated yet, and some that I cheated and wrote dumb C
  versions of (bcopy etc).
- It has both int 0x80 for syscalls (but using registers for argument
  passing, as is native on the amd64 ABI), and the 'syscall' instruction
  for syscalls.  int 0x80 preserves all registers, 'syscall' does not.
- I have tried to minimize looking at the NetBSD code, except in a couple
  of places (eg: to find which register they use to replace the trashed
  %rcx register in the syscall instruction).  As a result, there is not a
  lot of similarity.  I did look at NetBSD a few times while debugging to
  get some ideas about what I might have done wrong in my first attempt.
92 files changed:
sys/amd64/acpica/OsdEnvironment.c
sys/amd64/acpica/acpi_machdep.c
sys/amd64/acpica/acpi_wakeup.c
sys/amd64/amd64/autoconf.c
sys/amd64/amd64/cpu_switch.S
sys/amd64/amd64/critical.c
sys/amd64/amd64/dump_machdep.c
sys/amd64/amd64/elf_machdep.c
sys/amd64/amd64/exception.S
sys/amd64/amd64/exception.s
sys/amd64/amd64/fpu.c
sys/amd64/amd64/genassym.c
sys/amd64/amd64/identcpu.c
sys/amd64/amd64/initcpu.c
sys/amd64/amd64/legacy.c
sys/amd64/amd64/locore.S
sys/amd64/amd64/locore.s
sys/amd64/amd64/machdep.c
sys/amd64/amd64/mem.c
sys/amd64/amd64/nexus.c
sys/amd64/amd64/pmap.c
sys/amd64/amd64/sigtramp.S [new file with mode: 0644]
sys/amd64/amd64/sigtramp.s [new file with mode: 0644]
sys/amd64/amd64/support.S
sys/amd64/amd64/support.s
sys/amd64/amd64/swtch.s
sys/amd64/amd64/sys_machdep.c
sys/amd64/amd64/trap.c
sys/amd64/amd64/tsc.c
sys/amd64/amd64/vm_machdep.c
sys/amd64/conf/GENERIC
sys/amd64/conf/GENERIC.hints
sys/amd64/include/_inttypes.h
sys/amd64/include/_types.h
sys/amd64/include/asm.h
sys/amd64/include/asmacros.h
sys/amd64/include/atomic.h
sys/amd64/include/bus.h
sys/amd64/include/bus_amd64.h
sys/amd64/include/bus_at386.h
sys/amd64/include/clock.h
sys/amd64/include/cpu.h
sys/amd64/include/cpufunc.h
sys/amd64/include/cputypes.h
sys/amd64/include/critical.h
sys/amd64/include/db_machdep.h
sys/amd64/include/elf.h
sys/amd64/include/endian.h
sys/amd64/include/fpu.h
sys/amd64/include/frame.h
sys/amd64/include/kse.h
sys/amd64/include/md_var.h
sys/amd64/include/mutex.h
sys/amd64/include/npx.h
sys/amd64/include/param.h
sys/amd64/include/pcb.h
sys/amd64/include/pcb_ext.h
sys/amd64/include/pci_cfgreg.h
sys/amd64/include/pcpu.h
sys/amd64/include/pmap.h
sys/amd64/include/proc.h
sys/amd64/include/profile.h
sys/amd64/include/psl.h
sys/amd64/include/reg.h
sys/amd64/include/segments.h
sys/amd64/include/setjmp.h
sys/amd64/include/sigframe.h
sys/amd64/include/signal.h
sys/amd64/include/smp.h
sys/amd64/include/specialreg.h
sys/amd64/include/sysarch.h
sys/amd64/include/tss.h
sys/amd64/include/ucontext.h
sys/amd64/include/vmparam.h
sys/amd64/isa/clock.c
sys/amd64/isa/icu.h
sys/amd64/isa/icu_ipl.S
sys/amd64/isa/icu_ipl.s
sys/amd64/isa/icu_vector.S
sys/amd64/isa/icu_vector.s
sys/amd64/isa/intr_machdep.c
sys/amd64/isa/intr_machdep.h
sys/amd64/isa/isa.c
sys/amd64/isa/isa.h
sys/amd64/isa/isa_dma.c
sys/amd64/isa/ithread.c
sys/amd64/isa/npx.c
sys/amd64/isa/timerreg.h
sys/amd64/isa/vector.S
sys/amd64/isa/vector.s
sys/amd64/pci/pci_bus.c
sys/amd64/pci/pci_cfgreg.c