cvs commit: src/sys/amd64/acpica OsdEnvironment.c acpi_machdep.c acpi_wakeup.c src/sys/amd64/amd64 autoconf.c critical.c dump_machdep.c elf_machdep.c exception.s genassym.c identcpu.c initcpu.c legacy.c locore.s machdep.c mem.c nexus.c pmap.c ...

Peter Wemm peter at FreeBSD.org
Wed Apr 30 18:05:28 PDT 2003


peter       2003/04/30 18:05:25 PDT

  FreeBSD src repository

  Modified files:
    sys/amd64/acpica     OsdEnvironment.c acpi_machdep.c 
                         acpi_wakeup.c 
    sys/amd64/amd64      autoconf.c critical.c dump_machdep.c 
                         elf_machdep.c exception.s genassym.c 
                         identcpu.c initcpu.c legacy.c locore.s 
                         machdep.c mem.c nexus.c pmap.c support.s 
                         swtch.s sys_machdep.c trap.c tsc.c 
                         vm_machdep.c 
    sys/amd64/conf       GENERIC GENERIC.hints 
    sys/amd64/include    _inttypes.h _types.h asm.h asmacros.h 
                         atomic.h bus.h bus_at386.h clock.h cpu.h 
                         cpufunc.h cputypes.h critical.h 
                         db_machdep.h elf.h endian.h frame.h 
                         in_cksum.h kse.h md_var.h mutex.h npx.h 
                         param.h pcb.h pcb_ext.h pci_cfgreg.h 
                         pcpu.h pmap.h proc.h profile.h psl.h 
                         reg.h segments.h setjmp.h sigframe.h 
                         signal.h smp.h specialreg.h sysarch.h 
                         tss.h ucontext.h vmparam.h 
    sys/amd64/isa        clock.c icu.h icu_ipl.s icu_vector.s 
                         intr_machdep.c intr_machdep.h isa.c isa.h 
                         isa_dma.c ithread.c npx.c timerreg.h 
                         vector.s 
    sys/amd64/pci        pci_bus.c pci_cfgreg.c 
  Added files:
    sys/amd64/amd64      sigtramp.s 
  Log:
  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.
  
  Revision  Changes     Path
  1.8       +0 -2       src/sys/amd64/acpica/OsdEnvironment.c
  1.9       +1 -296     src/sys/amd64/acpica/acpi_machdep.c
  1.19      +1 -310     src/sys/amd64/acpica/acpi_wakeup.c
  1.173     +1 -55      src/sys/amd64/amd64/autoconf.c
  1.9       +5 -125     src/sys/amd64/amd64/critical.c
  1.8       +1 -1       src/sys/amd64/amd64/dump_machdep.c
  1.14      +15 -14     src/sys/amd64/amd64/elf_machdep.c
  1.104     +174 -137   src/sys/amd64/amd64/exception.s
  1.141     +38 -84     src/sys/amd64/amd64/genassym.c
  1.123     +38 -1042   src/sys/amd64/amd64/identcpu.c
  1.45      +6 -810     src/sys/amd64/amd64/initcpu.c
  1.50      +2 -14      src/sys/amd64/amd64/legacy.c
  1.172     +33 -852    src/sys/amd64/amd64/locore.s
  1.564     +548 -1569  src/sys/amd64/amd64/machdep.c
  1.107     +7 -16      src/sys/amd64/amd64/mem.c
  1.50      +4 -49      src/sys/amd64/amd64/nexus.c
  1.406     +76 -569    src/sys/amd64/amd64/pmap.c
  1.1       +56 -0      src/sys/amd64/amd64/sigtramp.s (new)
  1.97      +194 -1362  src/sys/amd64/amd64/support.s
  1.138     +147 -260   src/sys/amd64/amd64/swtch.s
  1.82      +0 -501     src/sys/amd64/amd64/sys_machdep.c
  1.252     +76 -350    src/sys/amd64/amd64/trap.c
  1.200     +4 -41      src/sys/amd64/amd64/tsc.c
  1.207     +18 -282    src/sys/amd64/amd64/vm_machdep.c
  1.383     +28 -193    src/sys/amd64/conf/GENERIC
  1.12      +0 -2       src/sys/amd64/conf/GENERIC.hints
  1.3       +44 -44     src/sys/amd64/include/_inttypes.h
  1.4       +3 -1       src/sys/amd64/include/_types.h
  1.11      +19 -33     src/sys/amd64/include/asm.h
  1.25      +6 -6       src/sys/amd64/include/asmacros.h
  1.30      +29 -67     src/sys/amd64/include/atomic.h
  1.11      +1 -7       src/sys/amd64/include/bus.h
  1.23      +4 -12      src/sys/amd64/include/bus_at386.h
  1.45      +0 -9       src/sys/amd64/include/clock.h
  1.68      +6 -23      src/sys/amd64/include/cpu.h
  1.134     +53 -173    src/sys/amd64/include/cpufunc.h
  1.17      +5 -22      src/sys/amd64/include/cputypes.h
  1.3       +12 -23     src/sys/amd64/include/critical.h
  1.18      +3 -3       src/sys/amd64/include/db_machdep.h
  1.14      +26 -21     src/sys/amd64/include/elf.h
  1.4       +8 -7       src/sys/amd64/include/endian.h
  1.23      +72 -95     src/sys/amd64/include/frame.h
  1.2       +0 -0       src/sys/amd64/include/in_cksum.h
  1.3       +1 -8       src/sys/amd64/include/kse.h
  1.63      +2 -49      src/sys/amd64/include/md_var.h
  1.37      +10 -10     src/sys/amd64/include/mutex.h
  1.27      +15 -58     src/sys/amd64/include/npx.h
  1.4       +48 -17     src/sys/amd64/include/param.h
  1.50      +16 -25     src/sys/amd64/include/pcb.h
  1.10      +0 -20      src/sys/amd64/include/pcb_ext.h
  1.10      +0 -6       src/sys/amd64/include/pci_cfgreg.h
  1.36      +21 -19     src/sys/amd64/include/pcpu.h
  1.100     +50 -104    src/sys/amd64/include/pmap.h
  1.20      +2 -23      src/sys/amd64/include/proc.h
  1.31      +7 -7       src/sys/amd64/include/profile.h
  1.12      +3 -3       src/sys/amd64/include/psl.h
  1.30      +26 -76     src/sys/amd64/include/reg.h
  1.34      +82 -115    src/sys/amd64/include/segments.h
  1.8       +1 -1       src/sys/amd64/include/setjmp.h
  1.9       +0 -67      src/sys/amd64/include/sigframe.h
  1.21      +30 -60     src/sys/amd64/include/signal.h
  1.77      +0 -146     src/sys/amd64/include/smp.h
  1.24      +38 -79     src/sys/amd64/include/specialreg.h
  1.18      +0 -42      src/sys/amd64/include/sysarch.h
  1.14      +28 -30     src/sys/amd64/include/tss.h
  1.11      +29 -54     src/sys/amd64/include/ucontext.h
  1.36      +9 -16      src/sys/amd64/include/vmparam.h
  1.199     +7 -221     src/sys/amd64/isa/clock.c
  1.28      +54 -54     src/sys/amd64/isa/icu.h
  1.12      +2 -2       src/sys/amd64/isa/icu_ipl.s
  1.38      +73 -184    src/sys/amd64/isa/icu_vector.s
  1.75      +42 -231    src/sys/amd64/isa/intr_machdep.c
  1.44      +0 -133     src/sys/amd64/isa/intr_machdep.h
  1.143     +0 -109     src/sys/amd64/isa/isa.c
  1.24      +0 -33      src/sys/amd64/isa/isa.h
  1.14      +3 -2       src/sys/amd64/isa/isa_dma.c
  1.21      +28 -5      src/sys/amd64/isa/ithread.c
  1.141     +37 -451    src/sys/amd64/isa/npx.c
  1.7       +0 -6       src/sys/amd64/isa/timerreg.h
  1.38      +6 -38      src/sys/amd64/isa/vector.s
  1.99      +3 -69      src/sys/amd64/pci/pci_bus.c
  1.102     +15 -489    src/sys/amd64/pci/pci_cfgreg.c


More information about the cvs-src mailing list