summaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix a minor error in pipe_stat - st_size was always reported as 0Mike Silbersack2004-07-201-1/+4
| | | | | | | | when direct writes kicked in. Whether this affected any applications is unknown. Notes: svn path=/head/; revision=132436
* Fix the creation of EFI images that got broken by the import ofMarcel Moolenaar2004-07-204-6/+6
| | | | | | | | | | | | binutils 2.15. The linker now creates a .rela.dyn section for dynamic relocations, while our script created a .rela section. Likewise, we copied the .rela section to the EFI image, but not the .rela.dyn section. The fix is to rename .rela to .rela.dyn in the linker script so that all relocations end up in the same section again. This we copy into the EFI image. Notes: svn path=/head/; revision=132435
* The previous revision introduced a compilation error, i.e., the use of anAlan Cox2004-07-201-1/+1
| | | | | | | undefined variable. Correct this error. Notes: svn path=/head/; revision=132434
* Don't output too many debug messages for bootverbose.Hidetoshi Shimokawa2004-07-203-11/+16
| | | | | | | This driver seems to be fairly stable now. Notes: svn path=/head/; revision=132432
* Initialize ifp->if_output for FreeBSD-4.Hidetoshi Shimokawa2004-07-201-0/+3
| | | | Notes: svn path=/head/; revision=132430
* Adjust packet length correctly for FreeBSD-4.Hidetoshi Shimokawa2004-07-201-2/+4
| | | | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> Notes: svn path=/head/; revision=132429
* elf_cpu_load_file no longer has an __unused variable. Also, don'tPeter Grehan2004-07-201-3/+4
| | | | | | | | | | bother syncing the icache for the special case of the kernel (id == 1), since the loader has already done this. __unused use reported by: gallatin Notes: svn path=/head/; revision=132428
* Remove the allpmaps list. It's unused.Alan Cox2004-07-202-19/+0
| | | | | | | Reviewed by: peter@ Notes: svn path=/head/; revision=132427
* Properly obey PPC context synchronization rules when modifyingPeter Grehan2004-07-202-0/+4
| | | | | | | | the address translation bits of the MSR. This fixes the boot-time panic reported by Drew Gallatin. Notes: svn path=/head/; revision=132426
* #ifdef __i386__ -> __i386__ || __amd64__Peter Wemm2004-07-201-5/+5
| | | | Notes: svn path=/head/; revision=132425
* Make end of frames for KSE thread, for system scope thread, without thisDavid Xu2004-07-201-0/+1
| | | | | | | change, debugger will dump a weird stack backtrace. Notes: svn path=/head/; revision=132422
* Fix printing of long doubles to match the size thatAndrew Gallatin2004-07-191-9/+9
| | | | | | | | | | | | | | | | gcc is using. This fixes devstat consumers (like vmstat, iostat, systat) so they don't print crazy zillion digit numbers for disk transfers and bandwidth. According to gcc, long doubles are 64-bits, rather than 128 bits like the SVR4 ABI spec wants them to be.. Note that MacOSX also treats long doubles as 64-bits, and not 128 bits, so we are in good company. Reviewed by: das Approved by: grehan Notes: svn path=/head/; revision=132421
* Remove extraneous locks on the VM free page queue mutex; it is notBrian Feldman2004-07-191-2/+0
| | | | | | | | | | meant to be recursed upon, and could cauuse a deadlock inside the new contigmalloc (vm.old_contigmalloc=0) code. Submitted by: alc Notes: svn path=/head/; revision=132420
* Identify VIA EHCI root hubs and at least one VIA USB2.0 controller.Benno Rice2004-07-191-0/+9
| | | | Notes: svn path=/head/; revision=132419
* Let IN_FASTREOCOVERY macro decide if we are in recovery mode.Jayanth Vijayaraghavan2004-07-193-9/+1
| | | | | | | | Nuke sackhole_limit for now. We need to add it back to limit the total number of sack blocks in the system. Notes: svn path=/head/; revision=132418
* Fix a potential panic in the SACK code that was causingJayanth Vijayaraghavan2004-07-191-8/+29
| | | | | | | | | | | | | | | 1) data to be sent to the right of snd_recover. 2) send more data then whats in the send buffer. The fix is to postpone sack retransmit to a subsequent recovery episode if the current retransmit pointer is beyond snd_recover. Thanks to Mohan Srinivasan for helping fix the bug. Submitted by:Daniel Lang Notes: svn path=/head/; revision=132417
* Diff reduction to NetBSD.Lukas Ertl2004-07-191-5/+6
| | | | | | | | | | usbdi.c rev. 1.104, author: mycroft ugen_isoc_rintr() may recycle the xfer immediately. Therefore, we avoid touching the xfer after calling the callback in usb_transfer_complete(). From PR 25960. Notes: svn path=/head/; revision=132416
* Diff reduction to NetBSD.Lukas Ertl2004-07-192-4/+2
| | | | | | | | | | | ehci.c rev. 1.69, author: mycroft uhci.c rev. 1.179, author: mycroft hcpriv is not actually used here. Remove references to it. Obtained from: NetBSD Notes: svn path=/head/; revision=132415
* - Eliminate the pte object from the pmap. Instead, page table pages areAlan Cox2004-07-193-148/+63
| | | | | | | | | | | | | | | | allocated as "no object" pages. Similar changes were made to the amd64 and i386 pmap last year. The primary reason being that maintaining a pte object leads to lock order violations. A secondary reason being that the pte object is redundant, i.e., the page table itself can be used to lookup page table pages. (Historical note: The pte object predates our ability to allocate "no object" pages. Thus, the pte object was a necessary evil.) - Unconditionally check the vm object lock's status in vm_page_remove(). Previously, this assertion could not be made on Alpha due to its use of a pte object. Notes: svn path=/head/; revision=132414
* You always spot the typos after you have committed.. Start sentenceJulian Elischer2004-07-191-1/+1
| | | | | | | with a Cap. Notes: svn path=/head/; revision=132413
* Allow the user who calls doadump() from the kernel debuggerJulian Elischer2004-07-191-2/+11
| | | | | | | | | | | | | to not get a page fault if he has not defined a dump device. Panic can often not do a dump as it can hang forever in some cases. The original PR was for amd64 only. This is a generalised version of that change. PR: amd64/67712 Submitted by: wjw@withagen.nl <Willen Jan Withagen> Notes: svn path=/head/; revision=132412
* Further function forward declaration white space tweaks.Robert Watson2004-07-191-14/+15
| | | | Notes: svn path=/head/; revision=132411
* Re-style at_control.c to bring it closer to style(9), primarily withRobert Watson2004-07-191-606/+594
| | | | | | | | | regard to function prototypes and indentation. The lack of indentation in if clauses and case statements made this code extremely difficult to read. Notes: svn path=/head/; revision=132410
* As a temporary hack, turn off deferred preemptions that are the result ofJohn Baldwin2004-07-193-0/+6
| | | | | | | | | | a fast interrupt handler doing an swi_sched(). This fixed the lockups I saw on my laptop when using xmms in KDE and on rwatson's MySQL benchmarks on SMP. This will eventually be removed and/or modified when I figure out what the root cause is and fix that. Notes: svn path=/head/; revision=132408
* Since breakage of malloc(9)/uma_zalloc(9) is totally non-optional inBrian Feldman2004-07-191-0/+6
| | | | | | | | GENERIC/for WITNESS users, make sure the sysctl to disable the behavior is read-only and always enabled. Notes: svn path=/head/; revision=132407
* Fix a typo that could provoke a panic or access to random memory.Hartmut Brandt2004-07-191-1/+1
| | | | | | | | PR: kern/67012 Submitted by: Zhenmin <zli4@cs.uiuc.edu> Notes: svn path=/head/; revision=132403
* Make kdb_backtrace() sort of work.Olivier Houchard2004-07-191-6/+9
| | | | Notes: svn path=/head/; revision=132402
* MFi386: revision 1.596.Yoshihiro Takahashi2004-07-192-0/+6
| | | | Notes: svn path=/head/; revision=132395
* Make FLT_ROUNDS correctly reflect the dynamic rounding mode.David Schultz2004-07-195-6/+22
| | | | Notes: svn path=/head/; revision=132383
* MFp4: Add two options for gnop(8)'s 'create' command:Pawel Jakub Dawidek2004-07-192-16/+74
| | | | | | | | -o offset - specifies where to start on the original provider -s size - specifies size of the transparent provider Notes: svn path=/head/; revision=132381
* Use the version field to identify the partial context used byPeter Grehan2004-07-191-0/+1
| | | | | | | KSE process-scope threads. Notes: svn path=/head/; revision=132380
* Reimplement contigmalloc(9) with an algorithm which stands a greatly-Brian Feldman2004-07-194-63/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | improved chance of working despite pressure from running programs. Instead of trying to throw a bunch of pages out to swap and hope for the best, only a range that can potentially fulfill contigmalloc(9)'s request will have its contents paged out (potentially, not forcibly) at a time. The new contigmalloc operation still operates in three passes, but it could potentially be tuned to more or less. The first pass only looks at pages in the cache and free pages, so they would be thrown out without having to block. If this is not enough, the subsequent passes page out any unwired memory. To combat memory pressure refragmenting the section of memory being laundered, each page is removed from the systems' free memory queue once it has been freed so that blocking later doesn't cause the memory laundered so far to get reallocated. The page-out operations are now blocking, as it would make little sense to try to push out a page, then get its status immediately afterward to remove it from the available free pages queue, if it's unlikely to have been freed. Another change is that if KVA allocation fails, the allocated memory segment will be freed and not leaked. There is a sysctl/tunable, defaulting to on, which causes the old contigmalloc() algorithm to be used. Nonetheless, I have been using vm.old_contigmalloc=0 for over a month. It is safe to switch at run-time to see the difference it makes. A new interface has been used which does not require mapping the allocated pages into KVA: vm_page.h functions vm_page_alloc_contig() and vm_page_release_contig(). These are what vm.old_contigmalloc=0 uses internally, so the sysctl/tunable does not affect their operation. When using the contigmalloc(9) and contigfree(9) interfaces, memory is now tracked with malloc(9) stats. Several functions have been exported from kern_malloc.c to allow other subsystems to use these statistics, as well. This invalidates the BUGS section of the contigmalloc(9) manpage. Notes: svn path=/head/; revision=132379
* Add partial pmap locking.Alan Cox2004-07-192-0/+27
| | | | | | | Tested by: marcel@ Notes: svn path=/head/; revision=132378
* Add a #error requiring KDB if DDB is specified. (This can probably beMike Silbersack2004-07-191-0/+3
| | | | | | | relocated to a better place, if one exists.) Notes: svn path=/head/; revision=132376
* Empty GENERIC.hints file needed by make release.Peter Grehan2004-07-191-0/+1
| | | | | | | Noticed by: Suleiman Souhlal <refugee@segfaulted.com> Notes: svn path=/head/; revision=132375
* When calling scheduler entrypoints for creating new threads and processes,Julian Elischer2004-07-188-43/+46
| | | | | | | | | | | | | | specify "us" as the thread not the process/ksegrp/kse. You can always find the others from the thread but the converse is not true. Theorotically this would lead to runtime being allocated to the wrong entity in some cases though it is not clear how often this actually happenned. (would only affect threaded processes and would probably be pretty benign, but it WAS a bug..) Reviewed by: peter Notes: svn path=/head/; revision=132372
* Now we have NO_ADAPTIVE_MUTEXES option, so use it here too.Pawel Jakub Dawidek2004-07-181-1/+1
| | | | | | | Missed by: scottl Notes: svn path=/head/; revision=132371
* Reverse a lock/unlock pair that were the wrong way around in some code thatJulian Elischer2004-07-181-2/+2
| | | | | | | | | is obviously not run a lot. (but is in some test cases). This code is not usually run because it covers a case that doesn't happen a lot (removing a node that has data traversing it). Notes: svn path=/head/; revision=132369
* Comment clarifying debug_mpsafenet.Robert Watson2004-07-181-4/+5
| | | | Notes: svn path=/head/; revision=132368
* Utilize pmap_pte_quick() rather than pmap_pte() in pmap_protect(). TheAlan Cox2004-07-181-1/+3
| | | | | | | | reason being that pmap_pte_quick() requires the page queues lock, which is already held, rather than Giant. Notes: svn path=/head/; revision=132365
* After maintaining previous behaviour in writing out the core notes, it'sMarcel Moolenaar2004-07-181-8/+5
| | | | | | | | | | | | | | | | | | | | time now to break with the past: do not write the PID in the first note. Rationale: 1. [impact of the breakage] Process IDs in core files serve no immediate purpose to the debugger itself. They are only useful to relate a core file to a process. This can provide context to the person looking at the core file, provided one keeps track of this. Overall, not having the PID in the core file is only in very rare occasions unfortunate. 2. [reason of the breakage] Having one PRSTATUS note contain the PID, while all others contain the LWPID of the corresponding kernel thread creates an irregularity for the debugger that cannot easily be worked around. This is caused by libthread_db correlating user thread IDs to kernel thread (aka LWP) IDs and thus aware of the actual LWPIDs. Update comments accordingly. Notes: svn path=/head/; revision=132364
* Fix a possible hang which apparently occurs during a warm boot (cold bootGary Jennejohn2004-07-181-0/+8
| | | | | | | | | | | | | | does not display the symptom). Evidently the ifpi2 controller needs to be massaged more than it was. Note that this does not close the PR since it was filed against 4.9. MFC: 5 days PR: kern/68756 Submitted by: Ari Suutari <ari.suutari@syncrontech.com> Notes: svn path=/head/; revision=132363
* Gratuitous whitespace change to un-wrap a short line.Robert Watson2004-07-181-2/+1
| | | | Notes: svn path=/head/; revision=132362
* The recent changes to control message passing broke some thingsDavid Malone2004-07-181-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | that get certain types of control messages (ping6 and rtsol are examples). This gets the new code closer to working: 1) Collect control mbufs for processing in the controlp == NULL case, so that they can be freed by externalize. 2) Loop over the list of control mbufs, as the externalize function may not know how to deal with chains. 3) In the case where there is no externalize function, remember to add the control mbuf to the controlp list so that it will be returned. 4) After adding stuff to the controlp list, walk to the end of the list of stuff that was added, incase we added a chain. This code can be further improved, but this is enough to get most things working again. Reviewed by: rwatson Notes: svn path=/head/; revision=132359
* Unbreak kernel compiles by preserving an old opt_adaptive_mutexes.h fileAlexander Kabaev2004-07-181-1/+1
| | | | | | | name. Notes: svn path=/head/; revision=132357
* Fix copy&paste bug.Pawel Jakub Dawidek2004-07-181-1/+1
| | | | Notes: svn path=/head/; revision=132355
* Add doxygen doc comments for most of newbus and the BUS interface.Doug Rabson2004-07-183-228/+1323
| | | | Notes: svn path=/head/; revision=132354
* Enable ADAPTIVE_MUTEXES by default by changing the sense of the option toScott Long2004-07-184-7/+7
| | | | | | | | | | | | NO_ADAPTIVE_MUTEXES. This option has been enabled by default on amd64 for quite some time, and has been extensively tested on i386 and sparc64. It shows measurable performance gains in many circumstances, and few negative effects. It would be nice in t he future if adaptive mutexes actually went to sleep after a certain amount of spinning, but that will require quite a bit more testing. Notes: svn path=/head/; revision=132353
* Fix a stupid attemp to apply host arithmetics to network byte ordered data.Max Laier2004-07-181-1/+1
| | | | | | | | | | This fixes checksum for some drivers with partial H/W ckcsum offloads. Reported by: Simon 'corecode' Schubert, Devon H. O'Dell, hmp Reviewed by: Pyun YongHyeon Notes: svn path=/head/; revision=132350
* I missed two pieces of the commit to this file. Robert has alreadyDavid Malone2004-07-181-1/+1
| | | | | | | added one, this adds the other. Notes: svn path=/head/; revision=132347