summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Enable GEOM by default.nyan2002-10-311-2/+0
|
* KSE-enabled processes only.davidxu2002-10-312-2/+8
|
* Rename the speaker device for pc98 to 'pcspeaker'.nyan2002-10-313-6/+12
|
* MFi386: revision 1.55.nyan2002-10-311-21/+41
| | | | Rename from atspeaker to pcspeaker. (PC98 is not PC/AT)
* Add tunable "hw.eisa_slots" to allow overriding the default numberpeter2002-10-311-0/+1
| | | | of slots (10).
* Change the kkey generation cherry-picker to use MD5.phk2002-10-303-42/+26
| | | | Sponsored by: DARPA & NAI Labs
* amr.c,emoore2002-10-309-72/+473
| | | | | | | | | | | | | | | | | | | amr_cam.c, amrreg.h, amrvar.h: - added support for 12/16 byte cdb's, effecting CAM branch only ( non-disk support ) amrreg.h: - increased number of scatter gather elements from 16 to 26. amr_pci.c: - amr_pci_free(), incorrect bus tag meant for 'amr_mailbox_dmat' was being freed all: - copyright change requested by scottl Reviewed by: ps,scottl MFC after: 1 week
* Save and restore the interrupt Edge/Level Control Registers (ELCR)iedowse2002-10-301-5/+88
| | | | | | | | | | | across system suspends on the Intel 82371AB PCI-ISA bridge. On a Sony Vaio C1XD that I have, these registers are not set correctly after an ACPI resume. The result is that after resuming, a shared IRQ is left in edge-triggered mode so the interrupt can later become jammed in a state where the line remains asserted, but the handler is never called. Reviewed by: jhb
* Revision 1.136 introduced two features that may cause undefinediedowse2002-10-301-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | behaviour of the hardware: a possibly reserved bit of the receive descriptor (RFA) `status' field is borrowed to record no-resource (RNR) events, and the same status field is read and written to at a time that may clash with the hardware updating this field. There is no hardware documentation available to determine if these things are safe to do; the second issue almost certainly isn't, and the first is only safe if there is documentation saying that this bit is free to be used by the driver. The PR referenced below provides extremely convincing evidence that the changes cause random crashes on some (unusual) hardware. Since these features are only required by the DEVICE_POLLING case, this commit makes their use conditional on that option. It does not change the DEVICE_POLLING case, but at least people with the rare hardware on which this code causes problems can now avoid the crashes by not enabling DEVICE_POLLING. PR: kern/42260 Reviewed by: luigi Problem revision found by: Pawel Malachowski <pawmal@unia.3lo.lublin.pl> Tested by: Pawel Malachowski <pawmal@unia.3lo.lublin.pl> MFC after: 1 week
* Move to C99 sparse structure initialization for the mac_policy_opsrwatson2002-10-3020-7001/+738
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | structure definition, rather than using an operation vector we translate into the structure. Originally, we used a vector for two reasons: (1) We wanted to define the structure sparsely, which wasn't supported by the C compiler for structures. For a policy with five entry points, you don't want to have to stick in a few hundred NULL function pointers. (2) We thought it would improve ABI compatibility allowing modules to work with kernels that had a superset of the entry points defined in the module, even if the kernel had changed its entry point set. Both of these no longer apply: (1) C99 gives us a way to sparsely define a static structure. (2) The ABI problems existed anyway, due to enumeration numbers, argument changes, and semantic mismatches. Since the going rule for FreeBSD is that you really need your modules to pretty closely match your kernel, it's not worth the complexity. This submit eliminates the operation vector, dynamic allocation of the operation structure, copying of the vector to the structure, and redoes the vectors in each policy to direct structure definitions. One enourmous benefit of this change is that we now get decent type checking on policy entry point implementation arguments. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Various minor type, prototype tweaks -- clean up cruft due to lack ofrwatson2002-10-305-10/+10
| | | | | | | type checking on entry points (to be introduced shortly). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* While 'mode_t' seemed like a good idea for the access mode argument forrwatson2002-10-3019-48/+48
| | | | | | | | | MAC access() and open() checks, the argument actually has an int type where it becomes available. Switch to using 'int' for the mode argument throughout the MAC Framework and policy modules. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Don't need to check if SO_OOBINLINE is defined.hsu2002-10-302-26/+16
| | | | | Don't need to protect isipv6 conditional with INET6. Fix leading indentation in 2 lines.
* Don't pass the return address to exception_save in register b0. Usemarcel2002-10-302-196/+158
| | | | | | | | | | a true scratch register. This change and future re-allocations will eventually result in code that we can unwind to to get the preserved registers of the process. This of course means that we cannot trash them while saving the process context. While re-allocating, remove the register aliases. Abstraction is in this case disadvanteous.
* Rewrite cpu_switch(). The most notable change is the fact that we nowmarcel2002-10-307-303/+364
| | | | | | | | | | have f16-f31 as part of the context. The PCB has been reorganized to better match how we save and restore the (preserved) registers. This commit also moves the context restoriation to its own function (named pcb_restore), as we did with pcb_save. Only minimal effort has been put in writing optimal assembly. The expectation is that there will be more rounds of changes.
* Check NULL thread mailbox pointer.davidxu2002-10-302-0/+4
|
* Style fixes.davidxu2002-10-302-20/+20
|
* Don't forget to set syscall result.davidxu2002-10-302-0/+4
|
* Add an actual implementation of kse_thr_interrupt()davidxu2002-10-304-4/+55
|
* Remove extranious memory barriers, and correct the placement of a few others.gallatin2002-10-302-22/+4
| | | | | | | | | | This provides a 30% reduction in system time and a 6% reduction in wallclock time for a make buildworld on my xp1000 (one 21264). FWIW, I've been running this for nearly 2 months without problems. Portions submitted by: ticso, jhb Tested by: jhb (ds20 dual 21264)
* Make the second serial port available for general use by default.gallatin2002-10-301-1/+0
| | | | | | We've been talking about this for years, but nobody has done it. (and I don't think anybody has used this for debugging since Doug and I were doing the initial bootstrapping..)
* Check for errors and zero-length transfers in the ulpt_input() inputiedowse2002-10-301-0/+6
| | | | | | | pipe callback function, and just return if these cases are detected. Without these checks, the ulpt driver may cause an infinite loop of failing USB transfers that can hang the whole machine. This makes printing work for me on a HP DJ950C printer.
* Try again to fix the KASSERT.rwatson2002-10-301-1/+1
|
* Fix a KASSERT bug that showed up only in the LINT build, not therwatson2002-10-301-1/+1
| | | | | | module build, so I missed it in the merge. Pointed out by: sam
* Minor comment typo fix.rwatson2002-10-291-1/+1
| | | | Submitted by: Wayne Morrison <tewok@tislabs.com>
* Hook up no-op stubs for reboot, swapon, sysctl entry points.rwatson2002-10-292-0/+58
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Implement Biba policy entry points for mac_check_system_swapon()rwatson2002-10-291-0/+59
| | | | | | | | | | | and mac_check_system_sysctl(), providing additional integrity protections relating to swap target device selection and system management via sysctl(). Require Biba privilege for both; also require that the target of swap operations be a high integrity object, since swap data is high integrity. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Asssociates Laboratories
* Require Biba privilege to relabel a network interface.rwatson2002-10-291-0/+7
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Finally get around to committing Bill Paul's FEC netgraph nodes.julian2002-10-294-0/+1330
| | | | | | | | | These are really only partly netgraph nodes as they do not use the netgraph interfaces for many of the functions for which they could be used, however they represent important functionality. Submitted by: wpaul MFC after: 2 days
* Add a missing newline to the end of a device_printf().jhb2002-10-291-1/+1
| | | | Reported by: Michael G. Petry <petry@NetMasters.Com>
* Don't take out the rl_mtx lock in the attach routine. The only wayimp2002-10-291-19/+15
| | | | | we'd need it is if we're interrupted. So, register the interrupt last in the attach routine.
* Renumber IPPROTO_DIVERT out of the range of valid IP protocol numbers.fenner2002-10-293-4/+19
| | | | | | | | | | | This allows socket() to return an error when the kernel is not built with IPDIVERT, and doesn't prevent future applications from using the "borrowed" IP protocol number. The sysctl net.inet.raw.olddiverterror controls whether opening a socket with the "borrowed" IP protocol fails with an accompanying kernel printf; this code should last only a couple of releases. Approved by: re
* The syscall names are string constants, so make them consts.dwmalone2002-10-292-3/+3
|
* Lower a priority of "session drop" messages.maxim2002-10-291-1/+1
| | | | | Requested by: Eugene Grosbein <eugen@kuzbass.ru> MFC after: 3 days
* Duh. #ifdef CTASSERT so we don't break user-land software.phk2002-10-291-0/+2
|
* Fix winChkName() to match when the last slot contains nothing but thesemenu2002-10-291-1/+8
| | | | | | | | terminating zero (it was treated as length missmatch). The mtools create such slots if the name len is the product of 13 (max number of unicode chars fitting in directory slot). MFC after: 1 week
* Remove unnecessary <sys/malloc.h> include.semenu2002-10-298-8/+0
| | | | | Submitted by: marius@alchemy.franken.de MFC after: 1 week
* Put a CTASSERT on the size of struct sun_disklabel.phk2002-10-281-0/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Add the remaning part of the new libdisk interaction.phk2002-10-285-2/+79
| | | | | | | WARNING: This is not a published interface, it is a stopgap measure for WARNING: libdisk so we can get 5.0-R out of the door. Sponsored by: DARPA & NAI Labs
* Add support for the new libdisk interaction.phk2002-10-281-2/+15
| | | | Sponsored by: DARPA & NAI Labs.
* Trim extraneous #else and #endif MAC comments per style(9).rwatson2002-10-282-9/+9
|
* Correct a typo in a previously commented include entry that was maderwatson2002-10-281-1/+1
| | | | visible in the recent commit.
* Remove all reference to 'struct oldmac', since it's no longer requiredrwatson2002-10-284-98/+63
| | | | | | | | | | with the new VFS/EA semantics in the MAC framework. Move the per-policy structures out to per-policy include files, removing all policy-specific defines and structures out of the base framework includes and implementation, making mac_biba and mac_mls entirely self-contained. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Add a return type for mac_biba_high_single(), apparently lost in anrwatson2002-10-281-0/+1
| | | | earlier merge. It's a 'static int'.
* Rename mac_biba_subject_equal_ok() to mac_biba_subject_privileged()rwatson2002-10-281-6/+6
| | | | | | | to evolve the notion of Biba privilege a bit. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Zero the trusted_interface buffer before starting parsing.rwatson2002-10-281-0/+6
| | | | | | | | Print a warning if a requested interface name is longer than IFNAMSIZ. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* An inappropriate ASSERT slipped in during the recent merge of therwatson2002-10-289-18/+0
| | | | reboot checking; remove.
* Reduce namespace pollution to userland.scottl2002-10-281-0/+2
| | | | Spotted-by: bde
* Fix a bug in the cherry-picker kkey generator routine.phk2002-10-281-0/+1
| | | | | | | WARNING: You need to backup and restore the _unencrypted_ contents WARNING: of your GBDE disks when you take this update! Sponsored by: DARPA & NAI Labs.
* Add more compatibility junk.phk2002-10-282-11/+34
|
OpenPOWER on IntegriCloud