| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Make the code use the new OFIOCMAXVALUE instead of defining the maximum
length of property values locally.
- Move the application specific parts from ofw_util.c to ofwdump.c in
order to make ofw_util.c more library-like. While ofw_dump_properties()
could be made non-specific to ofwdump(8) it's currently optimized for
use in ofwdump(8) and making it a library-like function would just
complicate the code unnecessarily.
- Minor clean-up in ofw_util.c, e.g. make its use of getopt(3) the way
it's described in style(9), make its usage() static, etc.
- Add a comment in ofw_util.c about why it doesn't call usage() when
neither the "-a" option nor a node-name where given.
- Add ofw_optnode() and ofw_setprop(), helper functions for the
OFIOCGETOPTNODE and OFIOCSET ioctls respectively, to ofw_util.[c,h].
- Be consistent with the use of 'const' in ofw_util.[c,h] and add 'const'
to the function arguments that are acutally const but weren't declared
as such.
- Mark WARNS=6 clean.
Approved by: tmm
|
|
|
|
|
| |
file.
- Remove a superfluous ';'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
identifiers, to openfirmio.h as OFIOCMAXNAME, so programs can use it
for buffer sizes etc.
Note: Although this is only a rough upper limit to make the code more
robust and to prevent the allocation of ridiculous amounts of memory,
the current limit of one page (8191 + '\0' in openfirm_getstr()) still
appears a bit high. The maximum length of OFW property names is 31.
I didn't find a maximum length for the device identifiers in the OFW
documentation but it certainly is much smaller than 8191, too.
- Enable the OFIOCSET ioctl, i.e. move it out from under #if 0.
- Don't use openfirm_getstr() for the property value in OFIOCSET, there
are also properties whose values aren't strings and it makes sense to
use a different maximum length for property values than OFW_NAME_MAX/
OFIOCMAXNAME. The maximum accepted property value is defined in
openfirmio.h as OFIOCMAXVALUE (currently the maximum size of the value
of the nvramrc property).
- Make OFIOCSET not return EINVAL when OF_setprop() returns a different
length for the written value than it was told to write, this is normal
for the text string values of the properties in the OFW /options node.
Instead, only return EINVAL if OF_setprop() returned -1 (value could
not be written or property could not be created). Add a comment about
the specialty of the OFW /options node.
- Make OFIOCSET return the length of the written value returned by
OF_setprop(), just like OF_getprop() does. Quite useful, at least for
debugging.
Reviewed by: tmm
|
| |
|
|
|
|
| |
uint32_t where appropriate.
|
|
|
|
|
|
|
| |
through byte by byte with mbrtowc(). In the usual case (buffer is big
enough to contain the multibyte character, character does not straddle
buffer boundary) this results in only one call to mbrtowc() for each
wide character read.
|
|
|
|
|
|
|
|
|
| |
to the initial state when a stream is opened or seeked upon. Use the
stream's conversion state object instead of a freshly-zeroed one in
fgetwc(), fputwc() and ungetwc().
This is only a performance improvement for now, but it would also be
required in order to support state-dependent encodings.
|
| |
|
|
|
|
|
|
|
| |
is being turned off, or else TCP/IP will keep assigning the job to us.
Drivers themselves should consult if_capenable, not if_hwassist--the
latter is for the TCP/IP stack.
|
|
|
|
| |
On behalf of: cognet
|
|
|
|
|
| |
since it's always acquiring the lock exclusively. This was tested
with X on an SMP box, with and without WITNESS.
|
|
|
|
| |
Supported by: Wheel - Open Technologies - http://www.wheel.pl
|
| |
|
| |
|
|
|
|
| |
Submitted by: Gerhard Gonter <gonter@falbala.wu-wien.ac.at>
|
|
|
|
|
|
|
|
| |
with "-t" rather than absolute timestamps. This allows the reader
to get a better sense of latency between events, such as time to
schedule an interrupt thread from time the interrupt occurred. Assert
a copyright on ktrdump.c since I seem to be modifying it more than I
thought.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
being that PHYS_TO_VM_PAGE() returns the wrong vm_page for fictitious
pages but unwiring uses PHYS_TO_VM_PAGE(). The resulting panic
reported an unexpected wired count. Rather than attempting to fix
PHYS_TO_VM_PAGE(), this fix takes advantage of the properties of
fictitious pages. Specifically, fictitious pages will never be
completely unwired. Therefore, we can keep a fictitious page's wired
count forever set to one and thereby avoid the use of
PHYS_TO_VM_PAGE() when we know that we're working with a fictitious
page, just not which one.
In collaboration with: green@, tegge@
PR: kern/29915
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
|
|
| |
like described in the man page and done on all other architectures.
OK'ed by: tmm
|
| |
|
| |
|
| |
|
|
|
|
| |
- Fix copy&paste bug.
|
|
|
|
| |
Reviewed by: simon
|
|
|
|
| |
Supported by: Wheel - Open Technologies - http://www.wheel.pl
|
|
|
|
|
|
| |
Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us>
PR: docs/66823
Reviewed by: simon
|
|
|
|
|
| |
the pretty text header on top of the output. Simplifies feeding the
results of tracing into a script for mechanical processing.
|
|
|
|
|
|
| |
"file and line" field consistently; previously, a 32-character field
length was used for the table header, which resulted in the header
not lining up with the table.
|
|
|
|
|
| |
Set capability bits in a consistent way.
Add a comment on why the VLAN_MTU stuff comes after ether_ifattach().
|
|
|
|
|
|
| |
Print the ETA of dump being finished, rather than a cryptic delta
time. Also, if we have written more blocks than the tapesize, assume
that we are 99.99% done and that we'll be finished 'soon'.
|
| |
|
|
|
|
| |
Pointed out by: Kris Kennaway (unbreaks nspr port build)
|
|
|
|
| |
so let VLAN_MTU be marked in if_capenable from the beginning.
|
|
|
|
|
|
| |
as initially active in if_capenable since it is always on.
Reviewed by: simokawa
|
|
|
|
|
|
|
|
|
| |
and improved some comments). Also, made the documented {f,s}uword()
functions the standard entry points and the undocumented {f,s}uword64()
functions alternative entry points, like {f,s}uword32() for i386's. The
bitrot in the comments was a little larger here -- there are new undocumented
32-bit sub-word functions, not just renaming of 16-bit functions from
documented ones to undocumented ones.
|
|
|
|
| |
functions.
|
|
|
|
|
| |
standard macro ALTENTRY() instead of a home made incomplete version
of it.
|
|
|
|
| |
- Bump version number.
|
|
|
|
|
|
|
|
| |
of not clearing the flags for execv() syscall will result that a new
program runs in KSE thread mode without enabling it.
Submitted by: tjr
Modified by: davidxu
|
|
|
|
|
| |
read-only on D3->D0 power state transition. Add a define to enable
them, but include a comment to contact me if there's a problem.
|
|
|
|
|
|
|
|
|
|
| |
fixes was applicable to HEAD, originally it was thought this
should only be done in RELENG_4. Implement IO_INVAL in the vnode
op for writing by marking the buffer as "no cache". This fix
has already been applied to RELENG_4 as Rev. 1.65.2.15 of
ufs/ufs/ufs_readwrite.c.
Reviewed by: alc, tegge
|
|
|
|
| |
Obtained from: The FreeBSD Russian Documentation Project
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
better.
|
|
|
|
| |
Prodded by: ru@
|
|
|
|
| |
when I committed code that changed its meaning.
|
|
|
|
|
|
|
|
|
|
| |
Split the baby. For idepci devices, now both legacy mode bits need
not be set. We can run an idepci in a split mode. However, it only
works better than before, not works. It works better in that when one
device is legacy and the other isn't and disabled, we now operate
correctly.
sos submitted a version of this patch.
|