aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* An addendum to r195649, "Add support to the virtual memory system forAlan Cox2009-07-183-21/+18
| | | | | | | | | | | | | | | | | | | configuring machine-dependent memory attributes...": Don't set the memory attribute for a "real" page that is allocated to a device object in vm_page_alloc(). It is a pointless act, because the device pager replaces this "real" page with a "fake" page and sets the memory attribute on that "fake" page. Eliminate pointless code from pmap_cache_bits() on amd64. Employ the "Self Snoop" feature supported by some x86 processors to avoid cache flushes in the pmap. Approved by: re (kib) Notes: svn path=/head/; revision=195749
* Fix copy-paste bug. Use regular non-polled mode for executing FLUSHCACHEAlexander Motin2009-07-171-2/+3
| | | | | | | | | command on disk close. Approved by: re (implicitly) Notes: svn path=/head/; revision=195748
* Patch the regular nfs client in a manner analagous toRick Macklem2009-07-171-1/+2
| | | | | | | | | | | | r195704 for the experimental client. The patch avoids calling vn_lock() for the case where nfs_nget() has acquired the same vnode as dvp, since nfs_nget() has already locked the vnode. Reviewed by: kib, jhb Approved by: re (kensmith), kib (mentor) Notes: svn path=/head/; revision=195744
* Add IEEE80211_SUPPORT_MESH, following similar change to nanobsd andRui Paulo2009-07-172-0/+2
| | | | | | | | | other GENERIC kernels. Approved by: re (kib) Notes: svn path=/head/; revision=195742
* Remove the interim vimage containers, struct vimage and struct procg,Jamie Gritton2009-07-1711-502/+30
| | | | | | | | | and the ioctl-based interface that supported them. Approved by: re (kib), bz (mentor) Notes: svn path=/head/; revision=195741
* Import OpenBSM 1.1p1 from vendor branch to 8-CURRENT, populatingRobert Watson2009-07-174-12/+126
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contrib/openbsm and a subset also imported into sys/security/audit. This patch release addresses several minor issues: - Fixes to AUT_SOCKUNIX token parsing. - IPv6 support for au_to_me(3). - Improved robustness in the parsing of audit_control, especially long flags/naflags strings and whitespace in all fields. - Add missing conversion of a number of FreeBSD/Mac OS X errnos to/from BSM error number space. MFC after: 3 weeks Obtained from: TrustedBSD Project Sponsored by: Apple, Inc. Approved by: re (kib) Notes: svn path=/head/; revision=195740
| * Vendor import of OpenBSM 1.1p1, which incorporates the following changesvendor/openbsm/1.1-P-1Robert Watson2009-07-172-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since the last imported OpenBSM release: OpenBSM 1.1p1 - Fixes to AUT_SOCKUNIX token parsing. - IPv6 support for au_to_me(3). - Improved robustness in the parsing of audit_control, especially long flags/naflags strings and whitespace in all fields. - Add missing conversion of a number of FreeBSD/Mac OS X errnos to/from BSM error number space. Obtained from: TrustedBSD Project Sponsored by: Apple, Inc. Notes: svn path=/vendor/openbsm/dist/; revision=195738 svn path=/vendor/openbsm/1.1-P-1/; revision=195739; tag=vendor/openbsm/1.1-P-1
* | Remove unused VNET_SET() and related macros; only VNET_GET() isRobert Watson2009-07-1673-383/+378
| | | | | | | | | | | | | | | | | | | | | | | | ever actually used. Rename VNET_GET() to VNET() to shorten variable references. Discussed with: bz, julian Reviewed by: bz Approved by: re (kensmith, kib) Notes: svn path=/head/; revision=195727
* | Limit IOCATAREQUEST ioctl data size to controller's maximum I/O size.Alexander Motin2009-07-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | It fixes kernel panic when requested size is too large (0xffffffff), PR: kern/136726 Approved by: re (kib) MFC after: 2 weeks Notes: svn path=/head/; revision=195724
* | Prepare for the 8.0-BETA2 builds.Ken Smith2009-07-151-1/+1
| | | | | | | | | | | | | | Approved by: re (implicit) Notes: svn path=/head/; revision=195712
* | dtrace_gethrtime: improve scaling of TSC ticks to nanosecondsAndriy Gapon2009-07-152-4/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently dtrace_gethrtime uses formula similar to the following for converting TSC ticks to nanoseconds: rdtsc() * 10^9 / tsc_freq The dividend overflows 64-bit type and wraps-around every 2^64/10^9 = 18446744073 ticks which is just a few seconds on modern machines. Now we instead use precalculated scaling factor of 10^9*2^N/tsc_freq < 2^32 and perform TSC value multiplication separately for each 32-bit half. This allows to avoid overflow of the dividend described above. The idea is taken from OpenSolaris. This has an added feature of always scaling TSC with invariant value regardless of TSC frequency changes. Thus the timestamps will not be accurate if TSC actually changes, but they are always proportional to TSC ticks and thus monotonic. This should be much better than current formula which produces wildly different non-monotonic results on when tsc_freq changes. Also drop write-only 'cp' variable from amd64 dtrace_gethrtime_init() to make it identical to the i386 twin. PR: kern/127441 Tested by: Thomas Backman <serenity@exscape.org> Reviewed by: jhb Discussed with: current@, bde, gnn Silence from: jb Approved by: re (gnn) MFC after: 1 week Notes: svn path=/head/; revision=195710
* | r195699 introduced an assertion regarding when progbits data in kernelRobert Watson2009-07-151-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | modules was present, which turns out to be false in some situations. Back out the assertion. Reported by: Luiz Otavio O Souza <lists.br at gmail.com>, Florian Smeets <flo at kasimir.com> Approved by: re (kensmith) (implicit) Notes: svn path=/head/; revision=195707
* | Add missing license line for vnet.h, correct white space nit.Robert Watson2009-07-151-1/+2
| | | | | | | | | | | | | | Approved by: re (kensmith) (implicit) Notes: svn path=/head/; revision=195705
* | Fix the experimental nfs client so that it does not cause aRick Macklem2009-07-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | "share->excl" panic when doing a lookup of dotdot at the root of a server's file system. The patch avoids calling vn_lock() for that case, since nfscl_nget() has already acquired a lock for the vnode. Approved by: re (kensmith), kib (mentor) Notes: svn path=/head/; revision=195704
* | Use PBDRY flag for msleep(9) in NFS and NLM when sleeping thread ownsKonstantin Belousov2009-07-145-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | kernel resources that block other threads, like vnode locks. The SIGSTOP sent to such thread (process, rather) shall not stop it until thread releases the resources. Tested by: pho Reviewed by: jhb Approved by: re (kensmith) Notes: svn path=/head/; revision=195703
* | Add new msleep(9) flag PBDY that shall be specified together withKonstantin Belousov2009-07-1410-29/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PCATCH, to indicate that thread shall not be stopped upon receipt of SIGSTOP until it reaches the kernel->usermode boundary. Also change thread_single(SINGLE_NO_EXIT) to only stop threads at the user boundary unconditionally. Tested by: pho Reviewed by: jhb Approved by: re (kensmith) Notes: svn path=/head/; revision=195702
* | Move the repeated code to calculate the number of the threads in theKonstantin Belousov2009-07-141-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | process that still need to be suspended or exited from thread_single into the new function calc_remaining(). Tested by: pho Reviewed by: jhb Approved by: re (kensmith) Notes: svn path=/head/; revision=195701
* | When wakeup(9) is going to notify swapper, assert that wait channel is notKonstantin Belousov2009-07-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | equal to &proc0. It shall be not, since proc0 stack is not swappable, and kick_proc0() is wakeup(&proc0). Reviewed by: jhb Approved by: re (kensmith) Notes: svn path=/head/; revision=195700
* | Build on Jeff Roberson's linker-set based dynamic per-CPU allocatorRobert Watson2009-07-14166-4307/+2491
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (DPCPU), as suggested by Peter Wemm, and implement a new per-virtual network stack memory allocator. Modify vnet to use the allocator instead of monolithic global container structures (vinet, ...). This change solves many binary compatibility problems associated with VIMAGE, and restores ELF symbols for virtualized global variables. Each virtualized global variable exists as a "reference copy", and also once per virtual network stack. Virtualized global variables are tagged at compile-time, placing the in a special linker set, which is loaded into a contiguous region of kernel memory. Virtualized global variables in the base kernel are linked as normal, but those in modules are copied and relocated to a reserved portion of the kernel's vnet region with the help of a the kernel linker. Virtualized global variables exist in per-vnet memory set up when the network stack instance is created, and are initialized statically from the reference copy. Run-time access occurs via an accessor macro, which converts from the current vnet and requested symbol to a per-vnet address. When "options VIMAGE" is not compiled into the kernel, normal global ELF symbols will be used instead and indirection is avoided. This change restores static initialization for network stack global variables, restores support for non-global symbols and types, eliminates the need for many subsystem constructors, eliminates large per-subsystem structures that caused many binary compatibility issues both for monitoring applications (netstat) and kernel modules, removes the per-function INIT_VNET_*() macros throughout the stack, eliminates the need for vnet_symmap ksym(2) munging, and eliminates duplicate definitions of virtualized globals under VIMAGE_GLOBALS. Bump __FreeBSD_version and update UPDATING. Portions submitted by: bz Reviewed by: bz, zec Discussed with: gnn, jamie, jeff, jhb, julian, sam Suggested by: peter Approved by: re (kensmith) Notes: svn path=/head/; revision=195699
* | - Change mmap() to fail requests with EINVAL that pass a length of 0. ThisJohn Baldwin2009-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | behavior is mandated by POSIX. - Do not fail requests that pass a length greater than SSIZE_MAX (such as > 2GB on 32-bit platforms). The 'len' parameter is actually an unsigned 'size_t' so negative values don't really make sense. Submitted by: Alexander Best alexbestms at math.uni-muenster.de Reviewed by: alc Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=195693
* | Re-add opt_inet.h, as we did in r193862 and lost yet again.Bjoern A. Zeeb2009-07-141-0/+1
| | | | | | | | | | | | | | Approved by: re (kib) Notes: svn path=/head/; revision=195691
* | Disable MSI by default for nVidia MCP55 chipset.Alexander Motin2009-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | It is reported to be broken in the same way as MCP51. PR: kern/136429 Approved by: re (kib) Notes: svn path=/head/; revision=195690
* | - Do aggresive saturation on various polynomial interpolators.Ariff Abdullah2009-07-141-93/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | This dramatically pushing 99.9% interpolations and quantizations error _below_ -180dB on 32bit dynamic range, resulting extremely high quality conversion. - Use BSPLINE interpolator for filter oversampling factor greater or equal than 64 (log2 6). Approved by: re (kib) Notes: svn path=/head/; revision=195689
* | Change xpt_scan_bus to scsi_scan_bus and xpt_scan_lun to scsi_scan_lunEd Maste2009-07-141-10/+10
| | | | | | | | | | | | | | | | | | in comments and printfs to match new function names after refacoring. Approved by: re Notes: svn path=/head/; revision=195688
* | Fix leaks in probestart, probedone, and scsi_scan_bus. Also freeEd Maste2009-07-141-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | page_list using the matching malloc type for the allocation. Approved by: re Reviewed by: scottl [1] MFC after: 1 week [1] Original patch was against xpt_cam.c, prior to the cam refactoring. Notes: svn path=/head/; revision=195685
* | Fix a buglet that slipped into r195654. My buildworld/buildkernel sanityLawrence Stewart2009-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | check missed this because cxgb's TOM is currently commented out of the build system. Submitted by: Navdeep Parhar <np at FreeBSD dot org> Approved by: re (kensmith), kensmith (mentor temporarily unavailable) Notes: svn path=/head/; revision=195677
* | Adding hardware ID for RTL810x PCIe found on HP Pavilion DV2-1022AX.Tai-hwa Liang2009-07-142-0/+3
| | | | | | | | | | | | | | | | Reviewed by: yongari Approved by: re (kib, kensmith) Notes: svn path=/head/; revision=195675
* | Match PCI Express root bridge _HID directly instead ofJung-uk Kim2009-07-133-1/+3
| | | | | | | | | | | | | | | | | | | | relying on _CID. Reviewed by: jhb Approved by: re (kib) Notes: svn path=/head/; revision=195666
* | Fix copy-paste bug, enabling SIM PMP support, when it was not really found.Alexander Motin2009-07-131-1/+1
| | | | | | | | | | | | | | Approved by: re (implicitly) Notes: svn path=/head/; revision=195665
* | Revert the CISS driver to 64K i/o, the previous change was in error andScott Long2009-07-131-1/+1
| | | | | | | | | | | | | | | | | | missing a lot of needed infrastructure. Approved by: re Notes: svn path=/head/; revision=195663
* | Fix inline function declaration and prototype.Rui Paulo2009-07-131-5/+4
| | | | | | | | | | | | | | Approved by: re (kensmith) Notes: svn path=/head/; revision=195661
* | Correct an error of omission in r195649 ("Add support to the virtual memoryAlan Cox2009-07-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | system for configuring machine-dependent memory attributes: ..."). In r195649, the "vm_cache_mode_t/vm_memattr_t" parameter was removed from vm_phys_alloc_contig(). Approved by: re (kensmith) Notes: svn path=/head/; revision=195660
* | Fix Marvel SATA controllers operation, broken by rev. 188765,Alexander Motin2009-07-131-2/+2
| | | | | | | | | | | | | | | | | | | | by using uninitialized variable. Tested by: Chris Hedley Approved by: re (kensmith) Notes: svn path=/head/; revision=195659
* | Fix a race in the manipulation of the V_tcp_sack_globalholes global variable,Lawrence Stewart2009-07-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which is currently not protected by any type of lock. When triggered, the bug would sometimes cause a panic when the TCP activity to an affected machine eventually slowed during a lull. The panic only occurs if INVARIANTS is compiled into the kernel, and has laid dormant for some time as a result of INVARIANTS being off by default except in FreeBSD-CURRENT. Switch to atomic operations in the locations where the variable is changed. Reads have not been updated to be protected by atomics, so there is a possibility of accounting errors in any given calculation where the variable is read. This is considered unlikely to occur in the wild, and will not cause serious harm on rare occasions where it does. Thanks to Robert Watson for debugging help. Reported by: Kamigishi Rei <spambox at haruhiism dot net> Tested by: Kamigishi Rei <spambox at haruhiism dot net> Reviewed by: silby Approved by: re (rwatson), kensmith (mentor temporarily unavailable) Notes: svn path=/head/; revision=195655
* | Replace struct tcpopt with a proxy toeopt struct in the TOE driver interface toLawrence Stewart2009-07-136-22/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the TCP syncache. This returns struct tcpopt to being private within the TCP implementation, thus allowing it to be modified without ABI concerns. The patch breaks the ABI. Bump __FreeBSD_version to 800103 accordingly. The cxgb driver is the only TOE consumer affected by this change, and needs to be recompiled along with the kernel. Suggested by: rwatson Reviewed by: rwatson, kmacy Approved by: re (kensmith), kensmith (mentor temporarily unavailable) Notes: svn path=/head/; revision=195654
* | Rename ATA probe driver to "aprobe" to resolve name conflict with SCSIAlexander Motin2009-07-131-4/+4
| | | | | | | | | | | | | | | | | | and fix loading cam as module. Approved by: re (implicitly) Notes: svn path=/head/; revision=195653
* | Add support to the virtual memory system for configuring machine-Alan Cox2009-07-1230-106/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dependent memory attributes: Rename vm_cache_mode_t to vm_memattr_t. The new name reflects the fact that there are machine-dependent memory attributes that have nothing to do with controlling the cache's behavior. Introduce vm_object_set_memattr() for setting the default memory attributes that will be given to an object's pages. Introduce and use pmap_page_{get,set}_memattr() for getting and setting a page's machine-dependent memory attributes. Add full support for these functions on amd64 and i386 and stubs for them on the other architectures. The function pmap_page_set_memattr() is also responsible for any other machine-dependent aspects of changing a page's memory attributes, such as flushing the cache or updating the direct map. The uses include kmem_alloc_contig(), vm_page_alloc(), and the device pager: kmem_alloc_contig() can now be used to allocate kernel memory with non-default memory attributes on amd64 and i386. vm_page_alloc() and the device pager will set the memory attributes for the real or fictitious page according to the object's default memory attributes. Update the various pmap functions on amd64 and i386 that map pages to incorporate each page's memory attributes in the mapping. Notes: (1) Inherent to this design are safety features that prevent the specification of inconsistent memory attributes by different mappings on amd64 and i386. In addition, the device pager provides a warning when a device driver creates a fictitious page with memory attributes that are inconsistent with the real page that the fictitious page is an alias for. (2) Storing the machine-dependent memory attributes for amd64 and i386 as a dedicated "int" in "struct md_page" represents a compromise between space efficiency and the ease of MFCing these changes to RELENG_7. In collaboration with: jhb Approved by: re (kib) Notes: svn path=/head/; revision=195649
* | This patch adds a host route to an interface address (that is assignedQing Li2009-07-121-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | to a non loopback/ppp link type) through the loopback interface. Prior to the new L2/L3 rewrite, this host route was explicitly created when processing the IPv6 address assignment. This loopback host route is deleted when that IPv6 address is removed from the interface. Reviewed by: bz, gnn Approved by: re Notes: svn path=/head/; revision=195643
* | Add calls to the experimental nfs client for the case of an "intr" mount,Rick Macklem2009-07-121-1/+16
| | | | | | | | | | | | | | | | | | | | so that signals that aren't supposed to terminate RPCs in progress are masked off during the RPC. Approved by: re (kensmith), kib (mentor) Notes: svn path=/head/; revision=195642
* | Fix the handling of dotdot in lookup for the experimental nfs clientRick Macklem2009-07-121-0/+2
| | | | | | | | | | | | | | | | | | in a manner analagous to the change in r195294 for the regular nfs client. Approved by: re (kensmith), kib (mentor) Notes: svn path=/head/; revision=195641
* | Isochronous transfers only have 1 frame buffer, but multipleMarcel Moolenaar2009-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | frame lengths. The frame buffer is at index 0. Approved by: re (kensmith) Obtained from: HPS Notes: svn path=/head/; revision=195640
* | MFp4:Marcel Moolenaar2009-07-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USB CORE: busdma improvement For single segment allocations the boundary field of the BUSDMA tag should be zero. Currently all single segment allocations are less than or equal to 4096 bytes, so the limit does not kick in. If any single segment USB allocations would be greater than 4K, then it would be a problem. Approved by: re (kensmith) Obtained from: HPS Notes: svn path=/head/; revision=195639
* | When VM_MAP_WIRE_HOLESOK is not specified and vm_map_wire(9) encountersKonstantin Belousov2009-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | non-readable and non-executable map entry, the entry is skipped from wiring and loop is aborted. But, since MAP_ENTRY_WIRE_SKIPPED was not set for the map entry, its wired_count is later erronously decremented. vm_map_delete(9) for such map entry stuck in "vmmaps". Properly set MAP_ENTRY_WIRE_SKIPPED when aborting the loop. Reported by: John Marshall <john.marshall riverwillow com au> Approved by: re (kensmith) Notes: svn path=/head/; revision=195635
* | Pad the following TCP related structs to allow MFCs of upcoming features/fixesLawrence Stewart2009-07-122-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | back to the 8 branch: tcp_var.h - struct sackhint - struct tcpcb - struct tcpstat The patch breaks the ABI. Bump __FreeBSD_version to 800102 accordingly. User space tools that rely on the size of any of these structs (e.g. sockstat) need to be recompiled. Reviewed by: rpaulo, sam, andre, rwatson Approved by: re & mentor (gnn) Notes: svn path=/head/; revision=195634
* | Rename option USBVERBOSE to USB_VERBOSE for 2 reasons:Marcel Moolenaar2009-07-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. USB_VERBOSE is more consistent with USB_DEBUG, 2. sys/dev/usb/usb_device.c uses option USB_VERBOSE and not USBVERBOSE. POLA with the USBVERBOSE option as it's found in 7-STABLE has been considered but found insignificant in the face of the USB stack overhaul. Approved by: re (kensmith) Notes: svn path=/head/; revision=195633
* | Increase the size of the page table on 64-bit PowerPC machines as aNathan Whitehorn2009-07-121-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | bandaid to prevent exhaustion of the primary and secondary hash groups in the event of extreme stress on the PMAP layer (e.g. a forkbomb). This wastes memory, and should be revised to properly handle PTEG spills instead. Suggested by: grehan Approved by: re (kensmith) Notes: svn path=/head/; revision=195632
* | Revert rev 192323 (nfs_common.c only):Marcel Moolenaar2009-07-121-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The D-cache flushing added here was to deal with I-cache incoherency observed on ia64. However, the problem was in the implementation of pmap_enter_object() for ia64: it was missing I-cache coherency logic for prefaulted pages. After this got added in rev 195625, testing showed that no D-cache flushing was required. The SIGILL that was observed on Book-E (see commit log for rev 192323) ended up not being related to I-cache incoherency, but was found to be caused by bad memory. This discovery further undermined the need for D-cache flushing in the NFS I/O code, triggering the reversal. Approved by: re (kensmith) Notes: svn path=/head/; revision=195631
* | In nvpair_native_embedded_array(), meaningless pointers are zeroed.Marcel Moolenaar2009-07-111-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The programmer was aware that alignment was not guaranteed in the packed structure and used bzero() to NULL out the pointers. However, on ia64, the compiler is quite agressive in finding ILP and calls to bzero() are often replaced by simple assignments (i.e. stores). Especially when the width or size in question corresponds with a store instruction (i.e. st1, st2, st4 or st8). The problem here is not a compiler bug. The address of the memory to zero-out was given by '&packed->nvl_priv' and given the type of the 'packed' pointer the compiler could assume proper alignment for the replacement of bzero() with an 8-byte wide store to be valid. The problem is with the programmer. The programmer knew that the address did not have the alignment guarantees needed for a regular assignment, but failed to inform the compiler of that fact. In fact, the programmer told the compiler the opposite: alignment is guaranteed. The fix is to avoid using a pointer of type "nvlist_t *" and instead use a "char *" pointer as the basis for calculating the address. This tells the compiler that only 1-byte alignment can be assumed and the compiler will either keep the bzero() call or instead replace it with a sequence of byte-wise stores. Both are valid. Approved by: re (kib) Notes: svn path=/head/; revision=195627
* | Remove build timestamps from the following files:Colin Percival2009-07-113-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /boot/kernel/hptrr.ko /etc/mail/*.cf /lib/libcrypto.so.5 /usr/bin/ntpq /usr/sbin/amd /usr/sbin/iasl /usr/sbin/ntpd /usr/sbin/ntpdate /usr/sbin/ntpdc There does not appear to be any purpose to having these timestamps, and they have the irritating consequence that the aforementioned files will be different every time they are rebuilt. After this commit, the only remaining build timestamps are in the kernel, the boot loaders, /usr/include/osreldate.h (the year in the copyright notice), and lib*.a (the timestamps on all of the included .o files). Reviewed by: scottl (hptrr), gshapiro (sendmail), simon (openssl), roberto (ntp), jkim (acpica) Approved by: re (kib) Notes: svn path=/head/; revision=195626
* | On exec(2), when loading the ELF image, pmap_enter_object() isMarcel Moolenaar2009-07-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | called to prefault pages. This is an obvious place for making sure the I-cache is coherent. It was missing though. As such, execution over NFS and ZFS file systems was failing. NFS was fixed the wrong way (by flushing the D-cache as part of the NFS code) in a previous commit. ZFS problems were encountered after that and indicated that something else was wrong... Approved by: re (kib) Notes: svn path=/head/; revision=195625