Hammer/x86-64/amd64 kernel support..

From: Peter Wemm <peter_at_wemm.org>
Date: Wed, 09 Apr 2003 01:29:13 -0700
In case anybody is interested:

>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
boot: 
Console: serial port
BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS 639kB/523200kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(peter_at_daintree.yahoo.com, Tue Apr  8 21:33:49 PDT 2003)
Loading /boot/defaults/loader.conf 
/boot/kernel64 text=0x1d1780 data=0x61900+0x57ac0 syms=[0x8+0x3de30+0x8+0x323e8]
Hit [Enter] to boot immediately, or any other key for command prompt.

Type '?' for a list of commands, 'help' for more detailed help.
OK boot
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #277: Tue Apr  8 22:57:25 PDT 2003
    peter_at_daintree.yahoo.com:/home/peter/fbp4/hammer/sys/x86_64/compile/GENERIC
Preloaded elf64 kernel "/boot/kernel64" at 0x404fc000.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 3141592 Hz
CPU: AMD ClawHammer(tm) (3.14-MHz Hammer-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf00  Stepping = 0
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500000<<b20>,AMIE,<b29>,DSP,3DNow!>
real memory  = 536805376 (511 MB)
avail memory = 503861248 (480 MB)
Allocating major#253 to "net"
Allocating major#252 to "g_ctl"
Allocating major#251 to "pci"
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib2: <PCI-PCI bridge> at device 6.0 on pci0
pci2: <PCI bus> on pcib2
ohci0: <OHCI (generic) USB controller> mem 0xe9521000-0xe9521fff irq 11 at device 0.0 on pci2
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <OHCI (generic) USB controller> mem 0xe9523000-0xe9523fff irq 11 at device 1.0 on pci2
usb1: OHCI version 1.0, legacy support
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci2: <display, VGA> at device 4.0 (no driver attached)
bge0: <Broadcom BCM5701 Gigabit Ethernet, ASIC rev. 0x105> mem 0xe9500000-0xe950ffff irq 10 at device 5.0 on pci2
bge0: Ethernet address: 00:04:76:eb:a9:cd
miibus0: <MII bus> on bge0
brgphy0: <BCM5701 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
fxp0: <Intel 82557/8/9 EtherExpress Pro/100(B) Ethernet> port 0xc000-0xc03f mem 0xe9400000-0xe94fffff,0xe9522000-0xe9522fff irq 11 at device 7.0 on pci2
fxp0: Ethernet address 00:d0:b7:23:af:0d
miibus1: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 8111 UDMA133 controller> port 0xd000-0xd00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <serial bus, SMBus> at device 7.2 (no driver attached)
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
pci0: <multimedia, audio> at device 7.5 (no driver attached)
orm0: <Option ROMs> at iomem 0xc8000-0xc8fff,0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
ppc0: cannot reserve I/O port range
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
Allocating major#250 to "devstat"
ad0: 58644MB <IC35L060AVER07-0> [119150/16/63] at ata0-master UDMA100
acd0: DVD-ROM <TOSHIBA DVD-ROM SD-M1612> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a

Thats as far as I've got.  There are more complete dumps at:
  http://people.freebsd.org/~peter/hammer.txt

Note this is a modified i386 loader that understands both 32 and 64 bit
kernels.  In the link above, you can see the same loader on both types.

It's still rather green, I've only been (seriously) working on it since
friday.  Jake's PAE commit showed me a way that I could defer dealing too
much with pmap yet.  In the logs above, it corrupts itself and crashes
while trying to prepare to exec /sbin/init.  I'm pretty sure I have
hosed the copyin/out stuff and/or the [fs]uword*() functions.

If you are interested, you can see what is going on here:
  http://perforce.freebsd.org/chb.cgi?FSPC=//depot/projects/hammer/...
  http://perforce.freebsd.org/dtb.cgi?FSPC=depot/projects/hammer
(yes, the trailing /... is important)

Cheers,
-Peter
--
Peter Wemm - peter_at_wemm.org; peter_at_FreeBSD.org; peter_at_yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5
Received on Tue Apr 08 2003 - 23:29:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC