summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* OpenFirmware PCI support code.benno2002-07-092-0/+273
| | | | This and the sparc64 equivalent should probably be merged at some point.
* Changes for KSE3.benno2002-07-097-0/+158
| | | | Submitted by: Peter Grehan <peterg@ptree32.com.au>
* Add this file, which I forgot in a previous commit.benno2002-07-091-0/+34
| | | | | | This relates to the trap/interrupt cleanup. Submitted by: Peter Grehan <peterg@ptree32.com.au>
* 1) Add busdma machdep code.benno2002-07-095-230/+548
| | | | | | 2) Add bus_pio.h and bus_memio.h (which do nothing). Submitted by: Peter Grehan <peterg@ptree32.com.au> (1)
* Driver for OpenPIC compatible interrupt controllers.benno2002-07-094-27/+548
| | | | It's fairly PowerMac specific at the moment, but that should be fixable.
* - Add the "compatible" property to the list that we keep in ivars.benno2002-07-093-46/+394
| | | | | - Add interrupt alloc/setup/teardown/dealloc support, via whichever PIC OpenFirmware gives us.
* Add interrupt handling support code.benno2002-07-094-0/+395
| | | | | | I've tried to make this fairly platform-independant as some PowerPC platforms may not have openpic-style interrupt controllers. This may not have the best performance but it works for now.
* Change one variable to make it easier to switch between ipfw and ipfw2luigi2002-07-091-5/+3
|
* Remove an unused type.mike2002-07-092-6/+0
|
* Move the type definition of ointhand2_t from i386/include/types.h tomike2002-07-092-3/+4
| | | | | | i386/isa/isa_device.h. This is a more appropriate location and helps restrict <machine/types.h> to only types that exist on all platforms.
* Delay the creation of the ugenX device node until we're certainjoe2002-07-091-5/+6
| | | | | | that the attach succeeded. (Fixes a potential panic for devices that fail to attach properly and are subsquently unplugged and then plugged back in again.)
* vm_page_queue_free_mtx is a spin mutex, not a normal sleep mutex.peter2002-07-081-4/+4
| | | | | | | | | | | | | I do not know why this didn't panic my box, but I have most certainly been using it: peter@overcee[3:14pm]~src/sys/i386/i386-110> sysctl -a | grep zero vm.stats.misc.zero_page_count: 2235 vm.stats.misc.cnt_prezero: 638951 vm.idlezero_enable: 1 vm.idlezero_maxrun: 16 Submitted by: Tor.Egge@cvsup.no.freebsd.org Approved by: Tor's patches are never wrong. :-)
* Turn the zeroidle process off for SMP systems, there is still a possiblepeter2002-07-081-0/+4
| | | | | | | | TLB problem when bouncing from one cpu to another (the original cpu will not have purged its TLB if the it simply went idle). Pointed out by: Tor.Egge@cvsup.no.freebsd.org Approved by: Tor is never wrong. :-)
* Fix a bug caused by dereferencing an invalid pointer whenluigi2002-07-081-62/+65
| | | | | | | | | no punch_fw was used. Fix another couple of bugs which prevented rules from being installed properly. On passing, use IPFW2 instead of NEW_IPFW to compile the new code, and slightly simplify the instruction generation code.
* No functional changes, but:luigi2002-07-081-279/+267
| | | | | | | | | | | | | | Following Darren's suggestion, make Dijkstra happy and rewrite the ipfw_chk() main loop removing a lot of goto's and using instead a variable to store match status. Add a lot of comments to explain what instructions are supposed to do and how -- this should ease auditing of the code and make people more confident with it. In terms of code size: the entire file takes about 12700 bytes of text, about 3K of which are for the main function, ipfw_chk(), and 2K (ouch!) for ipfw_log().
* Remove one unused command name.luigi2002-07-081-1/+0
|
* Forgot to update one field name in one of the latest commits.luigi2002-07-081-2/+2
|
* Back out previous TCBHASHSIZE change. This should not be a kernel option.mp2002-07-082-7/+0
| | | | Pointed out by: bde
* Add a VFS_START() call in vfs_mountroot_try() for the sakemux2002-07-081-1/+2
| | | | | | | | | of being correct. None of the root mountable filesystems do something at VFS_START(). Shorten a comment to fix a style bug while I'm here. PR: kern/18505
* Add 2002 to copyright.mjacob2002-07-081-1/+1
| | | | | | | Oops; I forgot for previous delta... If we're and FC or ULTRA2 or better card, we can have a 1024 element request queue instead of 256. MFC after: 1 week
* Add get/set param ioctl support.mjacob2002-07-082-135/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove sim queue freezes for resource shortages. I've had too many strange race conditions where I freeze on a resource shortage but never get unfrozen. Consolidate the remaining sim queue freeze condition (for loopdown) into an inline with debug messages that allows us to track problems at ISP_LOGDEBUG0 level easier. Change a bunch of debug messages about loop down/up conditions to ISP_LOGDEBUG0 level. Remove dead isp_relsim code. Change some internal flag stuff for efficiency. Complain vociferously if we try and use our FC scratch area while it's busy being used already (I mean, if we don't have solaris' ability to sleep as an interrupt thread which would allow us to just use a p/v semaphore, at least *say* when you've just borked yourself). Add infrastructure to allow overrides of hard loopid && initiator id from boot variables. Fix the usual quota of silly bugs: + 'ktmature' needs to be per-instance. Argh. + When entering isp_watchdog, set intsok to zero, preserving old value to restore later. It's not nice to try and sleep from splsoftclock. + Fix tick overflow buglet in checking timeout value. MFC after: 1 week
* Add get/set param ioctls.mjacob2002-07-081-0/+23
| | | | MFC after: 1 week
* Add override so that we can force set our hard loopdid.mjacob2002-07-081-0/+14
| | | | MFC after: 1 week
* Remove the 'bogus registrant' hack for fabric searches. It reallymjacob2002-07-081-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | turns out that there's something of a hole in our new fabric name server stuff. We ask the name server for entities that have registered as a specific type. That type is FC-SCSI. If the entity hasn't performed a REGISTER FC4 TYPES, the fabric nameserver won't return it. This brings this driver to a bit of a fork in the road as to what the right thing to do is. For servicing the needs of accessing FC-SCSI devices, this method is fine, and to be preferred. It is extremely unlikely we're interested in fabric devices that *don't* register correctly. If I ever get around to adding an FC-IP stack, then asking for devices that have registers as FC-IP types is also the right thing to do. So- asking the fabric nameserver for a specific type is fine, *as long as you are only interested in specific types*. If, on the other hand, you want to create (as for management tool support) a picture of everything on the fabric, this is *not* so fine. There are a large class of FC-SCSI *initiators* who *don't* correctly register, so we never will *see* them. Is this a problem? Yes, but only a little one. If we want to do such management tool support, we should probably run a *different* fabric nameserver query algorithm. Better yet, we should talk to the management nameserver in Brocade switches instead of the standard FC-GS-2 fabric nameserver (which can be unwieldy). Other changes: if we've overrrides marked, don't set some default values from reading NVRAM. This allows us to override things like EXEC throttle without having to ignore NVRAM entirely. MFC after: 1 week
* Move __offsetof() macro from <machine/ansi.h> to <sys/cdefs.h>. It'smike2002-07-088-31/+7
| | | | | | hardly MD, since all our platforms share the same macro. It's not really compiler dependent either, but this helps in reducing <machine/ansi.h> to only type definitions.
* Bring poll.h up to conformance with POSIX.1-2001 by adding somemike2002-07-081-9/+11
| | | | | visibility conditionals, adding the nfds_t type, and changing the poll() prototype a little. Update the manual to match.
* Fixed some printf format errors (4 new ones reported by gcc and 5 nearbybde2002-07-081-7/+7
| | | | old ones not reported by gcc). This helps unbreak LINT.
* Fixed some printf format errors (one new one reported by gcc and 3 nearbybde2002-07-081-2/+2
| | | | old ones not reported by gcc). This helps unbreak LINT.
* Comment out apm; ACPI is the modern replacement, and folks who reallymarkm2002-07-084-4/+4
| | | | | | need it can uncomment it. This may buy us some kernel space. Discussed with: imp & msmith (quite a while ago)
* Reenable the m3 interrupts in m3_pci_resume() and do notrobert2002-07-081-2/+2
| | | | enable them in m3_pci_attach().
* Remove #define APIC_INTR_HIGHPRI_CLOCK - this is no longer usedpeter2002-07-081-7/+0
| | | | (see i386/isa/intr_machdep.c 1.72)
* The clock is already allocated as 'fast' - no need to try and intercept apeter2002-07-084-32/+0
| | | | 'slow' interrupt registration and convert it into 'fast'.
* Cosmetic. Remove #if 0 definition of vtophys() - it predates 4MB pages.peter2002-07-082-16/+0
| | | | Remove avtophys(), it isn't referenced anywhere.
* Add a special page zero entry point intended to be called via the singlepeter2002-07-0810-11/+162
| | | | | | | | | | | | | | | threaded VM pagezero kthread outside of Giant. For some platforms, this is really easy since it can just use the direct mapped region. For others, IPI sending is involved or there are other issues, so grab Giant when needed. We still have preemption issues to deal with, but Alan Cox has an interesting suggestion on how to minimize the problem on x86. Use Luigi's hack for preserving the (lack of) priority. Turn the idle zeroing back on since it can now actually do something useful outside of Giant in many cases.
* Document TCBHASHSIZE in NOTES and add it to the allowable kernel options.mp2002-07-082-0/+7
| | | | | | PR: 32912 Submitted by: Carl Schmidt <carl@slackerbsd.org> MFC after: 3 days
* - VT_PSEUDOFS and VT_PROCFS support locking nowjeff2002-07-081-3/+4
| | | | - Remove VBLK from the list of vtypes that are ignored for locking ops.
* s/procrunnable/kserunnable/ in a commentpeter2002-07-084-4/+4
|
* Lock down pseudofs:jeff2002-07-082-0/+29
| | | | | | | - Initialize lock structure in vncache_alloc - Return locked vnodes from vncache_alloc - Setup vnode op vectors to use default lock, unlock, and islocked - Implement simple locking scheme required for lookup
* Remove OBE prototype for procrunnable()peter2002-07-081-1/+0
|
* Avoid vm_page_lookup() [grabs a spinlock] and just process the upagepeter2002-07-081-14/+9
| | | | | | object memq instead. Suggested by: alc
* Fix a hideous TLB bug. pmap_unmapdev neglected to remove the devicepeter2002-07-082-8/+46
| | | | | | mappings from the page tables, which were mapped with PG_G! We could reuse the page table entry for another mapping (pmap_mapdev) but it would never have cleared any remaining PG_G TLB entries.
* Enable netboot support by default, since it can now coexist with disk andjake2002-07-071-3/+3
| | | | cdrom support. This avoids having to distribute separate loaders.
* Collect all the (now equivalent) pmap_new_proc/pmap_dispose_proc/peter2002-07-0714-1022/+277
| | | | | | | | | | | | | pmap_swapin_proc/pmap_swapout_proc functions from the MD pmap code and use a single equivalent MI version. There are other cleanups needed still. While here, use the UMA zone hooks to keep a cache of preinitialized proc structures handy, just like the thread system does. This eliminates one dependency on 'struct proc' being persistent even after being freed. There are some comments about things that can be factored out into ctor/dtor functions if it is worth it. For now they are mostly just doing statistics to get a feel of how it is working.
* Update for post-kse3 pmap kthread allocation changespeter2002-07-073-45/+27
|
* Fix (s/proc/thread/) some typos in two panic messages.peter2002-07-071-2/+2
|
* Remove 0 initializers for global/static variables, so they end up inluigi2002-07-071-4/+4
| | | | | BSS instead of DATA. This marginally reduces the kernel image size, though the difference is almost irrelevant for compressed kernels.
* - Require locks for getattr. At some point this could only require sharedjeff2002-07-071-3/+1
| | | | locks.
* - Delay unlocking a vnode in linker_hints_lookup until we're actually donejeff2002-07-071-5/+4
| | | | | with it. - Remove a now stale comment about improper vnode locking.
* Make this compile on 64 bit platformspeter2002-07-072-8/+8
|
* Change help documentation for bootfile and module_path to reflectmp2002-07-071-6/+8
| | | | | | | | the actual code. Both use a ";" (not a ",") to delimit entries. PR: 39679 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net> MFC after: 3 days
OpenPOWER on IntegriCloud