summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* The syncache has made use of TCPDEBUG problematic, because the SYNharti2003-08-131-0/+41
| | | | | | | | | | | | | segments are lost for the application. This broke, for example, ports/benchmarks/dbs which needs the SYN segment to filter the contents of the trace buffer for the connection it is interested in. This patch makes the SYN segments available again. Unfortunately they are now associated with the listening socket instead of the new one, so a change to applications is required, but without this patch it wouldn't work altogether. PR: kern/45966
* The tcp_trace call needs the length of the header. Unfortunately theharti2003-08-131-1/+5
| | | | | | | | | code has rotten a bit so that the header length is not correct at the point when tcp_trace is called. Temporarily compute the correct value before the call and restore the old value after. This makes ports/benchmarks/dbs to almost work. This is a NOP unless you compile with TCPDEBUG.
* A number of patches in the last years have created new return pathsharti2003-08-132-0/+42
| | | | | | | | | | in tcp_input that leave the function before hitting the tcp_trace function call for the TCPDEBUG option. This has made TCPDEBUG mostly useless (and tools like ports/benchmarks/dbs not working). Add tcp_trace calls to the return paths that could be identified in this maze. This is a NOP unless you compile with TCPDEBUG.
* In case we encounter a zero sectorsize provider in g_io_check(), failphk2003-08-131-0/+6
| | | | the request with a printf rather than a divide by zero error.
* Don't use VM_MIN_KERNEL_ADDRESS to check if the faulting address ismarcel2003-08-131-2/+2
| | | | | | | | in user space or kernel space. VM_MIN_KERNEL_ADDRESS starts after the gateway page, which means that improper memory accesses to the gateway page while in user mode would panic the kernel. Use VM_MAX_ADDRESS instead. It ends before the gateway page. The difference between VM_MIN_KERNEL_ADDRESS and VM_MAX_ADDRESS is exactly the gateway page.
* Reduce the size of the vm map (and by inclusion the vm space) on 64-bitalc2003-08-131-1/+1
| | | | architectures by moving a field within the structure.
* Put an instruction group break between the move to ar.rnat and themarcel2003-08-131-0/+1
| | | | | | | | | | | | | | | | move to ar.rsc. The RSE must be in enforced lazy mode when writing to RSE modifyable registers. In this case we restore the RSE NaT collection register ar.rnat. I have seen 2 general exception faults on pluto1 now that indicate that the move to ar.rsc has already happened prior to the move to ar.rnat, meaning that the RSE is not in enforced lazy mode anymore. The ia64 dependency and instruction ordering rules seem to allow having both registers written to in the same instruction group, provided ar.rsc is written to later than ar.rnat (based on the ordering semantics). It appears that we may be pushing our luck. For now, put them in seperate cycles (by means of the instruction group break). If we ever get a general exception fault on the move to ar.rnat again, we have definite proof that something else is fishy.
* Expand inline the relevant parts of src/COPYRIGHT for Matt Dillon'simp2003-08-1216-35/+387
| | | | | | copyrighted files. Approved by: Matt Dillon
* Oops.. Some debugging code snuck in here.ps2003-08-121-1/+1
| | | | Requeue the request if the controller is busy.
* Remove extra space.mux2003-08-121-1/+1
|
* Fixup comment.jhb2003-08-121-1/+1
|
* Reduce the size of the vm object on 64-bit architectures by movingalc2003-08-121-1/+1
| | | | a field within the structure.
* Add a '-M mask' option so that users can have differenttrhodes2003-08-123-4/+10
| | | | | | | | | | | masks for files and directories. This should make some of the Midnight Commander users happy. Remove an extra ')' in the manual page. PR: 35699 Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru> (original version) Tested by: simon
* - Convert Alpha over to the new calling conventions for cpu_throw() andjhb2003-08-127-65/+50
| | | | | | | | cpu_switch() where both the old and new threads are passed in as arguments. Only powerpc uses the old conventions now. - Update comments in the Alpha swtch.s to reflect KSE changes. Tested by: obrien, marcel
* Support EINPROGRESS and properly deal with 64bit physical addressing.ps2003-08-121-24/+59
|
* Halted CPU's should not accumulate time.ps2003-08-126-36/+36
| | | | Reviewed by: jhb
* - No need to bzero() the softc structure.mux2003-08-121-7/+3
| | | | - Use BUS_DMA_ZERO where appropriate.
* Remove two useless bzero() calls.mux2003-08-121-2/+0
| | | | Reviewed by: cognet
* Change the code that enables/disables the ATM channel to use theharti2003-08-121-67/+48
| | | | | | | new ATMIOCOPENVCC/CLOSEVCC. This allows us to not only use UBR channels for IP over ATM, but also CBR, VBR and ABR. Change the format of the link layer address to specify the channel characteristics. The old format is still supported and opens UBR channels.
* db_get_value uses a local buffer to first fetch all the bytes of aharti2003-08-121-1/+1
| | | | | | integer value and then to construct the integer from it. This buffer was sizeof(int) bytes long, which was fine until the (undocumented) 'g' modifier for 8-byte integers was introduced. Change this to sizeof(uint64_t).
* Validate number of iso. DMA channels.simokawa2003-08-121-0/+2
|
* Add a overhaul of the soundchip initialization for the MSP34xx chipsetsalex2003-08-1210-2/+1346
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | found only many tv-cards. We currently use more ore less evil hacks (slow_msp_audio sysctl) to configure the various variants of these chips in order to have stereo autodetection work. Nevertheless, this doesn't always work even though it _should_, according to the specs. This is, for example, the case for some popular Hauppauge models sold sold in Germany. However, the Linux driver always worked for me and others. Looking at the sourcecode you will find that the linux-driver uses a very much enhanced approach to program the various msp34xx chipset variants, which is also found in the specs for these chips. This is a port of the Linux MSP34xx code, written by Gerd Knorr <kraxel@bytesex.org>, who agreed to re-release his code under a BSD license for this port. A new config option "BKTR_NEW_MSP34XX_DRIVER" is added, which is required to enable the new driver. Otherwise the old code is used. The msp34xx.c file is diff-reduced to the linux-driver to make later modifications easier, thus it doesn't follow style(9) in most cases. Approved by: roger (committing this, no time to test/review), keichii (code review)
* Extend identifycpu():marcel2003-08-121-17/+36
| | | | | | | | | | | | | | | | o Differentiate between CPU family and CPU model. There are multiple Itanium 2 models and it's nice to differentiate between them. o Seperately export the CPU family and CPU model with sysctl. o Merced is the only model in the Itanium family. o Add Madison to the Itanium 2 family. We already knew about McKinley. o Print the CPU family between parenthesis, like we do with the i386 CPU class. My prototype now identifies itself as: CPU: Merced (800.03-Mhz Itanium) pluto1 and pluto2 will eventually identify themselves as: CPU: McKinley (900.00-Mhz Itanium 2)
* Fix the busdma support in twe to support EINPROGRESS and enable it forps2003-08-125-112/+249
| | | | use with PAE kernels.
* Add support for the Broadcom BCM5901 and BCM5901 rev A2 chips.wpaul2003-08-123-5/+31
| | | | | | | | These are 10/100 only NICs found on the IBM Thinkpad R40E and G40. These seem to be based on the BCM5705 MAC but with a PHY that doesn't support 1000Mbps modes. Submitted by: Igor Sviridov <sia@nest.org>
* This commit was generated by cvs2svn to compensate for changes in r118812,njl2003-08-121-2/+2
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Fix a few more s/UINT32/ACPI_SIZE issues. iasl and acpidb now build onnjl2003-08-121-2/+2
| | | | | | | | | | | | | | ia64. Tested on: pluto2 Pointed out by: tinderbox
* | Cleanup prototypes in cpu.h, including fswintrberr and any referencesmarcel2003-08-124-47/+8
| | | | | | | | | | | | to it. Sort the remaining prototypes in cpu.h. No functional change.
* | Pipespace() no longer requires Giant.alc2003-08-111-2/+2
| |
* | Cleanup and style(9) fixes. No functional change.marcel2003-08-111-7/+4
| |
* | - When deciding whether to init the zone with small_init or large_init,bmilekic2003-08-112-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compare the zone element size (+1 for the byte of linkage) against UMA_SLAB_SIZE - sizeof(struct uma_slab), and not just UMA_SLAB_SIZE. Add a KASSERT in zone_small_init to make sure that the computed ipers (items per slab) for the zone is not zero, despite the addition of the check, just to be sure (this part submitted by: silby) - UMA_ZONE_VM used to imply BUCKETCACHE. Now it implies CACHEONLY instead. CACHEONLY is like BUCKETCACHE in the case of bucket allocations, but in addition to that also ensures that we don't setup the zone with OFFPAGE slab headers allocated from the slabzone. This means that we're not allowed to have a UMA_ZONE_VM zone initialized for large items (zone_large_init) because it would require the slab headers to be allocated from slabzone, and hence kmem_map. Some of the zones init'd with UMA_ZONE_VM are so init'd before kmem_map is suballoc'd from kernel_map, which is why this change is necessary.
* | Drop Giant in recvit before returning an error to the caller to avoidkan2003-08-111-1/+4
| | | | | | | | leaking the Giant on the syscall exit.
* | Style cleanups to match the rest of this directory. For acpi_battery.c,njl2003-08-114-878/+800
| | | | | | | | remove unused includes.
* | bus_dmamap_create() is no longer optional for non-static dma mappings. Thanksscottl2003-08-111-0/+14
| | | | | | | | to ru@ for testing this.
* | Add ng_atmpif: a HARP physical interface emulation. This allows oneharti2003-08-119-2/+1980
| | | | | | | | | | | | to run the HARP ATM stack without real hardware. Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
* | Add the mlockall() and munlockall() system calls.bms2003-08-1110-29/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - All those diffs to syscalls.master for each architecture *are* necessary. This needed clarification; the stub code generation for mlockall() was disabled, which would prevent applications from linking to this API (suggested by mux) - Giant has been quoshed. It is no longer held by the code, as the required locking has been pushed down within vm_map.c. - Callers must specify VM_MAP_WIRE_HOLESOK or VM_MAP_WIRE_NOHOLES to express their intention explicitly. - Inspected at the vmstat, top and vm pager sysctl stats level. Paging-in activity is occurring correctly, using a test harness. - The RES size for a process may appear to be greater than its SIZE. This is believed to be due to mappings of the same shared library page being wired twice. Further exploration is needed. - Believed to back out of allocations and locks correctly (tested with WITNESS, MUTEX_PROFILING, INVARIANTS and DIAGNOSTIC). PR: kern/43426, standards/54223 Reviewed by: jake, alc Approved by: jake (mentor) MFC after: 2 weeks
* | Fix sparc64 LINT build. <blush>jake2003-08-111-2/+4
| |
* | This commit was generated by cvs2svn to compensate for changes in r118765,njl2003-08-111-2/+2
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Fix AcpiOsMapMemory to match the function definition. Don't use UINT32njl2003-08-111-2/+2
| | | | | | | | | | | | as a cast for a pointer. Change has been submitted to the vendor. Pointed out by: marcel, obrien
* | More pipe changes:silby2003-08-116-49/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | From alc: Move pageable pipe memory to a seperate kernel submap to avoid awkward vm map interlocking issues. (Bad explanation provided by me.) From me: Rework pipespace accounting code to handle this new layout, and adjust our default values to account for the fact that we now have a solid limit on allocations. Also, remove the "maxpipes" limit, as it no longer has a purpose. (The limit on kva usage solves the problem of having two many pipes.)
* | Don't provide mutexes for static busdma allocations.scottl2003-08-111-19/+22
| |
* | Implement cpu_set_upcall_kse(). Further tweaking may be needed aftermarcel2003-08-111-4/+25
| | | | | | | | testing.
* | Use vm_page_hold() instead of vm_page_wire(). Otherwise, a multithreadedalc2003-08-111-3/+3
| | | | | | | | | | | | | | | | | | | | application could cause a wired page to be freed. In general, vm_page_hold() should be preferred for ephemeral kernel mappings of pages borrowed from a user-level address space. (vm_page_wire() should really be reserved for indefinite duration pinning by the "owner" of the page.) Discussed with: silby Submitted by: tegge
* | The iBCS2 system call translator for statfs(2) did not check thenectar2003-08-101-0/+4
| | | | | | | | | | | | length parameter for validity. Submitted by: David Rhodus <drhodus@catpa.com>
* | panic() if we try to handle an out-of-range signal number innectar2003-08-101-2/+5
| | | | | | | | | | | | | | | | psignal()/tdsignal(). The test was historically in psignal(). It was changed into a KASSERT, and then later moved to tdsignal() when the latter was introduced. Reviewed by: iedowse, jhb
* | Add or correct range checking of signal numbers in system calls andnectar2003-08-104-3/+7
| | | | | | | | | | | | | | | | | | ioctls. In the particular case of ptrace(), this commit more-or-less reverts revision 1.53 of sys_process.c, which appears to have been erroneous. Reviewed by: iedowse, jhb
* | Rename pmap_changebit() to pmap_clear_ptes() and remove the lastalc2003-08-102-50/+38
| | | | | | | | | | | | | | | | | | | | parameter. The new name better reflects what the function does and how it is used. The last parameter was always FALSE. Note: In theory, gcc would perform constant propagation and dead code elimination to achieve the same effect as removing the last parameter, which is always FALSE. In practice, recent versions do not. So, there is little point in letting unused code pessimize execution.
* | o move cpu_reset() from vm_machdep.c to machdep.c.marcel2003-08-102-79/+68
| | | | | | | | | | | | o reorder cpu_boot(), cpu_halt() and identifycpu(). No functional change.
* | The BCM5704 ASIC has a smaller mbuf space than the 5700/1/2/3. Failurewpaul2003-08-101-2/+10
| | | | | | | | | | | | to configure this correctly yields many watchdog timeouts even on lightly loaded machines. This is a common complaint from users with Dell 1750 servers with built-in dual 5704 NICs.
* | Lower initial drop value to 50, it is enough to hide linearityache2003-08-101-2/+2
| |
OpenPOWER on IntegriCloud