Commit Graph

580 Commits

Author SHA1 Message Date
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
garbled
54ded9290c Make these files compile with -Wextra -Wno-unused 2006-10-30 17:54:29 +00:00
garbled
3dc1c33272 Add the crypto swcrypto and veriexec psuedo devices. Also add FILEASSOC
and VERIEXEC, following elad's lead.
2006-10-27 20:37:17 +00:00
garbled
e5bff3e418 A few changes so pnpbus devices can do isadma. Note that isadma still
does not seem to work properly on prep.
2006-10-27 19:52:51 +00:00
tsutsui
498acdb572 Use a non-zero quality for mftb counter. 2006-10-13 14:17:37 +00:00
chs
e8295642bd remove MALLOC_NOINLINE, it doesn't do anything anymore. 2006-10-02 03:28:29 +00:00
pavel
c1ebd304cc Replace wrong tests for character device (st.st_mode & S_IFCHR) by
S_ISCHR. Originally discovered by Paul Stoeber in OpenBSD.

OK elad@.
2006-09-23 20:10:14 +00:00
matt
7cac687e36 Generate an intermediate boot.elf with symbols. 2006-09-19 17:51:24 +00:00
garbled
9f65f017a3 Now that the interrupt bug on the 7043-140 is fixed, it also fixes the
long standing issue with interrupts onthe PowerStack E1.  Remove the
quirk entry for the PowerStack E1 and revert to using the IVR.
Also, add a \n to the attachment of the mk clock printf that was missing.
2006-09-07 20:13:05 +00:00
garbled
3053244401 Add preliminary support for the 7025-F40. The MPIC must not be wired up
by the initial PCI_NETBSD_CONFIGURE, nor should it be manually wired by
the indirect stuff.  This is all taken care of by the prep_init() function.
7025-F40 support supports the primary pci bus only.  The second PCI bus
on the machine is still unsupported, but the machine runs and can access
everything except for the two slots the other bus covers.
2006-09-06 22:32:56 +00:00
garbled
38209f62b7 Convert prep to MI todr 2006-09-05 06:32:21 +00:00
bjh21
e10108c7f2 Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere. 2006-09-03 13:51:23 +00:00
garbled
bb2f95cc58 hptide controller was tested on prep by a user. Adding to GENERIC 2006-09-01 07:41:57 +00:00
garbled
a9bf7a7670 I dunno how -Os crept into GENERIC, but yank it. 2006-09-01 07:23:51 +00:00
garbled
fcfc216b3b Fix a horrible bug in how we initialize the 8259 interrupt controller.
The bug displayed itself by locking up console output on a 7043-140
following a powercycle.  This may also have been the cause of bogus
interrupts on motorola class machines.
2006-09-01 07:02:28 +00:00
christos
e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
tsutsui
6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +00:00
skrll
1a3062e81b s/adpater/adapter/
Prompted by PR/34195
2006-08-14 06:22:33 +00:00
christos
b300b74469 Disable SYSTRACE by default on all kernels (discussed with core) 2006-08-12 15:29:52 +00:00
hubertf
ded0447fa8 spc(4) can also attach to pcmcia(4), as was already in hpcmips/GENERIC
for quite some time. Add it to all systems that have pcmcia SCSI.

Pointed out by Björn Johannesson <rherdware@yahoo.com> in private mail,
OK'd by matt@
2006-07-31 23:29:54 +00:00
garbled
a59f110c72 Rather than hardcode the location of the Interrupt Vector Register, we
try to locate it using the residual data.  On some machines this doesn't
work, so we fall back to hardcoding it.  This should fix isa interrupts
on the 7025-F40, which has the IVR at a different location.
2006-07-13 17:50:37 +00:00
garbled
40bedaf4c8 Add support for rebooting 7024 and 7025 models. Since I cannot figure
out how to properly reboot these machines, instead we make use of the
auto-poweron-alarm time, and power cycle the machine to simulate a
reboot.  This is a hack, but until I get documentation on these machines,
at least you will be able to reboot them.
2006-07-12 21:28:33 +00:00
garbled
793a3b26d8 Change how the MPIC/OpenPIC is configured at boot. Rather than scanning
for a magical PCI device location (that is sometimes wrong), we scan the
residual data for an MPIC, and if we find one, wire it up from there.
This will hopefully allow interrupts to work on the MPC750 and the
7025-F40. I suspect however the interrupt vector address on the 7025 will
still need some work.
2006-06-29 17:16:59 +00:00
liamjfoy
aeee5deab9 Add CARP to GENERIC kernel configs. CARP is not enabled by default.
ok: christos
2006-06-28 15:19:27 +00:00
garbled
d0b840b1df General fixups:
1) Fix support for the powerstack E1.  This machine needs to use the 8259
directly, and cannot use the prep interrupt vector register.  Place a
quirk entry in the table for the machine.
2) Add a new com0_vreset boot image.  The vreset code only works on a few
machines, and breaks others like the 7025-F40.  Its only limitedly useful
when used with the com0, so just make it an optional image the user can
install by hand if they want.
3) Bump the bootloader to 1.8 with the above change.
2006-06-27 23:26:13 +00:00
garbled
17ca05a76f 1) Modify pnpbus attachment code to properly decode pnp memory range packets.
2) Modify pnpbus attachment code to record the chipid of the device if it
   has one.
