summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Give MEXTADD() another argument to make both void pointers to thephk2008-02-0120-38/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | free function controlable, instead of passing the KVA of the buffer storage as the first argument. Fix all conventional users of the API to pass the KVA of the buffer as the first argument, to make this a no-op commit. Likely break the only non-convetional user of the API, after informing the relevant committer. Update the mbuf(9) manual page, which was already out of sync on this point. Bump __FreeBSD_version to 800016 as there is no way to tell how many arguments a CPP macro needs any other way. This paves the way for giving sendfile(9) a way to wait for the passed storage to have been accessed before returning. This does not affect the memory layout or size of mbufs. Parental oversight by: sam and rwatson. No MFC is anticipated.
* Reword recent comment a bit.marck2008-02-011-3/+3
|
* Use FEATURE() macro to advertise aio availability.rwatson2008-02-011-0/+2
|
* Add comments about stack protection mechanism.mav2008-02-011-0/+8
|
* Tune the message for better informativity.mav2008-02-011-1/+2
| | | | Print the hook pointer as other functions do.
* Band-aid recent commit by mav by replacing a variable in a CTR statement withbenno2008-02-011-1/+1
| | | | | | | the variable that appears as if it should've been there. Pointy hat to: mav Not tested either by: benno
* Implement Session-ID hashing to improve receive performance scalabilitymav2008-01-311-31/+70
| | | | for big number of concurrent sessions.
* When reinitializing a lockuser, don't assume that the lock is indeischen2008-01-311-7/+15
| | | | | | | | | use. If it is in use, use the watched request, otherwise use the lockuser's own request. Only allocate a lockuser request if both requests are null. PR: 119920 Tested by (6.x): Landon Fuller <landonf -at- bikemonkey -dot- org>
* Fix an indentation.jkim2008-01-311-1/+1
|
* The devstat(3) manpage claims that only <devstat.h> is needed as ajhb2008-01-311-0/+1
| | | | | | | | | prerequisite for using this interface. However, the 'statinfo' struct actually references CPUSTATES from <sys/resource.h>, so in fact it requires <sys/resource.h> to compile. Use a nested include of <sys/resource.h> to make the code match the docs. Reported by: Pietro Cerutti gahr | gahr.ch
* Do not sanitize disk geometry if it is set by scripts in non-interactive mode.jkim2008-01-311-8/+8
| | | | MFC after: 3 days
* For no good reason I had assumed that ACPI table headers would be pagejhb2008-01-312-10/+14
| | | | | | | | | | | | | | | | | | | | aligned (or at least not cross a page boundary). However, it turns out that on at least one machine one table header does cross a page boundary. This caused problems with the MADT early probe as it uses the crash dump map to load ACPI tables by loading the RSDT/XSDT into pages 1 ... N and loading the header of each ACPI table header into page 0 looking for the MADT. However, if a table header crossed a page boundary, then page 1 would get trashed resulting in a panic. Fix this by reserving the first 2 pages for ACPI table headers (headers are less than a page in size, so 2 pages will be sufficient) and use pages 2 .. N for the RSDT and XSDT. Note: amd64 should probably be simplified to just use pmap_mapbios() for all these tables which will use the direct map and not need the crash dump hack. MFC after: 5 days Tested on: i386 Reported by: Pete French petefrench of ticketswitch.com
* Use dump_write() instead of direct calls to di->dumper() in textdumps.rwatson2008-01-311-3/+3
| | | | | | | Textdumps already do pretty much the same sanity checking, but abstractions and seatbelts are both useful. MFC after: 2 months
* De-sparc64-ify (now that it's also installed on PowerPC).ru2008-01-311-1/+1
|
* Spot two more bugs WRT adherence to the local prompt style.yar2008-01-311-2/+2
|
* Use consistent style in user prompts: the question is in a new lineyar2008-01-312-6/+6
| | | | | | | and begins with a capital letter. The rest of pwarn/ask pairs here follows this style. Requested by: bde
* Some code reformat.mav2008-01-311-55/+38
|
* Implement stack protection based on GET_STACK_USAGE() macro.mav2008-01-313-8/+46
| | | | | This fixes system panics possible with complicated netgraph setups and allows to avoid unneded extra queueing for stack unwrapping.
* Move GET_STACK_USAGE from MI header to i386/amd64 MD ones.mav2008-01-313-14/+22
| | | | | Somebody who can, please feel free to implement it for other archs or copy this one if it suits.
* Correct two problems relating to sorflush(), which is called to flushrwatson2008-01-317-13/+36
| | | | | | | | | | | | | | | | | | | | | | | | | read socket buffers in shutdown() and close(): - Call socantrcvmore() before sblock() to dislodge any threads that might be sleeping (potentially indefinitely) while holding sblock(), such as a thread blocked in recv(). - Flag the sblock() call as non-interruptible so that a signal delivered to the thread calling sorflush() doesn't cause sblock() to fail. The sblock() is required to ensure that all other socket consumer threads have, in fact, left, and do not enter, the socket buffer until we're done flushin it. To implement the latter, change the 'flags' argument to sblock() to accept two flags, SBL_WAIT and SBL_NOINTR, rather than one M_WAITOK flag. When SBL_NOINTR is set, it forces a non-interruptible sx acquisition, regardless of the setting of the disposition of SB_NOINTR on the socket buffer; without this change it would be possible for another thread to clear SB_NOINTR between when the socket buffer mutex is released and sblock() is invoked. Reviewed by: bz, kmacy Reported by: Jos Backus <jos at catnook dot com>
* Add hook routine archive_write_ar_finish() which writes the 'ar'kaiw2008-01-311-1/+19
| | | | | | | | | | | | | | | | | | | global header if nothing else has been written before the closing of the archive. This will change the behaviour when creating archives without members, i.e., instead of generating a 0-size archive file, an archive with just the global header (8 bytes in total) will be created and it is indeed a valid archive by the definition of libarchive, thus subsequent operation on this archive will be accepted. This especially solves the failure caused by following sequence: (several ports do) % ar cru libfoo.a # without specifying obj files % ranlib libfoo.a Reviewed by: kientzle, jkoshy Approved by: kientzle Approved by: jkoshy (mentor) Reported by: erwin MFC after: 1 month
* Add a test to verify compatibility with archives withkientzle2008-01-313-0/+145
| | | | | odd hardlinks. I need to extend this to test pax extended archives with bodies attached to hardlinks and other less-common cases.
* Tighten up the heuristic that decides whether or not we shouldkientzle2008-01-311-20/+36
| | | | | | | | | | | obey or ignore the size field on a hardlink entry. In particular, if we're reading a non-POSIX archive, we should always ignore the size field. This should fix both the audio/xmcd port and the math/unixstat port. Thanks to: Pav Lucistnik for pointing these two ports out to me. MFC after: 7 days
* Enable ofwdump on powerpc (finally). Tested on G3 & G4 machines.grehan2008-01-313-1/+2
| | | | | Submitted by: Dan Stekloff <dsteklof at c i s c o dot com> Discussed with: marcel
* Bring in the nice work from Mark Tinguely on arm pmap.cognet2008-01-312-428/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only downside is that it renames pmap_vac_me_harder() to pmap_fix_cache(). From Mark's email on -arm : pmap_get_vac_flags(), pmap_vac_me_harder(), pmap_vac_me_kpmap(), and pmap_vac_me_user() has been rewritten as pmap_fix_cache() to be more efficient in the kernel map case. I also removed the reference to the md.kro_mappings, md.krw_mappings, md.uro_mappings, and md.urw_mappings counts. In pmap_clearbit(), we can also skip over tests and writeback/invalidations in the PVF_MOD and PVF_REF cases if those bits are not set in the pv_flag. PVF_WRITE will turn caching back on and remove the PV_MOD bit. In pmap_nuke_pv(), the vm_page_flag_clear(pg, PG_WRITEABLE) has been moved to the pmap_fix_cache(). We can be more agressive in attempting to turn caching back on by calling pmap_fix_cache() at times that may be appropriate to turn cache on (a kernel mapping has been removed, a write has been removed or a read has been removed and we know the mapping does not have multiple write mappings to a page). In pmap_remove_pages() the cpu_idcache_wbinv_all() is moved to happen before the page tables are NULLed because the caches are virtually indexed and virtually tagged. In pmap_remove_all(), the pmap_remove_write(m) is added before the page tables are NULLed because the caches are virtually indexed and virtually tagged. This also removes the need for the caches fixing routine (whichever is being used pmap_vac_me_harder() or pmap_fix_cache()) to be called on any of these mappings. In pmap_remove(), I simplified the cache cleaning process and removed extra TLB removals. Basically if more than PMAP_REMOVE_CLEAN_LIST_SIZE are removed, then just flush the entire cache.
* Fix two typos.delphij2008-01-301-2/+2
|
* Implement GET_STACK_USAGE() macro to get the current kernel thread stack usage.mav2008-01-301-0/+14
| | | | | This implemntation made for growing down stack organization like i386/amd64 platforms have, but prefers different machine dependent version if it is present.
* Add a note pointing to build(7) for more info.jhb2008-01-301-0/+2
| | | | | MFC after: 1 week Reviewed by: ru
* Allow watch(8) to use more than 10 snp* devices. This limitation was purelyrink2008-01-301-6/+5
| | | | | | | | | | due to the way watch(8) looks for available snoop devices. PR: bin/118286 Submitted by: Mykola Zubach <zuborg@advancedhosters.com> Reviewed by: rwatson, csjp, imp (all a long time ago) Approved by: imp (mentor) (long time ago) MFC after: 1 week
* Fix bootparamd on 64 bit platforms - at least amd64 was broken due to therink2008-01-302-4/+4
| | | | | | | | | | code believing long == 64 bits and using it to store/compare IPv4 addresses. PR: bin/112163 Submitted by: Tyler Spivey <tspivey@pcdesk.net> Reviewed by: imp Approved by: imp (mentor) MFC after: 1 week
* Map 'boot' to GPT_ENT_TYPE_FREEBSD_BOOT when parsuing UUIDs so that thingsjhb2008-01-301-0/+7
| | | | | | | like 'gpt add -t boot' work. MFC after: 1 week Submitted by: Niki Denev nike_d of cytexbg.com
* Add unix_sorflush, a regression test for the following scenario:rwatson2008-01-302-0/+106
| | | | | | | | | | | | - Process (a) is blocked in read on a socket waiting on data. - Process (b) is blocked in shutdown() on a socket waiting on (a). - Process (c) delivers a signal to (b) interrupting its wait. When the signal is delivered, the kernel panics as sblock() fails in sorflush(). Even if it didn't panic, shutdown() would block potentially indefinitely waiting for recv() to succeeded. Fixes to follow. Reported by: Jos Backus <jos at catnook dot com>
* Christos decided to keep the manpages in mdoc(7) format,ru2008-01-303-1032/+12
| | | | so stop using our own versions of these.
* Update for the 4.23 import.obrien2008-01-301-3/+3
|
* - Rework the kld support to hook into GDB's shared library support.jhb2008-01-293-81/+165
| | | | | | | | | | | | | | | kgdb(8) now treats kld's as shared libraries relative to the kernel "binary". Thus, you can use 'info sharedlibrary' to list the kld's along with 'sharedlibrary' and 'nosharedlibrary' to manage symbol loading and unloading. Note that there isn't an easy way to force GDB to use a specific path for a shared library. However, you can use 'nosharedlibrary' to unload all the klds and then use 'sharedlibrary' to load specific klds where it gets the kld correct and use 'add-kld' for the kld's where the default open behavior doesn't work. klds opened via 'sharedlibrary' (and during startup) do have their sections listed in 'info files'. - Change the 'add-kld' command to use filename completion to complete its argument.
* Don't close the kernel bfd object during startup. Instead, leave it openjhb2008-01-293-7/+13
| | | | | | and build a section table from the kernel file so that 'info files' output for kgdb now matches the usage of gdb on a regular file with the exception that we don't list sections for memory in the crash dump.
* Use target_read_memory() and extract_unsigned_integer() instead of directjhb2008-01-291-19/+6
| | | | KVM access to read kernel pointers.
* Don't look for "foo.ko.symbols" files. GDB is smart enough to open thejhb2008-01-291-1/+0
| | | | | ".symbols" file automatically when you tell it to load "foo.ko" because of the debug link.
* This commit was generated by cvs2svn to compensate for changes in r175801,des2008-01-291-1/+4
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Merge r412 from vendor, which reintroduces _OPENPAM. See comment in thedes2008-01-291-1/+4
| | | | | | | | | | | | | | code for explanation. Hopefully, this will forestall any reports of breakage in OpenPAM-aware ports. MFC after: 3 days
| * Remove dead filesdes2007-12-215-3445/+0
| |
* | Some clarifications to make keyboard configuration under syscons.trhodes2008-01-293-4/+23
| | | | | | | | | | | | PR: 89325 Submitted by: Oliver Fromme <olli@secnetix.de> Reviewed by: emax
* | Update this manual page to describe the extattr_list_file() and thetrhodes2008-01-291-6/+13
| | | | | | | | | | | | | | | | extattr_list_fd() functions. PR: 108142 Submitted by: Richard Dawe <rich@phekda.gotadsl.co.uk> Reviewed by: kientzle
* | An average consumer of fts(3) that avoids keeping pointers to oldyar2008-01-291-13/+7
| | | | | | | | | | | | | | | | FTSENTs and uses only what fts_read() has just returned can rely on fts_path being NUL-terminated. Under these conditions, a plain vanilla "%s" format can be safely used to printf an fts_path. OK'ed by: rwatson
* | \jedi-mind-trick{this is not the file you were looking for}obrien2008-01-291-4351/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r175790,obrien2008-01-291-0/+2
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Bring in fix for Binutils PR other/16240: Check for a failure return fromobrien2008-01-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | cplus_demangle_type. This is the rev 1.50-1.51 change. Our addr2line, etc.. would crash if used on C++ code that contains certain symbol types. One example is _ZN13PatternDriver23StringScalarDeleteValueC1ERKNS_25ConflateStringScalarValueERKNS_25AbstractStringScalarValueERKNS_12TemplateEnumINS_12pdcomplementELZNS_16complement_namesEELZNS_14COMPLEMENTENUMEEEE
* | | Fix link state handling in bfe(4).yongari2008-01-292-48/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o conversion to callout(9) API. o add a missing driver lock in bfe_ifmedia_sts(). o use our callout to drive watchdog timer. o restart Tx routine if pending queued packets are present in watchdog handler. o unarm watchdog timer only if there are no queued packets. o don't blindly reset phy and let phy driver handle link change request in bfe_init_locked(). o return the status of mii_mediachg() to caller in bfe_ifmedia_upd(). Previously it always returned 0 to caller. o add check for IFF_DRV_RUNNING flag as well as IFF_DRV_OACTIVE in bfe_start_locked(). o implement miibus_statchg method that keeps track of current link state changes as well as negotiated speed/duplex/ flow-control configuration. Reprogram MAC to appropriate duplex state. Flow-control configuration was also implemented but commented out at the moment. The flow-control configuration will be enabled again after we have general flow-control framework in mii layer. Reported by: Yousif Hassan < yousif () alumni ! jmu ! edu > Tesdted by: Yousif Hassan < yousif () alumni ! jmu ! edu >
* | | Don't coredump when executed with -o.delphij2008-01-291-1/+1
| | |
* | | Properly Xref device.hints.5.trhodes2008-01-291-1/+1
| | | | | | | | | | | | Noticed by: ru
OpenPOWER on IntegriCloud