summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Close a race window in kse_create(): signal delivered after SIGPENDING calldavidxu2002-10-282-8/+4
| | | | but before we call kse_link().
* Handle hints for the atspeaker device.mdodd2002-10-283-2/+52
| | | | Document same.
* Remove mf.a from sapic_read() and sapic_write(). We only caremarcel2002-10-281-3/+0
| | | | | about ordering and not acceptance. The removal of mf.a leaves behind the mf that accompanied it.
* Remove mf.a (the acceptance form of the memory fence instruction)marcel2002-10-281-12/+0
| | | | | | | | | | | from all low-level bus space support functions. There's no need to actually force the read/write to be accepted by the platform before we can do anything else. We still have the mf instruction there, which forces ordering. This too is not required given the semantices of the bus space I/O functions, but it's not at all clear to me if there are any poorly written device drivers that depend on the strict ordering by the processor. The motto here is to take small steps...
* Make vmstat -i work:marcel2002-10-284-54/+48
| | | | | | | | o Properly set the pointer to the counter for each interrupt and update the intrnames table. o Remove Alpha cruft from intrcnt.h. o Create INTRNAME_LEN as the single entity that defines the width of the names in the intrnames table (incl. terminatinf '\0').
* Fix a case in kern_rename() where a vn_finished_write() call wasiedowse2002-10-272-4/+4
| | | | | | | | missed. This bug has been present since the vn_start_write() and vn_finished_write() calls were first added in revision 1.159. When the case is triggered, any attempts to create snapshots on the filesystem will deadlock and also prevent further write activity on that filesystem.
* In ipi_send(), perform a mf instruction prior to initiating the IPI.marcel2002-10-271-1/+1
| | | | | | | | | This guarantees that loads and stores emitted before the fence are made visible before the IPI becomes pended. Remove the mf.a instruction after initiating the IPI. There's no guarantee that the IPI becomes pended prior to subsequent reads or writes. Even if there was a guarantee, it would mostly be without any benefit.
* Implement the new 1003.1-2001 pathconf() keys, including the Advisorywollman2002-10-271-11/+47
| | | | | | | Information option. Other filesystem implementations should do something similar. With advice from: mckusick, phk
* Change the way support for asynchronous I/O is indicated to applicationswollman2002-10-277-4/+44
| | | | | | | | | | to conform to 1003.1-2001. Make it possible for applications to actually tell whether or not asynchronous I/O is supported. Since FreeBSD's aio implementation works on all descriptor types, don't call down into file or vnode ops when [f]pathconf() is asked about _PC_ASYNC_IO; this avoids the need for every file and vnode op to know about it.
* As promised, downgrade the #error into a #warning.wollman2002-10-271-1/+1
|
OpenPOWER on IntegriCloud