Commit Graph

1439 Commits

Author SHA1 Message Date
eeh 73fd336386 Use paddr_t for avail_start and avail_end so we can handle machines with
RAM above the 2GB mark.
2002-06-21 02:57:29 +00:00
eeh fb5318516e The FFB interrupt mapping registers need to compare IGN as well as INO since
they are totally programmable.
2002-06-21 02:48:42 +00:00
eeh 5c6bf5ad03 Overhaul streaming buffer handling:
sysio streaming buffer flushes write a single 8-byte aligned 8-byte
	value.

	psycho streaming buffer flushes write a 64-byte aligned 64-byte block.

So separate out the streaming buffers into their own structure and pass those
in to all iommu operations.  This also means we only flush the correct
streaming buffer for psycho rather than needing to flush both just in case.
2002-06-20 18:26:23 +00:00
eeh dcabee4011 Get ktrace working once more. 2002-06-19 23:32:01 +00:00
grant 30dfd0761f remove extraneous #endif from last commit, make this compile again. 2002-06-19 04:58:32 +00:00
christos 3b50728cf4 MD systrace gluons. 2002-06-17 16:32:57 +00:00
lukem fde6ae6f04 Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
2002-06-17 05:14:02 +00:00
eeh 863fc84f4d Provide the correct architecture for HW_MACHINE_ARCH so things like
"sysctl -p" can tell they are in 32-bit land.
2002-06-14 18:28:19 +00:00
eeh 923804f36a Fix hardware watchpoints and add an extract function so we can easily find
the physical addresses of things (to feed to the physical watchpoint).
2002-06-14 17:12:05 +00:00
eeh efad9de6ca NEVER CAST REFERENCE PARAMETERS!!!!! 2002-06-14 00:11:07 +00:00
eeh 9984a8bbcc Fix some corner cases in bus_dmamap_load_mbuf().
From Takeshi Nakayama <tn@catvmics.ne.jp>
2002-06-12 17:06:15 +00:00
eeh c08cac5019 Use the correct bus handle to generate the handle for the streaming buffers. 2002-06-12 00:43:22 +00:00
eeh e98ab1d613 Fixes for the rtc clock on Netra X1 machines from PRs 15611 and 16816
by Takeshi Nakayama.
2002-06-11 23:33:27 +00:00
eeh 715641d6a1 Do not truncate the kernel pmap physical address to an `int' before
sticking it in the context lookup table.  Fixes a booting issue on
Netra T1125s.
2002-06-11 21:10:03 +00:00
eeh 63260bae95 Fix yet another inverted comparison. 2002-06-07 19:31:04 +00:00
eeh 751dd1000c Shave 10% off the time needed to flush the D$ through a bit of instruction
reordering.
2002-06-07 19:29:38 +00:00
martin 2d7d715810 Add audiocs at ebus. 2002-06-05 21:42:31 +00:00
eeh e7fe9c7c35 Handle improperly aligned stack pointers more cleanly. 2002-06-05 18:11:18 +00:00
thorpej d941ddfee0 Don't use -traditional-cpp if HAVE_GCC3. 2002-06-04 21:39:09 +00:00
eeh 4ff7000d80 Fix the fork trampoline to properly use the supplied tstate. 2002-06-04 15:04:08 +00:00
eeh abb7b6a965 Clear the P_32 flag when exec-ing native binaries. 2002-06-04 14:48:09 +00:00
eeh 587856dfdd Make the code that matches boot devices much more flexible so it handles
device classes as well as funny names for matching.  This should allow
us to properly recognize we're booted from a SCSI disk on a PCI controller.
2002-06-04 14:44:34 +00:00
eeh 30cc4dc796 Pass on the P_32 flag on fork and support fork syscall returns using
%g7 as the completion address.
2002-06-03 18:08:43 +00:00
drochner d2b9876081 move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
2002-06-02 14:44:35 +00:00
thorpej 10e4eb9d0b Make this work with an ISO C preprocessor. 2002-05-31 20:01:28 +00:00
eeh 4678e53555 Fix inverted comparison. We only wan to flush the I$ on *userland* executable
mappings.
2002-05-18 00:51:15 +00:00
eeh 5f3262977c Don't use smaller trapframes. Causes more problems that it's worth right now. CVS: ---------------------------------------------------------------------- 2002-05-16 23:29:42 +00:00
eeh a48bd3e3b4 Make the PCI code actually work. 2002-05-16 20:28:33 +00:00
eeh ac0772ab66 Correctly print out all out regs in the trapframe. 2002-05-16 20:27:09 +00:00
wiz 0ed95fb29e #ifdef 1 -> #if 1 2002-05-16 20:05:39 +00:00
thorpej 204183c0fa * Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to
NULL for root PCI busses.  For busses behind a bridge, it points to
  a persistent copy of the bridge's pcitag_t.  This can be very useful
  for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
  uses OFW device nodes to enumerate the bus.  When a PCI bus that is
  behind a bridge is attached, pci_attach_hook() allocates a new PCI
  chipset tag for the new bus and sets it's "curnode" to the OFW node
  of the bridge.  This is used as a starting point when enumerating
  that bus.  Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.
2002-05-16 01:01:28 +00:00
thorpej dada8613e1 Let machine-dependent code specify how to enumerate the bus.
Currently, everyone uses pci_enumerate_bus_generic().
2002-05-15 19:23:51 +00:00
thorpej 11fa11094e Garbage-collect __PCI_DEV_FUNCORDER. 2002-05-15 18:37:54 +00:00
thorpej a91677eb7b Implement pci_decompose_tag(). 2002-05-15 17:40:11 +00:00
eeh d295742774 Have CLKF_BASEPRI() always return false for now to prevent hardclock
from being blocked by softclock.
2002-05-14 21:21:45 +00:00
eeh e8ff5b27c8 Trapframes only have locals or ins if the kernel is compiled DEBUG. 2002-05-14 02:34:14 +00:00
eeh 1d52c1bd50 Only save locals and ins in trapframes for DEBUG kernels. 2002-05-14 02:23:07 +00:00
eeh fc5fdc8819 Add rtc@ebus. 2002-05-13 22:38:01 +00:00
eeh 7b70e3b8fb Fix off-by-one error in iommu_dvmamap_load_raw() where if a DMA segment
has just one byte on a page the page is never mapped into the IOMMU.
2002-05-13 21:01:15 +00:00
matt 0a6d35b7ed Nuke local extern label_t *db_recover; it's now in <ddb/db_extern.h> 2002-05-13 20:30:07 +00:00
matt c27fdbcdbe Don't panic is no class-code, just return. Needed for NetraX1. 2002-05-13 13:59:21 +00:00
lukem 9e4faf5cb2 no more ../../sparc/stand/installboot 2002-05-07 12:45:18 +00:00
eeh 2a4ecb6335 Add a flag for ofpci to let psycho chose between pci and ofpci. 2002-05-06 22:41:10 +00:00
eeh d87653c0d2 Switch to ofpci. 2002-05-06 22:34:40 +00:00
eeh 91c28a3626 Add code to attach ofpci. 2002-05-06 22:29:22 +00:00
eeh ba4db702d5 Recognize `ofpci' as a PCI bus. 2002-05-06 22:20:57 +00:00
eeh 19fcb9e555 Fix printing during attach and get rid of pci_cd that's provided by the linker. 2002-05-06 22:20:07 +00:00
eeh 24954ac8ae Add ofpci_make_tag(). 2002-05-06 22:18:51 +00:00
eeh 2ec18b07b9 Provide pci_cd if needed. 2002-05-06 22:12:43 +00:00
eeh 1805506872 Add ofpci and ofppb. 2002-05-06 19:48:05 +00:00