| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
the VOP requires an exclusive lock.
Sponsored by: Isilon Systems, Inc.
Notes:
svn path=/head/; revision=144907
|
|
|
|
|
|
|
|
| |
that it's possible to build a kernel without getting flooded with
thousands of warnings.
Notes:
svn path=/head/; revision=144906
|
|
|
|
|
|
|
|
| |
the node is actually already locked, and VOP_INACTIVE is not desirable
in this case.
Notes:
svn path=/head/; revision=144904
|
|
|
|
|
|
|
| |
us will decide whether or not to grab a real shared lock.
Notes:
svn path=/head/; revision=144903
|
|
|
|
|
|
|
|
|
|
| |
'\0' (eg in the invocation 'printf %'), the for-loop would miss the terminating
null character.
MFC after: 1 week
Notes:
svn path=/head/; revision=144902
|
|
|
|
| |
Notes:
svn path=/head/; revision=144901
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
potential lock order reversal. Also, don't unlock the vnode if this
fails, lockmgr has already unlocked it for us.
- Restructure vget() now that vn_lock() does all of VI_DOOMED checking
for us and also handles the case where there is no real lock type.
- If VI_OWEINACT is set, we need to upgrade the lock request to EXCLUSIVE
so that we can call inactive. It's not legal to vget a vnode that hasn't
had INACTIVE called yet.
Sponsored by: Isilon Systems, Inc.
Notes:
svn path=/head/; revision=144900
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
as I'd like to get rid of the vxthread.
- Handle lock requests which don't actually want a lock as this is a
much more convenient place to handle this condition than in vget().
These requests simply want to know that VI_DOOMED isn't set.
- Correct a test at the end of vn_lock, if error !=0 should be
if error == 0, this has been broken since I comitted the VI_DOOMED
changes, but no one ran into it because vget() duplicated this
functionality.
Sponsored by: Isilon Systems, Inc.
Notes:
svn path=/head/; revision=144899
|
|
|
|
| |
Notes:
svn path=/head/; revision=144898
|
|
|
|
| |
Notes:
svn path=/head/; revision=144897
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
getopt() may be called several times - make sure to set optreset
to reset it. Cleanup handling of non-option arguments.
Remove some misleading comments.
Patch: 7.171
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=144896
|
|
|
|
|
|
|
|
| |
a static variable to NULL. Forgot this in the previous commit to
parse.[ch].
Notes:
svn path=/head/; revision=144895
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on every line that starts with a dot use a minimal perfect hash
function and a single strcmp() on the first word after the dot
to find out whether it is really a directive call and, if yes, which
one. Then directly dispatch to a handler function for that directive
(or fall through to the dependency handling code). This makes the
directive parse a little bit more strict about the syntax: the directive
word must be followed by a character that is not alphanumerical and not
an underline (making .undefFOO illegal); .endif and .else can only be
followed by comments.
Notes:
svn path=/head/; revision=144894
|
|
|
|
| |
Notes:
svn path=/head/; revision=144893
|
|
|
|
|
|
|
|
|
| |
makecontext which enforces a minimum stack size to be MINSIGSTKSZ.
Bug report: Bill Middleton <flashdict at gmail dot com>, BSD-sharp project.
Notes:
svn path=/head/; revision=144892
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
save file was /var/db/entropy, which also happens to
be the directory where the individual entropy files
created by /usr/libexec/save-entropy are stored.
Change the suggestion to be /var/db/entropy-file
instead.
In an error condition where the shutdown file is not
created, the error message accessed a variable that
doesn't exist.
PR: conf/75722
Submitted by: Nicolas Rachinsky <list@rachinsky.de>
Notes:
svn path=/head/; revision=144891
|
|
|
|
|
|
|
|
|
|
| |
Put that behind bootverbose to make the ata driver less chatty on
advanced hardware.
Requested by: sos
Notes:
svn path=/head/; revision=144890
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rc.conf[.local]. Fix this, and leave the default as 2048.
Update the copyright year to include the present.
Update the assignment of the copyright to be me personally,
instead of "The FreeBSD Project" which is not a legal entity,
and therefore not a proper assignee. My intention remains the
same however, that this code continue to be BSD licensed, and
freely available to anyone that wants it under those terms.
PR: conf/75722
Submitted by: Nicolas Rachinsky <list@rachinsky.de>
Notes:
svn path=/head/; revision=144889
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
layer, but with a twist.
The twist has to do with the fact that Microsoft supports structured
exception handling in kernel mode. On the i386 arch, exception handling
is implemented by hanging an exception registration list off the
Thread Environment Block (TEB), and the TEB is accessed via the %fs
register. The problem is, we use %fs as a pointer to the pcpu stucture,
which means any driver that tries to write through %fs:0 will overwrite
the curthread pointer and make a serious mess of things.
To get around this, Project Evil now creates a special entry in
the GDT on each processor. When we call into Windows code, a context
switch routine will fix up %fs so it points to our new descriptor,
which in turn points to a fake TEB. When the Windows code returns,
or calls out to an external routine, we swap %fs back again. Currently,
Project Evil makes use of GDT slot 7, which is all 0s by default.
I fully expect someone to jump up and say I can't do that, but I
couldn't find any code that makes use of this entry anywhere. Sadly,
this was the only method I could come up with that worked on both
UP and SMP. (Modifying the LDT works on UP, but becomes incredibly
complicated on SMP.) If necessary, the context switching stuff can
be yanked out while preserving the convention calling wrappers.
(Fortunately, it looks like Microsoft uses some special epilog/prolog
code on amd64 to implement exception handling, so the same nastiness
won't be necessary on that arch.)
The advantages are:
- Any driver that uses %fs as though it were a TEB pointer won't
clobber pcpu.
- All the __stdcall/__fastcall/__regparm stuff that's specific to
gcc goes away.
Also, while I'm here, switch NdisGetSystemUpTime() back to using
nanouptime() again. It turns out nanouptime() is way more accurate
than just using ticks(). On slower machines, the Atheros drivers
I tested seem to take a long time to associate due to the loss
in accuracy.
Notes:
svn path=/head/; revision=144888
|
|
|
|
| |
Notes:
svn path=/head/; revision=144887
|
|
|
|
|
|
|
|
|
| |
This should unbreak suspend/resume.
Contributed by: Wiktor Niesiobedzki
Notes:
svn path=/head/; revision=144886
|
|
|
|
|
|
|
| |
Prodded by: Ian Dowse
Notes:
svn path=/head/; revision=144885
|
|
|
|
|
|
|
|
| |
(The Opteron's instruction fetcher reads instructions from the L1 cache in
16-byte, aligned packets.)
Notes:
svn path=/head/; revision=144884
|
|
|
|
|
|
|
|
| |
cycle too much, wasting power if we trigger a jump to full speed too
easily. CPU-bound tasks quickly push idle below this level.
Notes:
svn path=/head/; revision=144883
|
|
|
|
|
|
|
|
|
|
|
|
| |
systems that boot with this value at the lowest setting. Change the
default boot config back to "leave frequency as BIOS set it". Also, fix
buglet where acpi_throttle wouldn't be used if p4tcc was present but
disabled by the user.
MFC after: 1 week
Notes:
svn path=/head/; revision=144882
|
|
|
|
|
|
|
|
| |
settings are length-counted while the EST table is null-terminated.
This fixes extra garbage states being reported with ACPI probing.
Notes:
svn path=/head/; revision=144881
|
|
|
|
| |
Notes:
svn path=/head/; revision=144879
|
|
|
|
|
|
|
| |
states, idling, etc. This has been supported since the cpufreq import.
Notes:
svn path=/head/; revision=144878
|
|
|
|
| |
Notes:
svn path=/head/; revision=144877
|
|
|
|
|
|
|
|
| |
managing levels. This can be enabled with the debug.cpufreq.verbose
tunable and sysctl.
Notes:
svn path=/head/; revision=144876
|
|
|
|
|
|
|
|
| |
buffer. Also, reference the Intel document where the _PDC values were
found. This now supports ACPI-assisted SpeedStep on my borrowed T42.
Notes:
svn path=/head/; revision=144875
|
|
|
|
|
|
|
|
| |
MFC after: 1 week
Approved by: simon (mentor)
Notes:
svn path=/head/; revision=144874
|
|
|
|
|
|
|
|
|
| |
verbose mode. This is useful for profiling new adaptive algorithms
in performance (via time(1)) and total energy consumed for a given
workload.
Notes:
svn path=/head/; revision=144873
|
|
|
|
|
|
|
|
|
| |
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
Notes:
svn path=/head/; revision=144872
|
|
|
|
|
|
|
|
|
|
|
| |
a return instruction. (The latter is discouraged by the Opteron
optimization manual because it disables branch prediction for the return
instruction.)
Reviewed by: bde
Notes:
svn path=/head/; revision=144868
|
|
|
|
|
|
|
|
|
| |
2005 copyright.
MFC after: 3 days
Notes:
svn path=/head/; revision=144867
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=144866
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Affects to people WITH an AD1888 codec, the system will output to the port
labeled "speaker" instead of microphone. System will work the same in
multiple operating systems.
If people are currently using their systems with this codec they will need
to swap their output ports.
I have _not_ checked audio input or line input (basically, I have checked
nothing other than line-out).
I believe this is an appropriate change, it makes us consistent with
documentation, and other operating systems. Furthermore, this feature
(playing) is the vast majority of sound activities, so if this makes is
right for playback and wrong for recording... playback is more important,
and we can fix recoding in the future without worries of screwing people
again in the future (since we'll be "right" on the playback).
Submitted by: David Cross
Notes:
svn path=/head/; revision=144865
|
|
|
|
|
|
|
| |
o s/DFD/DFB/g as DragonFly people did.
Notes:
svn path=/head/; revision=144864
|
|
|
|
|
|
|
|
| |
Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl]
PR: 79747
Notes:
svn path=/head/; revision=144863
|
|
|
|
| |
Notes:
svn path=/head/; revision=144862
|
|
|
|
|
|
|
| |
Add the older nVidia nForce2 SATA chip to supported HW.
Notes:
svn path=/head/; revision=144861
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
setting ts_recent to an arbitrary value, stopping further
communication between the two hosts.
- If the Echoed Timestamp is greater than the current time,
fall back to the non RFC 1323 RTT calculation.
Submitted by: Raja Mukerji (raja at moselle dot com)
Reviewed by: Noritoshi Demizu, Mohan Srinivasan
Notes:
svn path=/head/; revision=144858
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a reassembly queue state structure, don't update (receiver) sack
report.
- Similarly, if tcp_drain() is called, freeing up all items on the
reassembly queue, clean the sack report.
Found, Submitted by: Noritoshi Demizu <demizu at dd dot iij4u dot or dot jp>
Reviewed by: Mohan Srinivasan (mohans at yahoo-inc dot com),
Raja Mukerji (raja at moselle dot com).
Notes:
svn path=/head/; revision=144857
|
|
|
|
|
|
|
|
|
|
|
| |
(Fix for kern/78226).
Submitted by : Noritoshi Demizu <demizu at dd dot iij4u dot or dot jp>
Reviewed by : Mohan Srinivasan (mohans at yahoo-inc dot com),
Raja Mukerji (raja at moselle dot com).
Notes:
svn path=/head/; revision=144856
|
|
|
|
|
|
|
| |
Submitted by : Noritoshi Demizu, Mohan Srinivasan.
Notes:
svn path=/head/; revision=144855
|
|
|
|
|
|
|
|
|
| |
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
Notes:
svn path=/head/; revision=144854
|
|
|
|
| |
Notes:
svn path=/head/; revision=144853
|
|
|
|
|
|
|
|
|
| |
panic when trying to access a file on mounted smbfs.
Submitted by: takawata at jp freebsd org
Notes:
svn path=/head/; revision=144852
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The main reason for doing this is that the ELF dump handler expects
the thread list to be fixed while the dump header is generated, so an
upcall that occurs at the wrong time can lead to buffer overruns and
other Bad Things.
Another solution would be to grab sched_lock in the ELF dump handler,
but we might as well single-thread, since the process is about to die.
Furthermore, I think this should ensure that the register sets in the
core file are sequentially consistent.
Notes:
svn path=/head/; revision=144851
|