| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=187262
|
| |
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=187261
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=187260
|
| |
|
|
|
|
|
| |
code.
Notes:
svn path=/head/; revision=187259
|
| |
|
|
| |
Notes:
svn path=/head/; revision=187255
|
| |
|
|
|
|
|
| |
Noticed by: Chris Anderson
Notes:
svn path=/head/; revision=187253
|
| |
|
|
| |
Notes:
svn path=/head/; revision=187252
|
| |
|
|
| |
Notes:
svn path=/head/; revision=187251
|
| |
|
|
|
|
|
|
|
| |
Add entries for DELL and ASUS recovery partitions.
MFC after: 3 days
Notes:
svn path=/head/; revision=187248
|
| |
|
|
|
|
|
|
|
|
|
| |
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 3667
Notes:
svn path=/head/; revision=187247
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=187246
|
| |
|
|
|
|
|
|
|
|
|
| |
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 3712
Notes:
svn path=/head/; revision=187245
|
| |
|
|
|
|
|
|
|
|
|
| |
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 3665
Notes:
svn path=/head/; revision=187244
|
| |
|
|
|
|
|
|
|
|
|
| |
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 3927
Notes:
svn path=/head/; revision=187243
|
| |
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=187241
|
| |
|
|
|
|
|
|
| |
Submitted by: Christoph Mallon
MFC after: 3 days
Notes:
svn path=/head/; revision=187239
|
| |
|
|
| |
Notes:
svn path=/head/; revision=187238
|
| |
|
|
|
|
|
| |
GXEmul
Notes:
svn path=/head/; revision=187237
|
| |
|
|
|
|
|
|
| |
o Be a bit more verbose about CPU type during boot process (print
manufacturer, chip info, MMU and cache parameters)
Notes:
svn path=/head/; revision=187236
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=187223
|
| |
|
|
|
|
|
|
|
|
|
| |
Otherwise, interrupt may happen while we run with kernel CS and usermode
gsbase.
Reviewed by: jeff
MFC after: 1 week
Notes:
svn path=/head/; revision=187221
|
| |
|
|
|
|
|
|
|
|
|
| |
in bsm_token.c through #86 from OpenBSM.
MFC after: 1 month
Sponsored by: Apple, Inc.
Obtained from: TrustedBSD Project
Notes:
svn path=/head/; revision=187215
|
| |\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
Notes:
svn path=/head/; revision=187214
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
Notes:
svn path=/vendor/openbsm/dist/; revision=187063
svn path=/vendor/openbsm/1.1-ALPHA-5/; revision=187064; tag=vendor/openbsm/1.1-ALPHA-5
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=187210
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
Notes:
svn path=/head/; revision=187208
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
remove intermediate variable csum.
Reported by: Kim Culhan < w8hdkim <> gmail DOT com >
Tested by: Kim Culhan < w8hdkim <> gmail DOT com >
Notes:
svn path=/head/; revision=187207
|
| | |
| |
| |
| |
| |
| |
| |
| | |
o mention 5416-class parts
o mention tdma support
Notes:
svn path=/head/; revision=187205
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
softc members upon initialization.
Reviewed by: davidch
MFC after: 1 month
Notes:
svn path=/head/; revision=187204
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
+ 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
Notes:
svn path=/head/; revision=187203
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=187202
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
Notes:
svn path=/head/; revision=187199
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=187197
|
| | |
| |
| |
| |
| |
| |
| |
| | |
- force playback via mixer to get PCM volume control,
- make cleanup on recoring source selection.
Notes:
svn path=/head/; revision=187196
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
Notes:
svn path=/head/; revision=187195
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Correct BIND DNSSEC incorrect checks for malformed signatures
[SA-09:04].
Security: FreeBSD-SA-09:03.ntpd
Security: FreeBSD-SA-09:04.bind
Obtained from: ISC [SA-09:04]
Approved by: so (simon)
Notes:
svn path=/head/; revision=187194
|
| | |
| |
| |
| |
| |
| |
| | |
be different.
Notes:
svn path=/head/; revision=187192
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187188
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
- Add quirks for Parallels
These snuck in as part of a perforce IFC.
Notes:
svn path=/head/; revision=187186
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=187185
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Make sure all claimed interfaces gets released at close.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187184
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Compile fix for AVR-GCC
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187183
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add missing set frame data pointer call. The
function call was missed when zero copy was
introduced in UMASS.
Reported by: WATANABE Kazuhiro.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187182
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Add USB scanner support to USB2 config files.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187181
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Make code more compliant with SuperSpeed USB and Wireless USB.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187180
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove duplicate USB device ID's. These ID's are already
present in the U3G driver.
Reported by: Paul-Henning Kamp.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187179
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Save an USB transfer in UHUB driver by using
the builtin clear-stall mechanism.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187178
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix remaining xfer->udev variable changes.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187177
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove dependancy towards the USB config thread in
the USB serial core. Use USB process msignalling
instead. Saves a little memory and hopefully makes
the code more understandable.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187176
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove "vbus_interrupt" method from bus methods and use
a global function instead for the various drivers using it.
The reason for the removal is to simplify the code.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=187175
|