3) Change the clock probes to use the chipid, rather than relying on
potentially untrustworthy subtype and interface.
4) Add decoding of memory ranges to the RESIDUAL_DUMP code.
5) Add a we@pnpbus device to allow netbooting and root device detection
from an IBM we ethernet.  (it will only work if your firmware detects it)
6) Because I moved the pnpbus probe to occur prior to pci and isa, it
screwed up the root device detection and firmware path building code.
Completely rewrite the fw-path detection code to deal with this.
2006-06-23 03:08:41 +00:00
garbled
4c0cfa49ad Attach the pnpbus prior to attaching the pci bus on the prep. This
should allow us to probe for both pnp-attached devices and isa-attached
devices while preferring the pnpbus attachment point.
2006-06-21 20:08:11 +00:00
garbled
cb76e8b6d7 Update install WRT recent clock changes, and break INSTALL into INSTALL
and INSTALL_SMALL.  Since floppy images have to fit on one floppy, we
have to really cut down on the drivers on that image, but people
netbooting don't have that problem, so they deserve a more featured
kernel to install with. (namely one with raid support and more ethernet
drivers)
2006-06-20 17:29:07 +00:00
garbled
1efe96e909 Basic prep timecounter support. This greatly increases the stability of
ntp on my 7248, however, my 7043-140 is still a bit flaky.  I suspect the
only way to fix the 7043 is going to be writing a timecounter driver for
the 8254 present on these machines.  Either way, this makes some of the
machines better, and the other machines are still about the same as they
were before, so it's a net gain for the port.
2006-06-20 05:49:09 +00:00
garbled
aa0bc147ae A bit of clock rototill. It's safer to detect things known by the
residual with the pnpbus probes, than it is to do it with raw isa probes,
so I've replaced the isa mkclock and mcclock code with a pnpbus attachment.

While writing the mkclock code, I realized that on motorola prep machines
the mkclock uses the same port range as the nvram part. (it's actually
the same chip/part).  This was causing the nvram not to work on those
machines.  Now the nvram code will recognize this, and wire up the
mkclock as well.  The mkclock probe is just a stub probe used to
pre-detect the fact that this is one of those machines.
2006-06-15 18:15:32 +00:00
tsutsui
261274d592 Put newline if there is no input on Boot: prompt. 2006-06-10 07:49:29 +00:00
tsutsui
e684286988 Fix a botch on ANSIfy. 2006-06-09 18:11:58 +00:00
garbled
76847dcb92 Completely rework how we look up PCI interrupts on prep:
1) Rather than build an array of the pci->intr mappings, build a proplib
tree.
2) add a SIMPLEQ of device properties to the pci_chipset_tag to hold the
proplib trees of each bus.
3) Move the interrupt routing code from pci_conf_interrupt to pci_map_intr()
4) Deal properly with non-native PCI bridge chips that are not recognized
by the prep firmware, and therefore are not noted in the residual data.

The major win of this restructure is #4. Hopefully I haven't broken
anything. Tested on a 7248-100, 7043-140 and 7024-E20.
2006-06-09 01:19:10 +00:00
garbled
b18c709a99 Make the space for the ramdisk slightly larger. 2006-06-01 21:16:05 +00:00
garbled
fed113c6f4 Rewrite the pci bus attribute decodings to be human-readable by using the
proper pcipnp structure file to read them rather than magical array offsets.

Add more complete decoding of the VPD, including extendedvpd, and TLB.  While
I was here, fix a bug where we never printed the L1 cache data properly.
2006-05-30 23:56:38 +00:00
garbled
6a298274ec Add code to decode small vendor items that are documented. Namely we can
now decode the chipid, and L2 processor affinity data.

Also fix a bug where we were reporting the service processor type as a
memory controller.
2006-05-29 22:11:15 +00:00
garbled
c9e13db63a Implement partial support for the RS6K PCI Bridge found on 7025-F40
models.  This code was made possible by assistance from Cory Bajus.

Add code that asks the PCI bridge what it's config base address is, and
use that when wiring up an indirect bridge type.
Move prep's user segment register to 10, because the 7025's PCI config
address is at 11, where the user segment used to be.
Add a battable entry for 0xbf800000 for machines with RS6K bridges.

There is still probably work left to be done before a 7025-F40 is fully
supported.
2006-05-25 02:11:13 +00:00
garbled
1f280c6eaf Add a small convenience function 2006-05-24 16:10:18 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
garbled
4ea28c9a6f enable raid in GENERIC. it works. 2006-05-10 19:25:31 +00:00
garbled
a83699fcd9 add MEMORY_DISK_SERVER=0. only saves 600bytes. lame. 2006-05-10 18:40:33 +00:00
garbled
f32de2a8cc Enable a few options from i386's INSTALL_SMALL that save as much space as
possible.  I think this should save about 10k on prep's bootfloppies.
2006-05-10 17:53:12 +00:00
garbled
cd01d819fb Move PCI_NETBSD_CONFIGURE to std.prep. Add *.local files like i386 has. 2006-05-10 17:28:41 +00:00
garbled
a6d48d192d Switch prep to use the MI mbr/disklabel code. 2006-05-10 02:49:53 +00:00
garbled
5f1b3eb60e Use inb/outb macros instead of casting things to volatile. 2006-05-09 03:35:37 +00:00
garbled
5410dc443b convert some of the simple __asm statements to the standard powerpc
macros, like mtmsr().
2006-05-09 03:13:00 +00:00
garbled
ed0efbc5de de-__P these files. 2006-05-09 02:52:39 +00:00
garbled
cfbb4ec285 More KNF. That should be the rest of the .c files. 2006-05-09 02:48:36 +00:00