summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Retire MT_HEADER mbuf type and change its users to use MT_DATA.andre2005-11-0221-41/+35
| | | | | | | | | | | | Having an additional MT_HEADER mbuf type is superfluous and redundant as nothing depends on it. It only adds a layer of confusion. The distinction between header mbuf's and data mbuf's is solely done through the m->m_flags M_PKTHDR flag. Non-native code is not changed in this commit. For compatibility MT_HEADER is mapped to MT_DATA. Sponsored by: TCP/IP Optimization Fundraise 2005
* Instead of a panic()ing in pmap_insert_entry() if get_pv_entry() fails,alc2005-11-021-1/+50
| | | | reclaim a pv entry by destroying a mapping to an inactive page.
* Rate limit vnode_pager_putpages printfs to once a second.ps2005-11-011-3/+8
|
* Throw the switch and turn on STOP_NMI on in GENERIC for amd64 and i386.jhb2005-11-012-0/+2
| | | | | Requested by: kris Ok'd by: scottl
* Catch up with ACPI-CA 20051021 importjkim2005-11-0110-196/+235
|
* Update to reflect import of ACPI-CA 20051021 with includes fixupsjkim2005-11-011-27/+30
|
* Local change: remove unnecessary __cdecljkim2005-11-012-2/+2
|
* Local change: remove compilation warningsjkim2005-11-014-10/+10
|
* Fix conflicts from import of Intel ACPI-CA 20051021jkim2005-11-018-497/+968
|
* Unchanged files that are off the vendor branchjkim2005-11-0113-1679/+639
|
* This commit was generated by cvs2svn to compensate for changes in r151940,jkim2005-11-012-1/+3
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Fix few compilation problems on vendor branch.jkim2005-11-013-1/+6
| | | | | | | | These fixes will be submitted vendor.
* | This commit was generated by cvs2svn to compensate for changes in r151937,jkim2005-11-01175-14401/+22437
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of Intel ACPI-CA 20051021jkim2005-11-01196-16596/+24058
| |
| * Remove old ACPICA files from the INTEL vendor branch. They were removedjhb2005-10-27141-84217/+0
| | | | | | | | | | from HEAD about 4 years ago when we started flattening out the ACPICA distribution.
* | Move HPET debugging under ACPI_TIMER in order to save a bitfield.scottl2005-11-012-2/+1
| |
* | Push down Giant into fdfree() and remove it from two of the callers.jhb2005-11-013-13/+24
| | | | | | | | | | | | | | Other callers such as some rfork() cases weren't locking Giant anyway. Reviewed by: csjp MFC after: 1 week
* | Add proper debugging infrastructure for acpi_hpet.c.scottl2005-11-012-0/+5
| |
* | Reuse ktr_unused field in ktr_header structure as ktr_tid; populaterwatson2005-11-012-2/+2
| | | | | | | | | | | | | | | | | | ktr_tid as part of gathering of ktr header data for new ktrace records. The continued use of intptr_t is required for file layout reasons, and cannot be changed to lwpid_t at this point. MFC after: 1 month Reviewed by: davidxu
* | Replace ktr_buffer pointer in struct ktr_header with a ktr_unusedrwatson2005-11-012-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | intptr_t. The buffer length needs to be written to disk as part of the trace log, but the kernel pointer for the buffer does not. Add a new ktr_buffer pointer to the kernel-only ktrace request structure to hold that pointer. This frees up an integer in the ktrace record format that can be used to hold the threadid, although older ktrace files will have a garbage ktr_buffer field (or more accurately, a kernel pointer value). MFC after: 2 weeks Space requested by: davidxu
* | Clean up one remaining 'multiple DPC thread' bogon: only bzero() onewpaul2005-11-011-0/+4
| | | | | | | | sizeof(kq_queue), not sizeof(kq_queue) * mp_ncpus.
* | Consider the zero-copy transmission of a page that was wired by mlock(2).alc2005-11-011-0/+2
| | | | | | | | | | | | | | | | If a copy-on-write fault occurs on the page, the new copy should inherit a part of the original page's wire count. Submitted by: tegge MFC after: 1 week
* | Update SIGTHR's comment.davidxu2005-11-011-1/+1
| |
* | statically configured IPv6 address is properly added/deleted nowsuz2005-10-311-75/+51
| | | | | | | | | | | | Obtained from: KAME Reported in: freebsd-net@freebsd MFC after: 1 day
* | Tie acpi_hpet.c into the module and kernel.phk2005-10-312-1/+3
| |
* | Add a basic HPET timecounter.phk2005-10-311-0/+190
| | | | | | | | It has -200 quality for now so it will not get automatically selected.
* | - Use callout_*() to manage the callout and make it MPSAFE.jhb2005-10-314-32/+22
| | | | | | | | | | | | | | - Fix locking in detach(), we only need to lock across vr_stop(). Tested by: Mike Tancsa mike at sentex dot net MFC after: 1 week
* | Instead of a panic()ing in pmap_insert_entry() if get_pv_entry()alc2005-10-312-13/+124
| | | | | | | | | | | | | | | | | | | | fails, reclaim a pv entry by destroying a mapping to an inactive page. Change the format strings in many of the assertions that were recently converted from PMAP_DIAGNOSTIC printf()s so that they are compatible with PAE. Avoid unnecessary differences between the amd64 and i386 format strings.
* | Reformat socket control messages on input/output for 32bit compatibilityps2005-10-313-24/+240
| | | | | | | | | | | | | | on 64bit systems. Submitted by: ps, ups Reviewed by: jhb
* | Hook nve(4) up in i386 and amd64 NOTES.jhb2005-10-312-0/+4
| | | | | | | | MFC after: 1 week
* | Rate limit filesystem full and out of inodes messages to once aps2005-10-311-6/+21
| | | | | | | | second.
* | Put probe-time printf of adapter speed and duplex behind bootverbose:rwatson2005-10-311-10/+14
| | | | | | | | | | | | | | | | | | | | since the link takes a bit to negotiate, the information is pretty much never available during the probe. As such, the boot output pretty much always prints N/A for speed and duplex. Since we print out the output of ifconfig during the user space boot, this early boot information is also generally redundant, and added to the noise. MFC after: 2 weeks
* | Check to see if the hash table is present in link_elf_lookup_symbol()jhb2005-10-311-0/+6
| | | | | | | | | | | | | | | | | | | | before dereferencing it. Certain corrupt kernel modules might not have a valid hash table, and would cause a kernel panic when they were loaded. Instead of panic'ing, the kernel now prints out a warning that it is missing the symbol hash table. Tested by: Benjamin Close Benjamin dot Close at clearchain dot com MFC after: 1 week
* | Add the device ID for the VIA VT8235 south bridge.jhb2005-10-311-0/+7
| | | | | | | | | | | | | | PR: kern/62438 Submitted by: FUJIMOTO Kou fujimoto at j dot dendai dot ac dot jp Tested by: Oliver Fromme olli at secnetix dot de MFC after: 1 week
* | Some of the VIA pm and propm devices are actually the same device as thejhb2005-10-311-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PCI-ISA bridge. Thus, when viapm0 or viapropm0 attaches, isab0 dosen't attach so there is no isa0 bus hung off of that bridge. In the non-ACPI case, legacy0 will add an isa0 anyway as a fail-safe, but ACPI assumes that any ISA bus will be enumerated via a bridge. To fix this, call isab_attach() to attach an isa0 ISA child bus device if the pm or propm device we are probing is a PCI-ISA bridge. Both drivers now have to implement the bus_if interface via the generic methods for resource allocation, etc. to work. Also, we now add 2 new ISA bus drivers that attach to viapm and viapropm devices. PR: kern/87363 Reported by: Oliver Fromme olli at secnetix dot de Tested by: glebius MFC after: 1 week
* | MFamd64/i386alc2005-10-311-7/+0
| | | | | | | | Eliminate unneeded diagnostic code.
* | Normalize a significant number of kernel malloc type names:rwatson2005-10-3186-114/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat. - Remove punctuation that is incompatible with using memory type names as file names, such as '/' characters. - Disambiguate some collisions by adding subsystem prefixes to some memory types. - Generally prefer lower case to upper case. - If the same type is defined in multiple architecture directories, attempt to use the same name in additional cases. Not all instances were caught in this change, so more work is required to finish this conversion. Similar changes are required for UMA zone names.
* | The mediasize shouldn't be multipled by the sector size when it wasgrehan2005-10-311-1/+2
| | | | | | | | | | | | | | | | | | in bytes to start off with. This caused the GPT geom sniffer to attempt a seek just back from the end of the 'disk', which resulted in a > 4G seek, causing gdb psim to exit since it only supports 32-bit seeks. The size of the disk should really be specified in the psim device tree, but for now do the minimal amount of work to get psim to run again.
* | Pickup I/O lock in aac_get_bus_info, as this code will callcsjp2005-10-311-0/+6
| | | | | | | | | | | | | | | | aac_alloc_sync_fib(). aac_alloc_sync_fib() will assert that the I/O locks are held. This fixes a panic on system boot up when the aac(4) device's bus_generic_attach() routine is called. Reviewed by: scottl
* | Copy SPRG0-3 registers at boot-time and restore when calling intogrehan2005-10-304-14/+116
| | | | | | | | | | | | | | | | | | | | OpenFirmware. FreeBSD/ppc uses SPRG0 as the per-cpu data area pointer, and SPRG1-3 as temporary registers during exception handling. There have been a few instances where OpenFirmware does require these to be part of it's context, such as cd-booting an eMac. reported by: many MFC after: 3 days
* | Replace diagnostic printf()s by assertions. Use consistent style foralc2005-10-302-72/+16
| | | | | | | | similar assertions.
* | Push the assignment of a new or updated so_qlimit from solisten()rwatson2005-10-3018-49/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | following the protocol pru_listen() call to solisten_proto(), so that it occurs under the socket lock acquisition that also sets SO_ACCEPTCONN. This requires passing the new backlog parameter to the protocol, which also allows the protocol to be aware of changes in queue limit should it wish to do something about the new queue limit. This continues a move towards the socket layer acting as a library for the protocol. Bump __FreeBSD_version due to a change in the in-kernel protocol interface. This change has been tested with IPv4 and UNIX domain sockets, but not other protocols.
* | Remove a stray return statement in the interrupt dispatch functionmarcel2005-10-301-1/+0
| | | | | | | | | | | | that caused a premature exit after calling a fast interrupt handler and bypassing a much needed critical_exit() and the scheduling of the interrupt thread for non-fast handlers. In short: unbreak :-)
* | MFi386: Enable beastie.4th.nyan2005-10-301-2/+2
| |
* | Add some safeguards to AIOSFMT:des2005-10-301-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | - Return EINVAL if play_format or rec_format is set but the corresponding sample rate is 0. - Don't try to set the playback or recording format to 0. Previously, issuing an AIOSFMT ioctl with an all-zeroes snd_chan_param would trigger a KASSERT in chn_fmtchain(); I'm unsure about the effects on a kernel without INVARIANTS. After this commit, issuing AIOSFMT with an all-zeroes snd_chan_param is equivalent to issuing AIOGFMT. MFC after: 2 weeks
* | In stack_save, stop when a trap-frame is encountered. This preventsgrehan2005-10-301-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | trying to access user-space stack addresses when a user fault is encountered, as occurs when GEOM KTR code is handling a page fault and is using stack_save() to capture a trace for debug purposes. It may be possible to walk beyond the trap-frame if it is a kernel fault, as db_backtrace() does, but I don't think that complexity is needed in this routine. MFC after: 3 days
* | Add back some bits.scottl2005-10-302-1/+18
| |
* | Replace loader_color with loader_logoscottl2005-10-301-9/+42
| |
* | Change POSIX_TIMERS to 200112L.davidxu2005-10-301-1/+1
| |
* | Let itimer store itimerspec instead of itimerval, so I don't have todavidxu2005-10-303-62/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | convert to or from timeval frequently. Introduce function itimer_accept() to ack a timer signal in signal acceptance code, this allows us to return more fresh overrun counter than at signal generating time. while POSIX says: "the value returned by timer_getoverrun() shall apply to the most recent expiration signal delivery or acceptance for the timer,.." I prefer returning it at acceptance time. Introduce SIGEV_THREAD_ID notification mode, it is used by thread libary to request kernel to deliver signal to a specified thread, and in turn, the thread library may use the mechanism to implement SIGEV_THREAD which is required by POSIX. Timer signal is managed by timer code, so it can not fail even if signal queue is full filled by sigqueue syscall.
OpenPOWER on IntegriCloud