summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Swap the order of a free and a use of an ifaddr structure.hsu2002-12-201-1/+1
|
* Unravel a nested conditional.hsu2002-12-202-42/+24
| | | | Remove an unneeded local variable.
* Put back the casts to unsigned. While no strictly necessary for itsimp2002-12-202-2/+2
| | | | | | | current uses, the name strcmp has strong connotations that shouldn't lightly be discarded. This doesn't cost us anything. Submitted by: bde
* Add a mutex to struct vm_object. Initialize and destroy that mutexalc2002-12-202-2/+11
| | | | | at appropriate times. For the moment, the mutex is only used on the kmem_object.
* Fix breakage from earlier inadvertant changes.jake2002-12-201-4/+0
|
* Expand scope of TCP protocol lock to cover syncache data structures.hsu2002-12-201-2/+3
|
* o Untangle the confusion with the malloc flags {M_WAITOK, M_NOWAIT} andbmilekic2002-12-1924-38/+37
| | | | | | | | | | the mbuf allocator flags {M_TRYWAIT, M_DONTWAIT}. o Fix a bpf_compat issue where malloc() was defined to just call bpf_alloc() and pass the 'canwait' flag(s) along. It's been changed to call bpf_alloc() but pass the corresponding M_TRYWAIT or M_DONTWAIT flag (and only one of those two). Submitted by: Hiten Pandya <hiten@unixdaemons.com> (hiten->commit_count++)
* Remove the hash_rand field from struct vm_object. As of revision 1.215 ofalc2002-12-192-13/+1
| | | | vm/vm_page.c, it is unused.
* Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c.jake2002-12-1910-10/+13
|
* Don't forget our topology lock in the MBREXT case.phk2002-12-191-0/+1
|
* - Remove vm_page_sleep_busy(). The transition to vm_page_sleep_if_busy(),alc2002-12-192-35/+2
| | | | | | which incorporates page queue and field locking, is complete. - Assert that the page queue lock rather than Giant is held in vm_page_flag_set().
* Spell `unsigned short' in a way which does not depend on namespace pollution.wollman2002-12-191-7/+7
| | | | | | | Note that this is still the wrong type, but we are not ready to break the ABI; this change simply allows programs which specify a strict SUSv3 namespace to compile. (They may still have semantic errors, since SUSv3 specifies correct types.)
* - Hold the page queues lock when performing vm_page_busy() oralc2002-12-191-1/+7
| | | | | | vm_page_flag_set(). - Replace vm_page_sleep_busy() with proper page queues locking and vm_page_sleep_if_busy().
* Fix bug with 3c90xB cards and newer. We weren't trying tomux2002-12-181-39/+14
| | | | | | copy the mbuf chain into an mbuf cluster when there is more than 63 mbufs in the chain. We were trying with older cards though.
* Do not return(foo()) in void function.semenu2002-12-189-23/+25
| | | | | Submitted by: marius@alchemy.franken.de MFC after: 3 days
* Fix the missspelt letter in DC_CTYPE_PUP_AUTOSENSe define.semenu2002-12-182-2/+2
| | | | | Submitted by: marius@alchemy.franken.de MFC after: 3 days
* Solve another bug in the mapping code: correctly skip lock sectors.phk2002-12-181-2/+2
| | | | | | | | | Make sure sector zero is protected if it contains metadata. Lower WARNS for gbde to 3 on non-i386 archs. rijndael-fst is evil but appearntly does the right thing and passes the test-vectors. MFC Candidate.
* Quirk for Memorybird pen drivenjl2002-12-181-0/+8
| | | | | | PR: kern/34712 Submitted by: Oliver Fromme <olli@lurza.secnetix.de> MFC after: 3 days
* Hold the page queues lock when performing vm_page_busy().alc2002-12-182-0/+4
|
* Fix two blunders in the mapping functions which can lead to corrupt data,phk2002-12-183-44/+15
| | | | | | | | for request sizes larger than the sectorsize or for multi-key setups. See warning mailed to current@ for details of recovery. Found by: Marcus Reid <marcus@blazingdot.com>
* Balk at unaligned requests.phk2002-12-181-0/+10
| | | | MFC candidate.
* Fix corruption introduced in previous delta.mckusick2002-12-181-4/+12
| | | | | Reported by: Aurelien Nephtali <aurelien.nephtali@wanadoo.fr> Sponsored by: DARPA & NAI Labs.
* More MFp4: DIG64 structures.marcel2002-12-181-0/+90
|
* o Add new types: msgqnum_t and msglen_t.mike2002-12-181-7/+38
| | | | | | | o Add typedefs for pid_t, time_t, size_t and ssize_t. o Hide struct mymsg and msgsys() in the standards case. o Add some comments about conformance bugs. o Sort prototypes.
* Under some circumstances, the loopback interface will allocate a newrwatson2002-12-181-0/+10
| | | | | | | | | | | | | | | | mbuf for a packet looping back to provide alignment guarantees for KAME. Unfortunately, this code performs a direct copy of the header rather than using a header copying primitive (largely because we have sucky header copying primitives). This results in a multiple free of the MAC label in the header when the same label data is freed twice when the two mbufs with that header are freed. As a temporary work-around, clear the initialized flag on the label to prevent the duplicate free, which prevents panics on large unaligned loopback IP and IPv6 data. The real fix is to improve and make use of proper packet header copying routines here. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Switch to the conventional reference counting scheme.hsu2002-12-181-15/+15
|
* Lock up ifaddr reference counts.hsu2002-12-188-58/+56
|
* Export the physical address of the RSDP to userland by meansmarcel2002-12-183-32/+81
| | | | | | | | | | of the `machdep.acpi_root' sysctl. This is required on ia64 because the root pointer hardly ever, if at all, lives in the first MB of memory and also because scanning the first MB of memory can cause machine checks. This provides a save and reliable way for ACPI tools to work with the tables if ACPI support is present in the kernel. On ia64 ACPI is non-optional.
* Add command `hcdp'. This command dumps the DIG64 HCDP table if onemarcel2002-12-182-0/+150
| | | | exists.
* Keep comments consistent with the code. Minor optimization.mckusick2002-12-181-14/+4
| | | | Sponsored by: DARPA & NAI Labs.
* I didn't intend to delete this rm from the Makefile. It snuck in atimp2002-12-182-0/+2
| | | | | | | | | the last second before the commit. # likely we can remove this hack now that gcc generates better aligned code # in the align to word case. Noticed by: bde
* - Hold the page queues lock when performing vm_page_busy().alc2002-12-181-2/+5
| | | | | - Replace vm_page_sleep_busy() with proper page queues locking and vm_page_sleep_if_busy().
* Hold the page queues lock when performing vm_page_flag_set().alc2002-12-182-1/+9
|
* Cosmetic cleanup of unsigned buglets.mckusick2002-12-181-5/+5
| | | | | Submitted by: Bruce Evans <bde@zeta.org.au> Sponsored by: DARPA & NAI Labs.
* Back out revision 1.38. disklabel now understands vinum volumes again.grog2002-12-181-5/+1
|
* Reduce diffs with Peter's expanded diffs:imp2002-12-172-8/+8
| | | | | 1) Put back the keyboard printing printf, at the cost of 58 bytes. 2) Minor tweak to getstr at no apparent cost.
* Add a check for negative offset locations and return EINVAL for them.phk2002-12-171-0/+5
|
* Make both UFS1 and UFS2 fit on the same boot blocks. These are aimp2002-12-174-142/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | subset of Peter's patchs that are believed to be safe. Makefile tweaks: o -fomit-frame-pointer o Change default to building both UFS1 and UFS2 bootblocks. Lots of boot2 tweaks: o lookup is only ever called with kname, so use it directly. o inline memsize o getstr are only ever called with cmd, so hardware that. o tweaks to the parsing code to test after the conversion rather than before since we tested after anyways. o eliminate support for %x in printf. o eliminate a few bytes in printfs. o Tweak the boot banner. o eliminate support for wd and " " devices (I might add wd back to keep bde happy). o eliminate support for a few arguments. This takes us from -162 bytes free to 67 bytes free. I've tested this only on a few systems, so be careful when updating to this change. Submitted by: peter, imp, ian
* Remove unused lockcnt variable.phk2002-12-171-3/+0
| | | | Approved by: mckusick
* Hold the page queues lock when performing vm_page_flag_set().alc2002-12-172-1/+3
|
* Indent properly.phk2002-12-171-1/+2
|
* Remove unused variable cn_devfsdev.phk2002-12-171-2/+1
|
* Remove unused and incorrectly maintained variable "in_interfaces"phk2002-12-171-4/+0
|
* Don't cast a pointer to (intptr_t) and then on to (int) when we cannotphk2002-12-171-3/+3
| | | | | be sure that (int) is large enough. Instead cast only to (intptr_t) and cast the switch/case values to (intptr_t) as well.
* Try to fix the problem with burncd blank not seeing the end ofsos2002-12-171-14/+9
| | | | the blank operation.
* This should be the way PC98 ATA disks are seen geometry wise.sos2002-12-173-4/+10
| | | | Should go into 5_0_RELEASE as well.
* Don't mangle geometry for pc98, this will happen in the ata driver.phk2002-12-171-4/+0
|
* Unspam some experimental changes which should not have been committed.phk2002-12-171-13/+40
|
* Remember to hold topology lock when we change things.phk2002-12-171-0/+2
| | | | Spotted by: kuriyama
* Constify the dumpconf() function.phk2002-12-171-1/+1
|
OpenPOWER on IntegriCloud