summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* whitespace fixes (trailing whitespace, bad indentationluigi2010-04-198-59/+61
| | | | after a merge, etc.)
* Don't clear other flags (e.g. CSUM_TCP) when setting CSUM_TSO. This wasken2010-04-191-1/+1
| | | | | | | causing TSO to break for the Xen netfront driver. Reviewed by: gibbs, rwatson MFC after: 7 days
* Slightly different handling of printf/snprintf for unaligned uint64_t,luigi2010-04-193-36/+40
| | | | | | | which should improve readability, and also to ease the port to platforms that do not support %llu MFC after: 3 days
* Fix brokenness in top on big-endian 32-bit systems introduced whennwhitehorn2010-04-191-1/+1
| | | | | | | changing format_k2 to take a long long. Because itoa is defined as a K&R C function, without prototyping its arguments, format_k2 passed a 64-bit value, but itoa() received only the first word, showing '0' in all memory fields.
* Get delayed SACK working again.tuexen2010-04-191-0/+4
| | | | MFC after: 3 days.
* Revert r206755. It causes some laptops to stop booting.rpaulo2010-04-191-1/+0
|
* Partially MFp4 #176265 by pjd@:delphij2010-04-191-5/+12
| | | | | | | | | | | | - Properly initialize and destroy system_taskq. - Add a dummy implementation of taskq_create_proc(). Note: We do not currently use system_taskq in ZFS so this is mostly a no-op at this time. Proper system_taskq initialization is required by newer ZFS code. Ok'ed by: pjd MFC after: 2 weeks
* Fix MALTA64 build.jmallett2010-04-191-2/+2
|
* Remove unused file.jmallett2010-04-192-172/+0
|
* o) Eliminate the "stand" frame and its use. Use CALLFRAME_* everywhere.jmallett2010-04-197-349/+237
| | | | | | | | | | | | | | | | | o) Use <machine/asm.h> macros for register-width, etc., rather than doing it by hand in a few more assembly files. o) Reduce diffs between various bits of TLB refill code in exception.S and between interrupt processing code. o) Use PTR_* to operate on registers that are pointers (e.g. sp). o) Add and use a macro, CLEAR_PTE_SWBITS rather than using the mysteriously-named WIRED_SHIFT to select bits to truncate when loading PTEs. o) Don't doubly disable interrupts by moving zero to the status register, especially since that has the nasty side-effect of taking us out of 64-bit mode. o) Use CLEAR_STATUS to disable interrupts the first time. o) Keep SR_PX set as well as SR_[KSU]X when doing exception processing. This is the bit that determines whether 64-bit operations are allowed. o) Don't enable interrupts until configure_final(), like most other ports.
* o) Fix XKPHYS physical address extraction. Also define cache coherencyjmallett2010-04-195-43/+49
| | | | | | | | | attributes for XKPHYS. o) Make coprocessor 0 accessor function macros for register+selector registers take the full name so that e.g. (as done in this commit), prid selector 1 can be written through mips_wr_ebase() rather than mips_wr_prid1(). o) Allow for sign extension of 32-bit segment addresses. o) Remove an unused MIPS-I register number.
* vm_thread_swapout() can safely dirty the page before rather than afteralc2010-04-191-1/+1
| | | | acquiring the page queues lock.
* o) Add a VM find-space option, VMFS_TLB_ALIGNED_SPACE, which searches thejmallett2010-04-1814-34/+88
| | | | | | | | | | | | | | | | | | | | | address space for an address as aligned by the new pmap_align_tlb() function, which is for constraints imposed by the TLB. [1] o) Add a kmem_alloc_nofault_space() function, which acts like kmem_alloc_nofault() but allows the caller to specify which find-space option to use. [1] o) Use kmem_alloc_nofault_space() with VMFS_TLB_ALIGNED_SPACE to allocate the kernel stack address on MIPS. [1] o) Make pmap_align_tlb() on MIPS align addresses so that they do not start on an odd boundary within the TLB, so that they are suitable for insertion as wired entries and do not have to share a TLB entry with another mapping, assuming they are appropriately-sized. o) Eliminate md_realstack now that the kstack will be appropriately-aligned on MIPS. o) Increase the number of guard pages to 2 so that we retain the proper alignment of the kstack address. Reviewed by: [1] alc X-MFC-after: Making sure alc has not come up with a better interface.
* Avoid extraneous recovery cycles in the experimental NFS clientrmacklem2010-04-182-4/+30
| | | | | | | | | | | | | | when an NFSv4 server reboots, by doing two things. 1 - Make the function that acquires a stateid for I/O operations block until recovery is complete, so that it doesn't acquire out of date stateids. 2 - Only allow a recovery once every 1/2 of a lease duration, since the NFSv4 server must provide a recovery grace period of at least a lease duration. This should avoid recoveries caused by an out of date stateid that was acquired for an I/O op. just before a recovery cycle started. MFC after: 1 week
* sh: Add testcases for double-quotes within quoted ${var+-...} (non-POSIX).jilles2010-04-181-0/+44
| | | | | | POSIX leaves things like "${var+"word"}" undefined. We follow traditional ash behaviour here. Hence, these testcases also work on stable/8.
* Remove a nonsensical test from vm_pageout_clean(). A page can't be in thealc2010-04-181-2/+0
| | | | | | | inactive queue and have a non-zero wire count. Reviewed by: kib MFC after: 3 weeks
* Delete svn:executable prop.rpaulo2010-04-181-0/+0
|
* Revert r206649.kib2010-04-181-18/+13
| | | | | | | | | Simplify the presented declaration of struct sigaction, noting the caveat in the text. Real layout of the structure and exposed implementation namespace only obfuscates the usage. Submitted by: bde MFC after: 3 days
* There is no justification for vm_object_split() setting PG_REFERENCED on aalc2010-04-181-1/+0
| | | | | | page that it is going to sleep on. Eliminate it. MFC after: 3 weeks
* Restore previous order.pjd2010-04-181-1/+1
|
* Style fixes.pjd2010-04-181-66/+54
|
* Add missing list and lock destruction.pjd2010-04-181-0/+2
|
* Extend locks scope to match OpenSolaris.pjd2010-04-181-5/+2
|
* Remove racy assertion.pjd2010-04-181-3/+0
| | | | Obtained from: OpenSolaris
* Set ARC_L2_WRITING on L2ARC header creation.pjd2010-04-181-0/+1
| | | | Obtained from: OpenSolaris
* ln: Refuse deleting a directory entry by hardlinking it to itself.jilles2010-04-171-2/+59
| | | | | | | | | | | | | | Two pathnames refer to the same directory entry iff the directories match and the final components' names match. Example: (assuming file1 is an existing file) ln -f file1 file1 This now fails while leaving file1 intact. It used to delete file1 and then complain it cannot be linked because it is gone. With -i, this error is detected before the question is asked. MFC after: 2 weeks
* Use ubthidhci_enable="NO" to avoid the bootup warning.rpaulo2010-04-171-1/+1
| | | | | Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 3 days
* In vm_object_madvise() setting PG_REFERENCED on a page before sleeping onalc2010-04-171-2/+9
| | | | | | | | | | | | | that page only makes sense if the advice is MADV_WILLNEED. In that case, the intention is to activate the page, so discouraging the page daemon from reclaiming the page makes sense. In contrast, in the other cases, MADV_DONTNEED and MADV_FREE, it makes no sense whatsoever to discourage the page daemon from reclaiming the page by setting PG_REFERENCED. Wrap a nearby line. Discussed with: kib MFC after: 3 weeks
* In case a user wants to configure only an IPv6 link-local addressdougb2010-04-172-0/+8
| | | | add an example that shows how to do it.
* In vm_object_backing_scan(), setting PG_REFERENCED on a page beforealc2010-04-171-3/+0
| | | | | | | | | | | | | | | sleeping on that page is nonsensical. Doing so reduces the likelihood that the page daemon will reclaim the page before the thread waiting in vm_object_backing_scan() is reawakened. However, it does not guarantee that the page is not reclaimed, so vm_object_backing_scan() restarts after reawakening. More importantly, this muddles the meaning of PG_REFERENCED. There is no reason to believe that the caller of vm_object_backing_scan() is going to use (i.e., access) the contents of the page. There is especially no reason to believe that an access is more likely because vm_object_backing_scan() had to sleep on the page. Discussed with: kib MFC after: 3 weeks
* Remove IPW_LOCK_DECL and fix various LORs.bschmidt2010-04-172-22/+16
| | | | Approved by: rpaulo (mentor)
* Use iv_appie_wpa, with this commit WPA works again.bschmidt2010-04-171-2/+2
| | | | Approved by: rpaulo (mentor)
* - Make ipw usable again by moving directly into ASSOC state.bschmidt2010-04-171-1/+7
| | | | | | | - No need to manually switch to RUN state, assoc response takes care of that. Approved by: rpaulo (mentor)
* Pass correct RSSI to ieee80211_input*().bschmidt2010-04-171-2/+2
| | | | Approved by: rpaulo (mentor)
* Fix comment about ipw_assoc and remove some whitespaces; no functionalbschmidt2010-04-171-6/+6
| | | | | | changes. Approved by: rpaulo (mentor)
* Setting PG_REFERENCED on the requested page in swap_pager_getpages() isalc2010-04-171-5/+1
| | | | | | | | | | | either redundant or harmful, depending on the caller. For example, when called by vm_fault(), it is redundant. However, when called by vm_thread_swapin(), it is harmful. Specifically, if the thread is later swapped out, having PG_REFERENCED set on its stack pages leads the page daemon to reactivate these stack pages and delay their reclamation. Reviewed by: kib MFC after: 3 weeks
* getcwd(3): Clarify that EACCES may or may not be checked.jilles2010-04-171-3/+11
| | | | | | | | | | | | | | | | POSIX permits but does not require checking access on the current and parent directories. Because various programs do not like it if getcwd(3) fails, it seems best to avoid checking access as much as possible. There are various reports in GNATS about this (search for getcwd). Our getcwd(3) implementation first queries the kernel for the pathname directly, which does not check any permissions but sometimes fails, and then falls back to reading all parent directories for the names. PR: standards/44425 MFC after: 2 weeks
* sh: On startup of the shell, use PWD from the environment if it is valid.jilles2010-04-174-10/+48
| | | | | | | | | | | | | | | Unset PWD if it is incorrect and no value for it can be determined. This preserves the logical current directory across shell invocations. Example (assuming /home is a symlink): $ cd $ pwd /home/foo $ sh $ pwd /home/foo Formerly the second pwd would show the physical path (symlinks resolved).
* Fix a bug where SACKs are not sent when they should.tuexen2010-04-171-8/+13
| | | | | | | Move some protection code to INVARIANTS. Cleanups. MFC after: 3 days.
* Add another ICH7M chipset that works.rpaulo2010-04-171-0/+1
| | | | MFC after: 1 week
* o) Make pcb_onfault a pointer rather than an obscure integer value.jmallett2010-04-177-548/+459
| | | | | | | | | | | | | | | | | | | o) Mask off PAGE_MASK bits in pmap_update_page, etc., rather than modifying the badvaddr in trapframe. Some nearby interfaces already did this. o) Make PTEs "unsigned int" for now, not "unsigned long" -- we are only ready for them to be 32-bit on 64-bit platforms. o) Rather than using pmap_segmap and calculating the offset into the page table by hand in trap.c, use pmap_pte(). o) Remove unused quad_syscall variable in trap.c. o) Log things for illegal instructions like we do for bad page faults. o) Various cast cleanups related to how to print registers. o) When logging page faults, show the page table information not just for the program counter, but for the fault address. o) Modify support.S to use ABI-neutral macros for operating on pointers. o) Consistently use CALLFRAME_SIZ rather than STAND_FRAME_SIZE, etc. o) Remove unused insque/remque functions. o) Remove some coprocessor 0 accessor functions implemented in assembly that are unused and have inline assembly counterparts.
* o) Add NPDEPG, like NPTEPG but for PDEs.jmallett2010-04-1712-78/+54
| | | | | | | | o) Remove NBPG, PGOFSET and PGSHIFT. Use the standard names. o) Remove some unused macros and move things from param.h to vmparam.h that belong in the latter. (Actually, all of the kernel segment values, virtual addresses, etc., belong in one place, but this is a step in the right direction.)
* o) Add SMP support for Octeon using U-Boot to launch all the processors at thejmallett2010-04-1711-513/+210
| | | | | | | | | | | | | | | | | | | same time. o) Remove some unused trivial uart functions from octeon_machdep now that the uart part is fully working and they are unused. o) Use __func__ instead of __FUNCTION__. o) Use intr_*() instead of other routines that do the same thing. o) Remove some duplicate printfs from the Octeon port, as well as duplicate setting of Maxmem. o) Use the right frequency divider on Octeon. o) Use PCPU_GET(cpuid) consistently to get the cpuid of the running core. o) Remove some unused macros in the Octeon port. o) Use mips_sync() around use of the global dpcpu, whose value may not be visible to APs at first. o) When loading the first thread's stack, use macros to make the code correct for n64 as well. o) Remove stub, do-nothing FAU init/enable/disable functions from the RGMX driver.
* o) Back out my previous change to SWARM; some of it was to address an issuejmallett2010-04-172-16/+13
| | | | | | that turned out to be unrelated, and the rest was, as pointed out by Neel, just wrong-headed. o) Tweak mem.c to fix use of /dev/kmem for direct-mapped addresses.
* o) Use inline functions to access coprocessor 0 registers rather than externaljmallett2010-04-1716-417/+214
| | | | | | | | | | | | | | | | | | | | ones implemented using assembly. o) Use TRAPF_USERMODE() consistently rather than USERMODE(). Eliminate <machine/psl.h> as a result. o) Use intr_*() rather than *intr(), consistently. o) Use register_t instead of u_int in some trap code. o) Merge some more endian-related macros to machine/asm.h from NetBSD. o) Add PTR_LI macro, which loads an address with the correct sign-extension for a pointer. o) Restore interrupts when bailing out due to an excessive IRQ in nexus_setup_intr(). o) Remove unused functions from psraccess.S. o) Enter temporary virtual entries for large memory access into the page tables rather than simply hoping they stay resident in the TLB and we don't need to do a refill for them. o) Abstract out large memory mapping setup/teardown using some macros. o) Do mips_dcache_wbinv_range() when using temporary virtual addresses just like we do when we can use the direct map.
* o) Remove code related to VM_ALLOC_WIRED_TLB_PG_POOL, VM_KERNEL_ALLOC_OFFSETjmallett2010-04-176-338/+59
| | | | and floating pages. They are unused and unsupported.
* Adjust limits and formats for ABIs with 64-bit longs.jmallett2010-04-162-46/+56
|
* o) Use the direct map where possible for uiomove_fromphys, based on code fromjmallett2010-04-164-214/+152
| | | | | | | sparc64. o) Use uiomove_fromphys rather than the broken fpage mechanism for /dev/mem. o) Update sf_buf allocator to not share buffers and to do a pmap_qremove when done with an sf_buf so as to better track valid mappings.
* o) Fix the intr_* functions to not spam the whole status register, just the IEjmallett2010-04-161-56/+45
| | | | | | | | bit. o) Remove some unused inlines. o) Generate CP0 access functions for 64-bit TLB registers when building for n64. o) Add an inline function version of the COP0_SYNC macro.
* Set KERNLOADADDR and TARGET_BIG_ENDIAN for SWARM.jmallett2010-04-161-0/+5
|
OpenPOWER on IntegriCloud