summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Call bus_generic_detach on pcic before deleting the children. Thisimp2000-08-191-1/+4
| | | | | | has the side effect of detaching the children before I delete them. When I put the last commits in a loop for loop it died after 5 or so iterations. After this change, I lasted 50 before I stopped the test.
* Remove pcic_isa_identify. I don't think it is needed.imp2000-08-193-26/+21
| | | | | | | Add pcic_detach which removes all of the pcic's children. This lets me load/unload pcic multiple times w/o having multiple instances of each slot attached to pcic.
* Increase the default NAPIC from 1 to 2 as a bandaid until we allocatemsmith2000-08-183-3/+3
| | | | these dynamically (ie. typically you shouldn't have to set NAPIC at all)
* Introduce vop_stdinactive() and make it the default if no vop_inactivephk2000-08-1811-159/+18
| | | | | | is declared. Sort and prune a few vop_op[].
* Merged from sys/i386/i386/machdep.c revision 1.402.kato2000-08-182-0/+36
|
* The slip driver used to allocate a mbuf cluster without attachingdwmalone2000-08-182-9/+22
| | | | | | | | | | it to a mbuf. This patch makes it attach it to mbuf. This patch is in preperation for Bosko Milekic's mbuf external reference counting patches. PR: 19866 (first stage) Submitted by: Ian Dowse <iedowse@maths.tcd.ie> Reviewed by: alfred
* Don't let an illegal value for dr7 get set, which can lead to anbsd2000-08-172-0/+36
| | | | | | unexpected TRCTRAP. Reported by: John W. De Boskey <jwd@FreeBSD.org>
* - Fixed the conversion to bus_space interface.nyan2000-08-1712-5430/+2580
| | | | | | - Added PC-98 Cbus devices support. The original patch is submitted by chi@bd.mbn.or.jp (Chiharu Shibata) - Removed old ed driver.
* Add support for loading this as a module (before there were someimp2000-08-172-11/+16
| | | | | | | | | problems). Also pick an irq if one isn't specified. Ditto for memory. Add additional printfs in the error paths. These will disappear in time. There are still some panics, but this is a good checkpoint.
* Add in a hack that installs 'src/sys/${MACHINE_ARCH}/GENERIC.hints' asjhb2000-08-171-0/+5
| | | | | | | | | /boot/device.hints in the bin dist during releases so that current snapshots have a chance of booting up ok after installing. The real fix for this problem is to rewrite userconfig in Forth, stick it in the loader, axe userconfig from the kernel, and extract the hints from the booted kernel in sysinstall similar to the way we generate /boot/kernel.conf right now. For now, however, this will have to do.
* Fix a couple cases where p_trespass wasn't transitioned into place.green2000-08-161-9/+3
| | | | Make RTP_SET (rtprio) only accessible to real root, not root in jails.
* Prepare for a cleanup of pmap module API pollution introduced by thetegge2000-08-164-18/+28
| | | | | | | | | | | | | | | suggested fix in PR 12378. Keep track of all existing pmaps independent of existing processes. This allows for a process to temporarily connect to a different address space without the risk of missing an update of the original address space if the kernel grows. pmap_pinit2() is no longer needed on the i386 platform but is left as a stub until the alpha pmap code is updated. PR: 12378
* backout previous change for nowdarrenr2000-08-161-1/+0
|
* add extern for inetswdarrenr2000-08-161-0/+1
|
* add missing splx(), when outgoing interface queue is full on tunnelleditojun2000-08-162-0/+4
| | | | IPsec packet output. KAME PR 280.
* Rearrange the probe a bit, hopefully this will help to eleminatesos2000-08-164-145/+145
| | | | | | | | | | | some of the fake devices sometimes seen on single device ATA channels. Proberly fail on failures in ata-disk.c, retry instead of hang. Cleanup the VIA probe/init code a bit. Fix a couble of missing free's in atapi-cd.c in the changer code.
* open_drive:grog2000-08-161-16/+21
| | | | | | | | | | | | | Add support for AMD RAID controllers as "disks". Requested-by: Marius Bendiksen <mbendiks@eunet.no> Remove potential panic when attempting to open non-existent drivers. init_drive: Return error codes correctly. Previously it would occasionally return 0. The error was redetected elsewhere, but this was causing a number of confusing error messages.
* Add another USR modem.peter2000-08-152-0/+2
| | | | | PR: 20621 Submitted by: Masanori Taira <mtaira@logicaleffect.com>
* Install mode 644, not mode 664 during kernel compile. Yes, Peter, I amkris2000-08-151-1/+2
| | | | psycho :-)
* Fixed determination method for sector size of the 2nd IDE HDD.kato2000-08-151-1/+1
|
* repair endianness issue in IN_MULTICAST().itojun2000-08-153-5/+9
| | | | | | again, *BSD difference... From: Nick Sayer <nsayer@quack.kfu.com>
* Add three more control messages to complement their opposites:archie2000-08-152-10/+103
| | | | | NGM_ETHER_SET_ENADDR, NGM_ETHER_GET_PROMISC, and NGM_ETHER_GET_AUTOSRC. Alter parsing algorithm so the EN address really looks like one.
* Export the functionality of SIOCSIFLLADDR with if_setlladdr()archie2000-08-152-25/+51
| | | | | | and add some more rigorous sanity checking in the process. Reviewed by: freebsd-net
* Fixed PunchFW code segmentation violation bug.ru2000-08-141-5/+4
| | | | Reported by: Christian Schade <chris@cube.sax.de>
* Use queue(3) LIST_* macros for doubly-linked lists.ru2000-08-141-65/+18
|
* awictl configuration interface is never used and now it is replaced byonoe2000-08-141-72/+0
| | | | wicontrol(8).
* add dev/awi/awi_wicfg.c to support wi(4) compatible configuration interface.onoe2000-08-141-0/+3
| | | | | add dev/awi/awi_wep.c to support WEP for awi. add dependency for awi to crypto/rc4/rc4.c
* Add support for WEP functionality.onoe2000-08-144-369/+1629
| | | | | | | Add support for wi(4) compatible configuration interface. It enables wicontrol(8) to configure some 802.11 specific parameters. Some minor fixes from NetBSD. Obtained from: NetBSD current
* Change the argument for SIOCG80211NWID/SIOCS80211NWID to include theonoe2000-08-141-3/+25
| | | | | | | length of NWID. This breaks binary compatibility but only the awi driver refers this ioctl; no userland tools refers it. Add WEP stuff. Obtained from: NetBSD current
* Merged from sys/i386/i386/machdep.c revision 1.401.kato2000-08-142-0/+2
|
* This file contains a shim just for NetBSD, and not used in FreeBSD at all.onoe2000-08-141-445/+0
|
* Newbusify ed driver.tanimura2000-08-143-389/+482
| | | | Partly submitted by: alex
* This patch appears to solve the problems with recording resultingnsayer2000-08-131-4/+13
| | | | | | in bogus hwptr warnings. Further comments sought on -hackers were not forthcoming. I can only hope that calling DELAY() like this doesn't cause any heartburn.
* CAM, the module: scbus, da, cd, and st wrapped in one module.n_hibma2000-08-134-2/+61
| | | | | | | Make the umass driver depend on this module. Makes it possible to compile the kernel without SCSI support and load it when for example a USB floppy is conencted.
* From NetBSD:n_hibma2000-08-132-22/+52
| | | | | | | | | | | | | | Make it possible to move a device to its unconfigured state by using config #0. Add some comments. Change error reporting in port reset function. usbd_devinfo_vp(): search the know devs array also if the device doesn't return product description (e.g. Kye's Genius NetScroll mouse returns vendor, but not product); the strings returned by device are still preferred to those in the array, though
* Add more CDC defines.n_hibma2000-08-131-1/+10
|
* Fake the Power On command on the virtual hub.n_hibma2000-08-131-1/+4
| | | | | | | This removes the two IOERROR's on startup a many has been seeing on UHCI controllers. Taken from NetBSD.
* Add output of per battery information to apm(1).ume2000-08-133-29/+112
| | | | | | New ioctl APMIO_GETPWSTATUS is introduced. Reviewed by: -mobile and -current folks (no objection)
* Add PAO devices supported by drivers.alex2000-08-132-40/+62
|
* Fix off by one error in track# calculation.sos2000-08-131-4/+4
|
* Include machine/cputypes.h so we get the cpu_class variable. This is neededjhb2000-08-132-0/+2
| | | | if I386_CPU is defined in the kernel config file.
* resolve conflictsdarrenr2000-08-1318-182/+712
|
* Fixed null pointer panic for accessing "meminfo" when there is no swap.bde2000-08-123-6/+21
|
* Make compilable with -DIPFILTER.ume2000-08-122-2/+7
| | | | | | | Because I don't use ipfilter at all, this is not tested. I don't know if ipfilter is work for IPv6. Submitted by: yoshiaki@kt.rim.or.jp
* Merged from sys/boot/i386/Makefile.inc revision 1.2.kato2000-08-121-0/+1
|
* Merged from sys/i386/i386/machdep.c revision 1.400.kato2000-08-122-0/+38
|
* Add -mpreferred-stack-boundary=2 to CFLAGS for i386. This and libstandpeter2000-08-112-0/+4
| | | | | reduces /boot/loader from 163840 bytes to 155648 and pxeboot from 165888 bytes to 157696 bytes.
* Oops, forgot this file. Log message for completeness:peter2000-08-111-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up some low level bootstrap code: - stop using the evil 'struct trapframe' argument for mi_startup() (formerly main()). There are much better ways of doing it. - do not use prepare_usermode() - setregs() in execve() will do it all for us as long as the p_md.md_regs pointer is set. (which is now done in machdep.c rather than init_main.c. The Alpha port did it this way all along and is much cleaner). - collect all the magic %cr0 etc register settings into one place and have the AP's call that instead of using magic numbers (!!) that keep changing over and over again. - Make it safe to call kthread_create() earlier, including during the device probe sequence. It doesn't need the callback mechanism that NetBSD's version uses. - kthreads created this way are root-less as they exist before the root filesystem is mounted. init(1) is set up so that it aquires the root pointers prior to running. If other kthreads want filesystem acccess we can make this code more generic. - set all threads start times once we have decided what time it is. - init uses a trampoline rather than the evil prepare_usermode() hack. - kern_descrip.c has a couple of tweaks to deal with forking when there is no rootdir or cwd etc. - adjust the early SYSINIT() sequence so that a few prereqisites are in place. eg: make sure the run queue is initialized before doing forks. With this, the USB code can easily create a kthread to do the device tree discovery. (I have tested it, it works nicely). There are still some open issues before this is truely useful. - tsleep() does not like working before the clock is running. It sort-of tries to spin wait, but it can do more useful things now. - stopping a kthread in kld code at unload time is "interesting" but we have a solution for that. The Alpha code needs no changes for this. It already uses pretty much the same strategies, but a little cleaner.
* Fix a bug brought to light by the people working on SMPng. I don't quitewpaul2000-08-112-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | understand exactly what it is about SMPng that tickles this bug. What I do know is that the foo_init() routine in most drivers is often called twice when an interface is brought up. One time is due to the ifconfig(8) command calling the SIOCSIFFLAGS ioctl to set the IFF_UP flag, and another is probably due to the kernel calling ifp->if_init at some point. In any case, the SMPng changes seem to affect the timing of these two events in such a way that there is a significant delay before any packets are sent onto the wire after the interface is first brought up. This manifested itself locally as an SMPng test machine which failed to obtain an address via DHCP when booting up. It looks like the second call to fxp_init() is happening faster now than it did before, and I think it catches the chip while it's in the process of dealing with the configuration command from the first call. Whatever the case, a FXP_CSR_SCB_CNA interrupt event is now generated shortly after the second fxp_init() call. (This interrupt is apparently never generated by a non-SMPng kernel, so nobody noticed.) There are two problems with this: first, fxp_intr() does not handle the FXP_CSR_SCB_CNA interrupt event (it never tests for it or does anything to deal with it), and second, the meaning of FXP_CSR_SCB_CNA is not documented in the driver. (Apparently it means "command unit not active.") Bad coder. No biscuit. The fix is to have the FXP_CSR_SCB_CNA interrupt handled just like the FXP_SCB_STATACK_CXTNO interrupt. This prevents the state machine for the configuration/RX filter programming stuff from getting wedged for several seconds and preventing packet transmission. Noticed by: jhb
* Fix indentation ruined by previous commit.n_hibma2000-08-111-10/+10
|
OpenPOWER on IntegriCloud