summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* kern_shutdown.c was more ANSI-C than K&R - remove the remnants of K&Rpeter2000-09-031-21/+12
| | | | support with extreme prejudice.
* gcc knows that savectx() is potentially a setjmp style dual-returnpeter2000-09-031-6/+5
| | | | | | | function which may lead to stack lossage and clobbered variables. This isn't the case here, but there is no way to tell gcc that. Work around this in a kinda bizzare way, but it shuts gcc up.
* libkern.h now internally uses the bzero() definition from sys/systm.h.peter2000-09-031-0/+1
| | | | | | | This is kinda important since the bzero symbol on i386 is not a function but a function pointer.. If memset() tried to call it as though it were a function, things would be less than satisfactory. In reality though this was not an actual problem and just caused compile warnings.
* Replace previous change by a move of a #include since something elsepeter2000-09-031-5/+3
| | | | | | #includes "smbus.h". There is still some bogus (but harmless) stuff here surrounding the #include <sys/bus.h> includes here and elsewhere in the bktr code.
* If we are going to test NSMBUS, we had better #include the file thatpeter2000-09-031-0/+1
| | | | | defines it. This creates more warnings rather than less though. These had gone undetected until now. :-(
* Fix warnings by moving static functions before they are used.peter2000-09-031-39/+39
|
* Complain if we cannot find loader(8) metadata.peter2000-09-033-0/+6
|
* Find the module metadata before the console init rather than after.peter2000-09-031-2/+4
| | | | This should repair consoles on the Alpha when using dynamic hints.
* This is real released software, let people think that.obrien2000-09-031-0/+1
|
* remove opt_devfs.hcg2000-09-022-2/+2
|
* update for phk's last devfs commitcg2000-09-021-10/+1
|
* Modify extended attribute protection model to authorize based onrwatson2000-09-022-43/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attribute namespace and DAC protection on file: - Attribute names beginning with '$' are in the system namespace - The attribute name "$" is reserved - System namespace attributes may only be read/set by suser() or by kernel (cred == NULL) - Other attribute names are in the application namespace - The attribute name "" is reserved - Application namespace attributes are protected in the manner of the target file permission o Kernel changes - Add ufs_extattr_valid_attrname() to check whether the requested attribute "set" or "enable" is appropriate (i.e., non-reserved) - Modify ufs_extattr_credcheck() to accept target file vnode, not to take inode uid - Modify ufs_extattr_credcheck() to check namespace, then enforce either kernel/suser for system namespace, or vaccess() for application namespace o EA backing file format changes - Remove permission fields from extended attribute backing file header - Bump extended attribute backing file header version to 3 o Update extattrctl.c and extattrctl.8 - Remove now deprecated -r and -w arguments to initattr, as permissions are now implicit - (unrelated) fix error reporting and unlinking during failed initattr to remove duplicate/inaccurate error messages, and to only unlink if the failure wasn't in the backing file open() Obtained from: TrustedBSD Project
* Avoid the modules madness I inadvertently introduced by making thephk2000-09-0245-417/+104
| | | | | | | | | | | | | | | | | | cloning infrastructure standard in kern_conf. Modules are now the same with or without devfs support. If you need to detect if devfs is present, in modules or elsewhere, check the integer variable "devfs_present". This happily removes an ugly hack from kern/vfs_conf.c. This forces a rename of the eventhandler and the standard clone helper function. Include <sys/eventhandler.h> in <sys/conf.h>: it's a helper #include like <sys/queue.h> Remove all #includes of opt_devfs.h they no longer matter.
* add a missing return statement, doh.cg2000-09-021-0/+1
|
* Add ACPI_BUS_SPACE stuff definitions in acpi_machdep.h.iwasaki2000-09-024-3/+39
| | | | | Change to include this file rather than acpica_osd.h to use only ACPI_BUS_SPACE stuff.
* Bite the bullet and provde memcmp() and memset(), this will be cheaperphk2000-09-023-25/+20
| | | | than all the copy&paste versions we already have :-(
* Oops, only memset() is unsupported.phk2000-09-021-1/+0
|
* Purposely break kernel code which uses memset and memcpy to prevent peoplephk2000-09-021-0/+9
| | | | | from not noticing this is wrong just because they can't be bothered to testcompile LINT.
* Move svr4 here as well...phk2000-09-021-17/+17
|
* access() shouldn't diddle with the contents of a potentially sharedtruckman2000-09-022-16/+36
| | | | | | | credential. Create a temporary copy of the current credential and modify the copy. Submitted by: tegge
* Don't check for ohci/uhci to be loaded, check for the usb module.n_hibma2000-09-021-3/+2
|
* Move setproctitle() from libutil to libc (after a repo-copy)brian2000-09-021-1/+1
| | | | | | | | | and bump __FreeBSD_version to 500012 to mark the occasion. setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it. Reviewed by: peter
* A quick fix to get around a problem (described below) with cia basedgallatin2000-09-022-3/+5
| | | | | | | | | | | | | | | | | machines. The patch uses an existing global variable in place of the newbus accessor to get at use_bwx. This is a quick fix to get miatas booting again; somebody with more newbus skills than I can muster will have to correct it. Matt Jacob's description of the problem from the -alpha list: The IVAR accessor stuff for pcib is incompletely specified for CIA. There's only one accessor defined, and that's to get the BUS instance number. <..> The device methods that try and get at the use_bwx get overriden because there's only one ivar for CIA's pcib, and that's for hose #, and it's always zero.
* Define some more bits in CSR15 needed for previous change.wpaul2000-09-022-0/+8
|
* Make the blinkylights on non-MII 21143 cards work. We need to enablewpaul2000-09-012-0/+22
| | | | | | | the link and activity LED control bits in CSR15 in order for the controller to drive the LEDs correctly. This was largely done for the ZNYX multiport cards, but should also work with the DEC DE500-BA and other non-MII cards.
* If a base address register has been set up by the BIOS, but the relevantmsmith2000-09-012-12/+26
| | | | | | | enable bit hasn't been set in the command register, set the bit and honour the register. It seems that quite a few lazy BIOS writers aren't bothering to do this, which upsets the existing code and causes us to miss out on properly-configured devices.
* List opt_asr.h for creation, as it's expected by the 'asr' driver in amsmith2000-09-011-0/+3
| | | | static kernel build.
* Document the tap drivernsayer2000-09-012-0/+4
|
* Move the 'asr' driver to cdev major 154, since 97 is already taken.msmith2000-09-012-1/+2
|
* Change the probing order priority of acpi so that acpi is probed afteriwasaki2000-09-011-1/+1
| | | | | | | pcib instance is initialized because accesses to PCI_Config region can occur during ACPI initialization. Note that this is a short term solution, more consideration will be required in order to integrate ACPI into the newbus probe sequence.
* change mixer api slightlycg2000-09-0125-249/+627
| | | | | | | | | change channel interface - kobj implementation coming soonish make pcm_makelinks not panic if modular add pcm_unregister() these changes support newpcm kld unloading, but this is only implemented by ds1.c
* o Simplify if/then clause equating ESRCH with ENOENT when hiding a processrwatson2000-09-012-10/+4
| | | | Submitted by: des
* o Synchronize linprocfs authorization with procfs authorization improvementsrwatson2000-09-012-76/+58
| | | | | | | | (better hiding of hidden processes, more access checks, use vaccess(), et al) Approved by: des Obtained from: TrustedBSD Project
* add 32bit formats and a couple of ioctlscg2000-09-011-26/+36
|
* Match IPPROTO_ICMP with IP protocol field of the original IPru2000-09-011-2/+2
| | | | | | | datagram embedded into ICMP error message, not with protocol field of ICMP message itself (which is always IPPROTO_ICMP). Pointed by: Erik Salander <erik@whistle.com>
* o Make procfs use vaccess() for procfs_access() DAC and super-user checks,rwatson2000-09-012-56/+8
| | | | | | | rather than implementing its own {uid,gid,other} checks against vnode mode. Similar change to linprocfs currently under review. Obtained from: TrustedBSD Project
* Fixed broken ICMP error generation, unified conversion of IP headerru2000-09-017-26/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fields between host and network byte order. The details: o icmp_error() now does not add IP header length. This fixes the problem when icmp_error() is called from ip_forward(). In this case the ip_len of the original IP datagram returned with ICMP error was wrong. o icmp_error() expects all three fields, ip_len, ip_id and ip_off in host byte order, so DTRT and convert these fields back to network byte order before sending a message. This fixes the problem described in PR 16240 and PR 20877 (ip_id field was returned in host byte order). o ip_ttl decrement operation in ip_forward() was moved down to make sure that it does not corrupt the copy of original IP datagram passed later to icmp_error(). o A copy of original IP datagram in ip_forward() was made a read-write, independent copy. This fixes the problem I first reported to Garrett Wollman and Bill Fenner and later put in audit trail of PR 16240: ip_output() (not always) converts fields of original datagram to network byte order, but because copy (mcopy) and its original (m) most likely share the same mbuf cluster, ip_output()'s manipulations on original also corrupted the copy. o ip_output() now expects all three fields, ip_len, ip_off and (what is significant) ip_id in host byte order. It was a headache for years that ip_id was handled differently. The only compatibility issue here is the raw IP socket interface with IP_HDRINCL socket option set and a non-zero ip_id field, but ip.4 manual page was unclear on whether in this case ip_id field should be in host or network byte order.
* Fixed FPU_ERROR_BROKEN code. It had old-isa code.kato2000-09-011-2/+1
|
* Changed the way we handle outgoing ICMP error messages -- doru2000-09-011-12/+22
| | | | | | | | not alias `ip_src' unless it comes from the host an original datagram that triggered this error message was destined for. PR: 20712 Reviewed by: brian, Charles Mott <cmott@scientech.com>
* Cleanup after repo copy of sys/svr4 to sys/compat/svr4.obrien2000-09-011-6/+6
|
* Add MAINTAINER tag to aid updaters in finding the responsible parties.msmith2000-09-011-0/+2
|
* Add the 'asr' driver, supplied by Mark Salyzyn of Adaptec (nee DPT).msmith2000-09-0122-3/+12213
| | | | | | | | This provides support for the Adaptec SCSI RAID controller family, as well as the DPT SmartRAID V and VI families. The driver will be maintained by Mark and Adaptec, and any changes should be referred to the MAINTAINER.
* New netgraph node type for Ethernet bridging.archie2000-09-016-2/+1187
| | | | No ipfw support yet.
* Fix wrong offset bug in ng_enaddr_unparse().archie2000-09-011-1/+2
|
* Take a shot at fixing multiple pci busses on i386.peter2000-08-317-66/+311
| | | | | | | | pcib_set_bus() cannot be used on the new child because it is meant to be used on the *pci* device (it looks at the parent internally) not the pcib being added. Bite the bullet and use ivars for the bus number to avoid any doubts about whether the softc is consistant between probe and attach. This should not break the Alpha code.
* Avoid free'ing a NULL pointer.archie2000-08-311-1/+2
|
* Cleanup after repo copy of sys/svr4 to sys/compat/svr4.obrien2000-08-3184-14248/+131
|
* Casts are needed to subtract u_longs.green2000-08-311-1/+1
| | | | Submitted by: tor
* Remove duplicate static definition of pci_devclasspeter2000-08-312-2/+0
|
* Introduce explicit break statements in the various chipsets'gallatin2000-08-316-0/+28
| | | | | | | | | | foo_pcib_[read|write]_config() functions rather than relying on a break or return being in the CFG macro. This fixes a panic later in the boot process on a UP1000. From inspection, it looks like this fixes a similar problem in the tsunami code. Approved by: dfr
OpenPOWER on IntegriCloud