summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* - If the OACTIVE flag is set on entry to xl_start(), check to see if thewpaul1998-09-081-4/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | transmitter is wedged. If so, try to unwedge it, process any descriptors that might need to be free()d, then proceed. - Disable the 'background' autonegotiation performed during bootstrap. What happens currently is that the driver starts an autoneg session, the sets a timeout in the ifnet structure and returns. Later, when the timer expires, the watchdog routine calls the autoneg handler to check the results of the session. The problem with this is that the session may not complete until some point after we have started to mount NFS filesystems, which can cause the mounts to fail. This is especially troublesome if booting with an NFS rootfs: we need the interface up and running before reaching the mountroot() code. The default behavior now is to do the autoneg synchronously, i.e. wait 5 seconds for the autoneg to complete before exiting the driver attach routine. People who want the old behavior can compile the driver with XL_BACKGROUND_AUTONEG #defined. This has no effect on autoneg sessions initiated by 'ifconfig xl0 media autoselect.' This slows the probe down a little, but it's either that or botching NFS mounts at bootup. - If xl_setmode_mii() is called and there's an autoneg session in progress, cancel it, _then_ set the modes.
* Add new atapi-cd driver that supports atapi CD-R/RW drives.sos1998-09-0815-36/+5570
| | | | This is only a stop-gab solution to get atapi burner support into 3.0.
* Add definitions for the ELF section attribute flags, SHF_*.jdp1998-09-081-1/+7
| | | | Submitted by: Robert Nordier <rnordier@nordier.com>
* Make PCIC_RESUME_RESET an proper option.brian1998-09-087-9/+25
| | | | | | My laptop (a CTX Cybernote) needs this. It claims to have a PC-Card VLSI 82C146 (5 mem & 2 I/O windows)
* Oops, don't assume that the environment is normal in devfs_mount().bde1998-09-081-4/+6
| | | | | It isn't for the hidden mountpoint. The static vfs's haven't been attached then, so mp->mnt_vfc can't be valid.
* Sync with sys/i386/isa/clock.c revision 1.125.kato1998-09-083-9/+9
|
* Sync with sys/i386/i386/userconfig.c revision 1.107.kato1998-09-081-2/+5
|
* fix a problem with our definition of SNDCTL_DSP_GETBLKSIZE, to letluigi1998-09-081-0/+2
| | | | the FreeBSD x11amp work (same as in -stable)
* Make profiling work for ELF. gprof now autodetects the format ofjdp1998-09-072-2/+10
| | | | | | | | | | | the executable file, so it will work for both a.out and ELF format files. I have split the object format specific code into separate source files. It's cleaner than it was before, but it's still pretty crufty. Don't cheat on your make world for this update. A lot of things have to be rebuilt for it to work, including the compiler and all of the profiled libraries.
* Load linux emulator lkm only when not already loaded. This avoidscracauer1998-09-072-4/+18
| | | | | | | leftover files in /tmp. Script slightly modified from PR version to use fewer processes. PR: i386/7725 Submitted by: Stefan Eggers seggers@semyam.dinoco.de
* Removed statically configured mount type numbers (MOUNT_*) and allbde1998-09-0728-123/+83
| | | | | | | | | references to them. The change a couple of days ago to ignore these numbers in statically configured vfsconf structs was slightly premature because the cd9660, cfs, devfs, ext2fs, nfs vfs's still used MOUNT_* instead of the number in their vfsconf struct.
* Add entries for xl0, tlc0 and adv0. Some of these aren't evenjkh1998-09-071-2/+5
| | | | in LINT!
* Put the zombie ffs sysctl node in "notyet" state together with its fewbde1998-09-073-7/+5
| | | | remaining children. Prepare it for MOUNT_UFS going away.
* Use Elf_Addr to store addresses instead of Elf_Word.dfr1998-09-071-4/+4
|
* Device framework code now declared in MI code.dfr1998-09-074-64/+58
|
* Fix problem reported on bugtraq: check permission of device mountedguido1998-09-072-2/+38
| | | | | for non-root users. Fortunately, the default for vfs.usermount is 0. Tested by: "Jan B. Koum " <jkb@best.com
* Make MFS do the default on VOP_FREEBLKS().phk1998-09-071-1/+2
| | | | | XXX: we could deallocate the storage, but somebody else will have to pick up that task.
* Made unloading of the nfs LKM sort of work. This is mainly to testbde1998-09-0716-32/+190
| | | | | | detachment of vfs sysctls. Unloading of vfs LKMs doesn't actually work for any vfs, since it leaves garbage pointers to memory allocation control structures.
* Don't go below the low water mark of free pages due to optional prefaultingtegge1998-09-062-2/+20
| | | | | of pages. PR: 2431
* Maintain a mapping from irq number to (ioapic number, int pin) tuple,tegge1998-09-0632-275/+1010
| | | | | | | | | | | | and use this when masking/unmasking interrupts. Maintain a mapping from (iopaic number, int pin) tuple to irq number, and use this when configuring devices and programming the ioapics. Previous code assumed that irq number was equal to int pin number, and that the ioapic number was 0. Don't let an AP enter _cpu_switch before all local apics are initialized.
* Clean LINTrvb1998-09-069-30/+54
|
* Patch the transmit error handler to avoid following NULL pointers andwpaul1998-09-061-3/+4
| | | | | | | | | | | | | | | | | | | | | | generating a trap 12 panic. The code blindly assumed that in the event of a transmit error, the packet that caused the error would still be at the head of the driver's transmit queue (sc->xl_cdata.xl_tx_head). However in the case of error 82 (which indicates that a transmit error occurred after part of the transmit FIFO memory has been reclaimed) this is not true: the TX queue has already been flushed, and the pointer to the head of the queue is NULL, so trying to dereference the pointer to find the transmit descriptor address causes a crash. The code now checks for a NULL pointer before trying to reload the chip's download pointer register. There may still be error messages printed warning of the transmit error, but no panic should occur. Note that this eror code is only generated with "cyclone" chipsets (3c900B, 3c905B, and presumeably the 3c980 server adapter). It should only appear during periods of heavy traffic, probably only on non-switched networks. Problem reported by: Darcy Buskermolen <darcy@ok-connect.com>
* RFC 1644 has the status "Experimental Protocol", which means:phk1998-09-062-4/+4
| | | | | | | | | | 4.1.4. Experimental Protocol A system should not implement an experimental protocol unless it is participating in the experiment and has coordinated its use of the protocol with the developer of the protocol. Pointed out by: Steinar Haug <sthaug@nethelp.no>
* Store formatted panic string in static buffer to make it available laterache1998-09-063-7/+22
| | | | | for savecore. Previous code give only panic format to savecore
* Change the ELF64_R_SYM() to shift 32 bits instead of 8 bits to matchjb1998-09-051-23/+24
| | | | | | | | | | binutils. Ensure that three of the structures are the size that binutils writes them. I just love code that doesn't share header files to avoid problems like these. With this change rtld-elf works on alpha.
* Ignore the statically configured vfs type numbers and assign vfsbde1998-09-056-25/+73
| | | | | | | | | | | type numbers in vfs attach order (modulo incomplete reuse of old numbers after vfs LKMs are unloaded). This requires reinitializing the sysctl tree (or at least the vfs subtree) for vfs's that support sysctls (currently only nfs). sysctl_order() already handled reinitialization reasonably except it checked for annulled self references in the wrong place. Fixed sysctls for vfs LKMs.
* Instantiate `nfs_mount_type' in a standard file so that it is presentbde1998-09-059-16/+13
| | | | | | | | when nfs is an LKM. Declare it in a header file. Don't forget to use it in non-Lite2 code. Initialize it to -1 instead of to 0, since 0 will soon be the mount type number for the first vfs loaded. NetBSD uses strcmp() to avoid this ugly global.
* Fixed bogotification of pseudocode for syscall args by rev.1.53 ofbde1998-09-053-10/+10
| | | | syscalls.master.
* Sysctl nodes are written to, so don't put them in the text section.bde1998-09-051-4/+4
| | | | | | | | Our write protection of the kernel text on i386's doesn't actually work in many cases: - use of the 4MB page completely breaks it. - CR0_WP isn't set until just before init is started, so the kernel text is not write protected during kernel initialization.
* Add a new vnode op, VOP_FREEBLKS(), which filesystems can use to informphk1998-09-059-19/+99
| | | | | | | | | | | | | device drivers about sectors no longer in use. Device-drivers receive the call through d_strategy, if they have D_CANFREE in d_flags. This allows flash based devices to erase the sectors and avoid pointlessly carrying them around in compactions. Reviewed by: Kirk Mckusick, bde Sponsored by: M-Systems (www.m-sys.com)
* Fixed recently perpetrated printf format errors.bde1998-09-053-8/+6
|
* Don't comment out dead code. Remove it.bde1998-09-051-18/+16
| | | | | | Fixed disgustingly long lines. Improved English in some comments.
* Add support for MACHINE=pc98. This leaves a single legacy entry forjb1998-09-051-8/+3
| | | | the old aout bootloader.
* Add a GENERICupgrade config file for pc98 users to upgrade to elfjb1998-09-051-0/+212
| | | | in the same way as i386 users. This is a copy of GENERIC98.
* Sync with sys/i386/conf/files.i386 revision 1.201.kato1998-09-052-2/+4
|
* Sync with sys/i386/conf/Makefile.i386 revision 1.121.kato1998-09-052-4/+8
|
* Increase 'maxusers' to 32.kato1998-09-052-4/+4
|
* Make irq forwarding truely functional.luoqi1998-09-043-33/+3
|
* Increase 'maxusers' to 32; with the number of people using GENERIC asmsmith1998-09-042-4/+4
| | | | | | | their one-size-fits-all kernel, this should help reduce the "out of foo" reports. Reviewed by: jkh
* Cosmetic changes to the PAGE_XXX macros to make them consistent withdfr1998-09-041-27/+27
| | | | the other objects in vm.
* Device registration temporaly removed until major number allocation ok.nsouch1998-09-042-5/+8
|
* Modify the xl_mediacheck() routine to also test for the case where thewpaul1998-09-042-19/+44
| | | | | | | | | | | | | | | | XCVR value read from the EEPROM is completely wrong. I've had one report of a 3c900 card that returns an xcvr value of 14, which is impossible (the manual states that all vales above 8 are reserved). If the value is out of the expe Add PCI vendor ID for the 3c980-TX server adapter card, which apparently also uses the cyclone chip. Graciously supplied Mats O Jansson <maja@cntw.com>. Also noted by Mats, the 10mpbs cyclone adapters should be named 3c900B, not 3c905B. I haven't actually encountered a 10mbps only cyclone adapter yet, nor anybody who has one, but this makes sense given the naming scheme used for the older boomerang adapters.
* make sbflush panic messages more descriptiveache1998-09-042-6/+8
|
* PAGE_WAKEUP -> vm_page_wakeupache1998-09-042-14/+14
|
* Cosmetic changes to the PAGE_XXX macros to make them consistent withdfr1998-09-0418-139/+165
| | | | the other objects in vm.
* Make SimOS work again.dfr1998-09-041-38/+57
|
* Make this build even if sio is not in the kernel.dfr1998-09-041-1/+7
|
* pcf.c added, support for the Philips PCF8584 I2C bus controllernsouch1998-09-042-2/+4
| | | | (this is part of the iicbus system)
* Generic plug-and-play enumerator infrastructure. Query suppliedmsmith1998-09-044-5/+249
| | | | | enumerators, crossreference returned identifiers with a text-format database and automatically load corresponding modules and dependancies.
* Reviewed by: Doug Rabsonnsouch1998-09-031-0/+65
| | | | | Submitted by: nsouch I2C and SMB files added + new bus arch. files description
OpenPOWER on IntegriCloud