summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a local variable and use it instead of passed in parameterrdivacky2009-01-155-6/+16
| | | | | | | | to get rid of restrict qualifier discarding. This lets libc compile cleanly in gnu99 mode. Suggested by: kib, christoph.mallon at gmx.de Approved by: kib (mentor)
* MFp4:gonzo2009-01-152-19/+37
| | | | | | | | | - Add debug output - Fix pmap_zero_page and related places: use uncached segments and invalidate cache after zeroing memory. - Do not test for modified bit if it's not neccessary (merged from mips-juniper p4 branch) - Some #includes reorganization
* Name the items of xfer array.takawata2009-01-151-33/+46
|
* Lock the semaphore identifier lock during semaphore initialization tokib2009-01-151-0/+4
| | | | | | | | | guarantee atomicity of the operation for other semaphore consumers. In particular, this should guard against access to the semaphore with not done or partially done MAC label assignment. Reviewed by: rwatson MFC after: 1 month
* MFi386: 187144nyan2009-01-151-2/+8
| | | | | | | Documentation-only change: - add a reference to the config(5) manpage; - hopefully clarify the format of the 'env FILENAME' directive.
* MFp4:imp2009-01-151-7/+2
| | | | | Remove Maxmem. It isn't used elsewhere in the system at this point... realmem is used instead.
* Call platform_reset() instead of looping forever on reboot.imp2009-01-151-3/+3
| | | | | # We likely need to have a default one of these that jumps to the rom boot # address that's defined in the MIPS ISA.
* Reverse order of dumpsys and cpu_idle_wakeup to reduce diffs to p4.imp2009-01-151-6/+6
|
* MFp4:imp2009-01-151-117/+0
| | | | Remove #if'd 0 code. It is interfering with other diffs.
* fix a ehci's bug that it's occurred when the xfers are aborted underweongyo2009-01-151-1/+1
| | | | | | | | | heavy loads or working. It looks this bug exists since r158869 so needs to revert a part of the previous. Reviewed by: imp Tested by: sam MFC after: 3 weeks
* Revert previous change, since revision 187103 fixed the problem.rodrigc2009-01-151-2/+2
| | | | | | | | | | | | | So now, if you: - specify "makeoptions DEBUG=-g" in your kernel config - make buildkernel WITH_CTF=1, then "-g" will be added to CTFFLAGS. However, "-g" will still not be added to CTFFLAGS when building kernel modules, if the above steps are performed. This needs to be fixed. Noticed by: thompsa
* Add TCP Appropriate Byte Counting (RFC 3465) support to kernel.lstewart2009-01-157-11/+75
| | | | | | | | | | | | | The new behaviour is on by default, and can be disabled by setting the net.inet.tcp.rfc3465 sysctl to 0 to obtain previous behaviour. The patch changes struct tcpcb in sys/netinet/tcp_var.h which breaks the ABI. Bump __FreeBSD_version to 800061 accordingly. User space tools that rely on the size of struct tcpcb (e.g. sockstat) need to be recompiled. Reviewed by: rpaulo, gnn Approved by: gnn, kmacy (mentors) Sponsored by: FreeBSD Foundation
* Reduce code duplication by moving functions that are identical in bothdas2009-01-153-427/+216
| | | | | vfprintf.c and vfwprintf.c (except for char/wchar_t differences) to a common header file.
* Convert the insidious macros that handle printf()'s buffering intodas2009-01-153-86/+204
| | | | | | | | | | | slightly less evil inline functions, and move the buffering state into a struct. This will make it possible for helper routines to produce output for printf() directly, making it possible to untangle the code somewhat. In wprintf(), use the same buffering mechanism to reduce diffs to printf(). This has the side-effect of causing wprintf() to catch write errors that it previously ignored.
* Add KERNFAST define. When defined, it skips all the config, dependsimp2009-01-151-0/+6
| | | | | | | and clean steps. KERNFAST was selected to complement KERNCONF which is typically used in these scenarios (especially with cross building). Reviewed by: arch@
* Driver for Apple Keywest I2C controllers found in MacIO ASICs. Used fornwhitehorn2009-01-153-0/+393
| | | | | | | | power and thermal control, as well as GPIOs on Xserves and controlling sound codecs for Apple built-in audio. Submitted by: Marco Trillo Obtained from: NetBSD
* Import an Open Firmware I2C bus module. This attaches firmware device treenwhitehorn2009-01-153-0/+186
| | | | | | | | indicated I2C devices, and provides an ofw_bus interface for driver probing. This should be MI, but is currently provided only on PowerPC due to lack of sparc64 hardware with an I2C controller. Discussed on: freebsd-arch
* When building up the command-line for the DTrace ctfmerge and ctfconvertrodrigc2009-01-151-2/+2
| | | | | | | | | | | utilities, add the ${DEBUG} variable from the kernel config. Otherwise, if we build a kernel with WITH_CTF=1 set, ctfmerge will not have the -g flag set. In this case, the cc has -g specified, so the .o files will have debug information generated, but since ctfmerge does not have -g set, it will strip out the ELF sections containing the DWARF debugging info, leading to a kernel without debugging symbols. Reviewed by: jb
* Name the items in the xfer arrays so they can be identified throughout thethompsa2009-01-1540-666/+868
| | | | code.
* simple scripts to demonstrate tdma setupsam2009-01-142-0/+39
|
* use correct interface name when setting flags; fixes ifconfig ... create ... upsam2009-01-141-2/+2
| | | | Noticed by: Chris Anderson
* o Code cleanup, remove unused fields of idtpci_softcgonzo2009-01-141-7/+0
|
* o Simplify code: trade 15 lines of case for one multiplicationgonzo2009-01-141-15/+1
|
* Reword some entries for NTFS and DOS.luigi2009-01-141-2/+4
| | | | | | Add entries for DELL and ASUS recovery partitions. MFC after: 3 days
* Add missing 'break' statement.trasz2009-01-141-0/+1
| | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3667
* Another change from Christoph:luigi2009-01-141-110/+101
| | | | | | | | | | replace the table of partition with a simpler and faster array of strings. The change in the array is done mechanically, using vi commands. Most entries in the table are probably 15+ years old and largely outdated, so the next step is to remove stale entries with more current values. Submitted by: Christoph Mallon, with small changes from me MFC after: 3 days
* Fix use after free.trasz2009-01-141-1/+1
| | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3712
* Remove unused variable.trasz2009-01-141-2/+0
| | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3665
* Add missing 'break' statement.trasz2009-01-141-0/+1
| | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3927
* more changes from Christoph:luigi2009-01-141-15/+14
| | | | | | | | pass a pointer instead of an index to print_part() so it does not depend on a static variable. Submitted by: Christoph Mallon MFC after: 3 days
* remove unused argument to print_s0()luigi2009-01-141-11/+8
| | | | | Submitted by: Christoph Mallon MFC after: 3 days
* o Make debug output conditionalgonzo2009-01-141-6/+12
|
* o NO_DMA is no longer required as bug with PIIX4 emulation has been fixed in ↵gonzo2009-01-141-2/+0
| | | | GXEmul
* o Move $FreeBSD$ from comment to __FBSDID macrogonzo2009-01-141-1/+5
| | | | | o Be a bit more verbose about CPU type during boot process (print manufacturer, chip info, MMU and cache parameters)
* It seems that there are at least three issues with IPC_RMID operationkib2009-01-141-152/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on SysV semaphores. The squeeze of the semaphore array in the kern_semctl() modifies sem_base for the semaphores with sem_base greater then sem_base of the removed semaphore, as well as the values of the semaphores, without locking their mutex. This can lead to (killable) hangs or unexpected behaviour of the processes performing any sem operations while other process does IPC_RMID. The semexit_myhook() eventhandler unlocks SEMUNDO_LOCK() while accessing *suptr. This allows for IPC_RMID for the sem id to be performed in parallel with undo hook referenced by the current undo structure. This leads to the panic("semexit - semid not allocated") [1]. The semaphore creation is protected by Giant, while IPC_RMID is done while only semaphore mutex is held. This seems to result in invalid values for semtot, causing random ENOSPC error returns [2]. Redo the locking of the semaphores lifetime cycle. Delegate the sem_mtx to the sole purpose of protecting semget() and semctl(IPC_RMID). Introduce new sem_undo_mtx to protect SEM_UNDO handling. Remove the Giant remnants from the code. Note that mac_sysvsem_check_semget() and mac_sysvsem_create() are now called while sem_mtx is held, as well as mac_sysvsem_cleanup() [3]. When semaphore is removed, acquire semaphore locks for all semaphores with sem_base that is going to be changed by squeeze of the sema array. The lock order is not important there, because the region is protected by sem_mtx. Organize both used and free sem_undo structures into the lists, protected by sem_undo_mtx. In semexit_myhook(), remove sem_undo structure that is being processed, from used list, without putting it onto the free to prevent modifications by other threads. This allows for sem_undo_lock to be dropped to acquire individial semaphore locks without violating lock order. Since IPC_RMID may no longer find this sem_undo, do tolerate references to unallocated semaphores in undo structure, and check sequential number to not undo unrelated semaphore with the same id. While there, convert functions definitions to ANSI C and fix small style(9) glitches. Reported by: Omer Faruk Sen <omerfsen gmail com> [1], pho [2] Reviewed by: rwatson [3] Tested by: pho MFC after: 1 month
* Disable interrupts, if they were enabled, before doing swapgs.kib2009-01-141-0/+1
| | | | | | | | Otherwise, interrupt may happen while we run with kernel CS and usermode gsbase. Reviewed by: jeff MFC after: 1 week
* Update copyright, P4 version number as audit_bsm_token.c reflects changesrwatson2009-01-141-2/+2
| | | | | | | | in bsm_token.c through #86 from OpenBSM. MFC after: 1 month Sponsored by: Apple, Inc. Obtained from: TrustedBSD Project
* Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, bothrwatson2009-01-14106-904/+2881
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manual merge). Hook up bsm_domain.c and bsm_socket_type.c to the libbsm build along with man pages, add audit_bsm_domain.c and audit_bsm_socket_type.c to the kernel environment. OpenBSM history for imported revisions below for reference. MFC after: 1 month Sponsored by: Apple Inc. Obtained from: TrustedBSD Project OpenBSM 1.1 alpha 5 - Stub libauditd(3) man page added. - All BSM error number constants with BSM_ERRNO_. - Interfaces to convert between local and BSM socket types and protocol families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3), au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions of constants in audit_domain.h and audit_socket_type.h. This improves interoperability by converting local constant spaces, which vary by OS, to and from Solaris constants (where available) or OpenBSM constants for protocol domains not present in Solaris (a fair number). These routines should be used when generating and interpreting extended socket tokens. - Fix build warnings with full gcc warnings enabled on most supported platforms. - Don't compile error strings into bsm_errno.c when building it in the kernel environment. - When started by launchd, use the label com.apple.auditd rather than org.trustedbsd.auditd.
| * Vendor import of OpenBSM 1.1 alpha5, which incorporates the followingrwatson2009-01-1193-496/+1665
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes since the last imported OpenBSM release: OpenBSM 1.1 alpha 5 - Stub libauditd(3) man page added. - All BSM error number constants with BSM_ERRNO_. - Interfaces to convert between local and BSM socket types and protocol families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3), au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions of constants in audit_domain.h and audit_socket_type.h. This improves interoperability by converting local constant spaces, which vary by OS, to and from Solaris constants (where available) or OpenBSM constants for protocol domains not present in Solaris (a fair number). These routines should be used when generating and interpreting extended socket tokens. - Fix build warnings with full gcc warnings enabled on most supported platforms. - Don't compile error strings into bsm_errno.c when building it in the kernel environment. - When started by launchd, use the label com.apple.auditd rather than org.trustedbsd.auditd. Obtained from: TrustedBSD Project Sponsored by: Apple Inc.
* | Fix typo to install 400.status-pkg, again.ume2009-01-141-1/+1
| |
* | Remove local jumbo locator and switch to UMA backed page allocatoryongari2009-01-142-302/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for jumbo frame. o Nuke unneeded jlist lock which was used to protect jumbo buffer management in local allocator. o Added a new tunable hw.mskc.jumbo_disable to disable jumbo frame support for the driver. The tunable could be set for systems that do not need to use jumbo frames and it would save (9K * number of Rx descriptors) bytes kernel memory. o Jumbo buffer allocation failure is no longer critical error for the operation of msk(4). If msk(4) encounter the allocation failure it just disables jumbo frame support and continues to work without your intervention. Using local allocator had several drawbacks such as requirement of large amount of continuous kernel memory and fixed (small) number of available buffers. The need for large continuous memory resulted in failure of loading driver with kldload on running systems. Also small number of buffer used in local allocator showed poor performance for some applications.
* | Correct frame length argument of in_cksum_skip. While I'm hereyongari2009-01-141-5/+2
| | | | | | | | | | | | | | remove intermediate variable csum. Reported by: Kim Culhan < w8hdkim <> gmail DOT com > Tested by: Kim Culhan < w8hdkim <> gmail DOT com >
* | o note need for options AH_SUPPORT_5416sam2009-01-131-6/+26
| | | | | | | | | | o mention 5416-class parts o mention tdma support
* | Remove intermediate variable busaddr and have bus_* operate directly ondelphij2009-01-131-13/+6
| | | | | | | | | | | | | | softc members upon initialization. Reviewed by: davidch MFC after: 1 month
* | Some small fixes submitted by Christoph Mallon, specifically:luigi2009-01-131-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | + Remove a dead field of a struct. It serves no purpose anymore. + Remove a \n at the end of the format string of err(); the err() function already adds a \n ; + remove many unnecessary casts which obfuscate the code. This file has a huge number of indentation bugs, but I'd rather fix them when/if we happen to modify the relevant parts of the code. Submitted by: Christoph Mallon MFC after: 3 days
* | Correct spelling in comment.mav2009-01-131-2/+2
| |
* | Turn a "panic: non-decreasing id" into an error printf. This seemstrasz2009-01-131-2/+5
| | | | | | | | | | | | | | | | | | to be caused by a metadata corruption that occurs quite often after unplugging a pendrive during write activity. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation
* | remove a file which is, as far as I can tell, totally unused.luigi2009-01-131-101/+0
| |
* | Improve AD1983 codec support:mav2009-01-131-1/+28
| | | | | | | | | | - force playback via mixer to get PCM volume control, - make cleanup on recoring source selection.
* | Extend the geom-related info and put in the NOTE section, notluigi2009-01-131-14/+19
| | | | | | | | | | | | | | in BUGS, as this is a feature. Bump the date, as it was forgotten in previous commits and the page has had significant changes recently
OpenPOWER on IntegriCloud